Adds amountCents of credit to the organization's balance without any payment and returns the new balance with the latest 50 ledger entries. A repeated requestId does not grant again. Returns 403 while credits are turned off. Super admin only.
POST
/admin/orgs/{orgId}/credits
curl \
--request POST 'http://api.example.com/admin/orgs/{orgId}/credits' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"amountCents": 42.0,
"reason": "string",
"requestId": "string"
}'
Request examples
{
"amountCents": 42.0,
"reason": "string",
"requestId": "string"
}
Response examples (200)
{
"data": {
"balanceCents": 20000,
"currency": "usd",
"effectiveDeductPercentage": 100,
"entries": [
{
"type": "debit",
"reason": "deduction",
"deltaCents": -5000,
"balanceAfterCents": 20000,
"description": "Credit applied to invoice in_1QExampleInvoice0001",
"invoice": "in_1QExampleInvoice0001",
"createdAt": "2026-01-15T14:30:00.000Z"
}
]
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}