Customer Credits - Accounts
Debit an account
Changed onDeduct credits from a customer account. Returns the resulting transaction record.
post/v1/customer-credits/accounts/{id}/debit
Request
- Base URLhttps://api.creem.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Request body
Example request
{
"amount": "1000",
"reference": "signup_bonus",
"idempotency_key": "idem_abc123"
}Response
Debit transaction created
Example response
{
"id": "cct_abc123",
"reference": "order_xyz",
"reversal_of": "cct_abc123",
"entries": [
{
"id": "cce_abc123",
"transaction_id": "cct_abc123",
"account_id": "cca_abc123",
"amount": "1000"
}
]
}Changes
- info
api tag
Customer Credits - Accountsadded - info
api tag
Customer Credits - Accounts (Experimental)removed
- info
- breaking
the response property
became nullable for the status - breaking
the
/////response's property type changed fromobjecttostringfor status - breaking
the
/////response's property type changed fromobjecttostringfor status - breaking
the
response's property type changed fromobjecttostringfor status
- breaking