Credits
Endpoints
GET /api/v1/accounts/{id}/credit-balance
GET /api/v1/accounts/{id}/credit-balanceGet the aggregate credit balance for an account — sum of all active, non-expired credits
Scoped API key. Scopes: read, commerce, admin.
Account ID
Credit balance summary
Aggregate credit balance for an account
Total active, non-expired credit balance in cents
Number of active non-expired credits
Number of credits that have expired
Total credit records (all statuses)
Account not found
GET /api/v1/accounts/{id}/credits
GET /api/v1/accounts/{id}/creditsScoped API key. Scopes: read, commerce, admin.
Account ID
Max items to return (1–100, default 20)
20Number of items to skip (default 0)
0Paginated list of credits
No content
Account not found
No content
POST /api/v1/accounts/{id}/credits
POST /api/v1/accounts/{id}/creditsIssue a credit to an account. Credits reduce the amount due on future payments when applied.
Scoped API key. Scopes: read, commerce, admin.
Account (organization) ID
3-letter ISO 4217 currency code
USDISO 8601 expiry timestamp. Omit for a non-expiring credit.
Credit issued
A credit issued to an account that can be applied to reduce future payment amounts
Original credit amount
Remaining unapplied balance
Validation error
Account not found
POST /api/v1/accounts/{id}/credits/{creditId}/apply
POST /api/v1/accounts/{id}/credits/{creditId}/applyScoped API key. Scopes: read, commerce, admin.
Account ID
Credit ID
Payment session ID to apply the credit against. Omit to record an unallocated application.
Partial application amount. Omit to apply the full remaining balance.
Credit applied
A credit issued to an account that can be applied to reduce future payment amounts
Original credit amount
Remaining unapplied balance
Credit not active, expired, or exhausted
Account, credit, or payment session not found
Last updated
Was this helpful?
