Skip to content

Search API reference

Find an endpoint or a guide of the Sovgate API reference and jump straight to it.

Void a credit grant

Cancel what's left: it pays for no more usage.

POST/v1/billing/credit_grants/{id}/void

Cancel what's left: it pays for no more usage.

Endpoint

http
POST /v1/billing/credit_grants/{id}/void

Path parameters

NameTypeDescription
idstringThe grant's ID, cgrt_....

Example request

bash
curl -X POST https://api.sovgate.com/v1/billing/credit_grants/cgrt_9f062f83df7727108a0c4e44/void \  -H "Authorization: Bearer sov_sk_test_your_key" \  -H "Idempotency-Key: e87d2e6f-4b2a-4c1d-9e3f-c4a2a503226b"

Example response

json
{  "id": "cgrt_9f062f83df7727108a0c4e44",  "object": "credit_grant",  "livemode": false,  "customer": "cust_13ed3f69adfcfcb6289a5491",  "name": "Prepaid credits",  "category": "paid",  "currency": "usd",  "amount": 50000,  "applicability": {    "scope": "all"  },  "priority": 50,  "status": "voided",  "effective_at": "2026-11-27T09:00:00Z",  "expires_at": null,  "voided_at": "2026-11-28T09:00:00Z",  "created": "2026-11-27T09:00:00Z"}