cURL
curl --request POST \ --url https://api.metronome.com/v1/credits/voidGrant \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "void_credit_purchase_invoice": true, "release_uniqueness_key": true } '
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
Void a credit grant. This is a Plans (deprecated) endpoint. New clients should implement using Contracts.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the grant to void
If true, void the purchase invoice associated with the grant
If true, resets the uniqueness key on this grant so it can be re-used
Success
Show child attributes