Skip to content

Card transactions ​

List a card's activity: purchases, refunds, reversals, fees, loads (deposits) and withdrawals.

List transactions ​

GET/api/v2/cards/{cardId}/transactionsBearer agent-vc
bash
curl -G https://agentcard.fluxapay.xyz/api/v2/cards/card_7Hq2LmX9pRt4/transactions \
  -H "Authorization: Bearer $AGENT_VC" \
  --data-urlencode "type=purchase" \
  --data-urlencode "pageSize=10"

CLI:

bash
fluxa-wallet card transactions --id card_7Hq2LmX9pRt4 --type purchase --limit 10

Query parameters ​

ParameterTypeDefaultDescription
pageNuminteger1Page number, starting at 1.
pageSizeinteger20Items per page, max 50.
typestringallOne of purchase, refund, verification, reversal, fee, deposit, withdrawal.
startTimeinteger—Only items at or after this time (Unix milliseconds).
endTimeinteger—Only items at or before this time (Unix milliseconds).

Response ​

json
{
  "transactions": [
    {
      "transactionId": "…",
      "relatedTransactionId": null,
      "type": "purchase",
      "status": "settled",
      "amount": "12.60",
      "currency": "USD",
      "merchantAmount": "11.50",
      "merchantCurrency": "EUR",
      "fee": "0.00",
      "crossBorderFee": "0.38",
      "merchant": { "name": "Example Store", "category": "5734", "country": "DE", "city": "Berlin" },
      "description": null,
      "time": "2026-10-27T13:20:11.000Z"
    },
    {
      "transactionId": "funding:2b0f8a3e-5c1d-4f7a-9e2b-6d4c8a1f0e37",
      "relatedTransactionId": null,
      "type": "deposit",
      "status": "settled",
      "amount": "25.00",
      "currency": "USD",
      "merchantAmount": null,
      "merchantCurrency": null,
      "fee": "1.00",
      "crossBorderFee": null,
      "merchant": null,
      "description": "Initial card load",
      "time": "2026-10-27T10:01:00.000Z"
    }
  ],
  "pageNum": 1,
  "pageSize": 20,
  "total": 2
}
FieldDescription
transactionIdTransaction ID.
relatedTransactionIdFor refunds and reversals, the original transaction.
typepurchase, refund, verification (zero/low-value card check by a merchant), reversal, fee, deposit (initial load or top-up), withdrawal.
statusSee below.
amount, currencyAmount charged to the card, in the card currency.
merchantAmount, merchantCurrencyAmount in the merchant's currency, when different.
fee, crossBorderFeeFees on this transaction, when applicable.
merchantname, category (merchant category code), country, city, when known.
descriptionShort description, when available.
timeISO 8601 timestamp.

Results are sorted newest first.

Transaction statuses ​

statusMeaning
authorizedApproved by the card, not yet settled. The amount is held.
pendingIn progress (for example, a withdrawal still being transferred).
settledFinal.
failedDeclined or did not complete.
reversedUndone; the amount was returned to the card.

Errors ​

StatuscodeWhat to do
400invalid_transaction_typeUse one of the listed type values.
404card_not_foundCheck the card ID.

Released under the MIT License.