Customer Credits - Transactions
Post a transaction
Changed onPost a multi-entry transaction. Entries must balance (total debits must equal total credits).
post/v1/customer-credits/transactions
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.
Request body
Example request
{
"reference": "order_xyz",
"idempotency_key": "idem_abc123",
"entries": [
{
"account_id": "cca_abc123",
"amount": "1000"
}
]
}Response
Transaction posted
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
endpoint added
- info