v2

latestOpenAPI 3.0.0Commercial2026-07-2649110209.4 KB
Customer Credits - Accounts (Experimental)

Reverse a transaction

Reverse 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

Path parameters

idstring required

Request body

transaction_idstring required

ID of the transaction to reverse

Example request

{
  "transaction_id": "cct_abc123"
}

Response

Reversal transaction created

idstring required

Transaction ID

store_idstring required

Store ID

referencestring required

Reference string

idempotency_keystring required

Idempotency key

reversal_ofstring nullable

ID of the transaction this reverses, if applicable

created_atstring required

Creation timestamp

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"
    }
  ]
}