Skip to main content
There are two kinds of transaction, and they answer different questions:

How a purchase moves

After clearing, a merchant refund arrives as REFUNDED, and a currency-conversion correction as ADJUSTED. The TRANSACTION_PROCESSED webhook follows these steps, so you can receive it more than once for the same purchase: once AUTHORIZED, then CLEARED. Branch on type and status:
TRANSACTION_AUTHORIZED, TRANSACTION_CLEARED and TRANSACTION_REVERSED are the older, one-per-step events. They are still sent to endpoints subscribed to them; new integrations should use TRANSACTION_PROCESSED.

Card transactions

GET /cards/{id}/transactions returns the card’s history as the card network reported it:

Why a payment was declined

A declined payment carries up to three fields:
  • declineReason: a stable code to branch on, such as INSUFFICIENT_FUNDS, MERCHANT_RESTRICTED or SPEND_LIMIT_EXCEEDED. The full list is on TRANSACTION_DECLINED.
  • declineReasonDescription: the same cause in one plain sentence, safe to show the cardholder.
  • declineReasonDetail: the issuer’s own wording for this payment, when they gave one. Show it if present; never branch on it.
New codes can be added, so treat one you do not recognise as UNKNOWN_DECLINE. A decline places no hold and moves no money. To see which merchant categories the issuer declines, read GET /merchant-category-restrictions.

Your ledger

GET /transactions lists every movement on your balance, newest first: Each row carries amount, fee, status (PENDING, SETTLED, FAILED or REVERSED), balanceBefore and balanceAfter, and the cardId and reference of the operation behind it. Filter with type, status, direction, cardId, reference and search, over from and to. A range covers at most 92 days (422 DATE_RANGE_TOO_WIDE); without one, the last 30 days.

Reconciling

  • What left your balance: sum the ledger’s DEBIT rows for the period, by type. The balanceAfter of the last row is your balance at that moment.
  • What a cardholder spent: count a card’s SETTLED purchases, or the TRANSACTION_PROCESSED events with status: CLEARED. Authorizations are intent; clearings are spend.
  • Matching the two: a ledger row and the operation behind it share a reference, and card-related rows carry the cardId.

Endpoints