Skip to main content
POST
/
credits
/
voidGrant
Void a credit grant
curl --request POST \
  --url https://api.metronome.com/v1/credits/voidGrant \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "9b85c1c1-5238-4f2a-a409-61412905e1e1"
}'
{
  "data": {
    "id": "8b24d3dc-6db5-432d-9416-8439b3fbf242"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The ID of the grant to void

id
string<uuid>
required
void_credit_purchase_invoice
boolean

If true, void the purchase invoice associated with the grant

release_uniqueness_key
boolean

If true, resets the uniqueness key on this grant so it can be re-used

Response

Success

data
object
required
I