Void a credit grant
Draft scaffold — not implemented or available in the API.
Ends the grant and forfeits its remaining credits, writing a void entry to the credit ledger. Fails when credits are left unless forfeitRemaining is true. {creditGrant} takes the grant’s cgr_ ID.
Authentication
AuthorizationBearer
API Key authentication using Bearer token
Path parameters
creditGrant
A Paid ID, external ID or resource key, as supported by the referenced resource.
Headers
Paid-Beta
This endpoint is in the credits=v1 beta. Send this header to use it.
Allowed values:
Request
Body
forfeitRemaining
Consent to forfeit any remaining balance.
Response
200
id
The CreditGrant ID.
object
The type of object. Always creditGrant.
Allowed values:
createdAt
When the object was created.
amount
An exact non-negative credit amount, up to 15 fractional places.
available
An exact non-negative credit amount, up to 15 fractional places.
creditCurrency
A Paid ID, external ID or resource key, as supported by the referenced resource.
customer
A Paid ID, external ID or resource key, as supported by the referenced resource.
expiresAt
When the grant expires.
livemode
true for an object on a live account, false on a test account.
metadata
String key-value pairs of your own, up to 500 characters per value. Always updatable.
nextRefillAt
Next refill boundary.
reason
Why credits were granted.
refill
CreditRefill.
refilledAt
Start of the current refill window.
rollover
CreditRollover.
rolloverEndsAt
When rolled credits expire.
scope
Scope or null.
seat
A Paid ID, external ID or resource key, as supported by the referenced resource.
source
The origin of a grant.
startsAt
When the grant starts.
status
Grant lifecycle status.
Allowed values:
used
An exact non-negative credit amount, up to 15 fractional places.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
501
Not Implemented Error