Customer Credits - Accounts
Reverse a transaction
Changed onReverse a previous credit or debit on this account. Creates a new transaction that undoes the original, preserving the full history.
post/v1/customer-credits/accounts/{id}/reverse
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
{
"transaction_id": "cct_abc123"
}Response
Reversal 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