UPP Docs
Card

List card transactions

GET
/card-transactions

Purchases, refunds, reversals and issuer card fees on the merchant's cards, most recent first, with cursor pagination. Transactions follow the card issuer's notifications; they do not affect the merchant balance and do not appear in GET /transactions. For the card balance, see GET /cards/{cardId}.

The authorization, settlement, reversals, refunds and fees charged with one purchase are one transaction (one ctx_). Each update from the issuer has its own cte_ in events, and revision goes up by 1 each time an update changes the transaction.

Authorization

merchantApiKeymerchantTimestampmerchantNoncemerchantSignature
headerX-API-KEY<token>

Merchant API key (starts with upk_, also accepts api-key); signing headers are also required

headerX-Timestamp<token>

Unix timestamp in seconds, within 300 seconds of server time

headerX-Nonce<token>

Unique per request; cannot be reused with the same credential during the timestamp validity window

headerX-Signature<token>

Hex HMAC-SHA256 signature (either letter case) of the method, full path, timestamp, nonce and body digest

Query Parameters

card_id?string

Only this card (starts with card_)

type?string
  • purchase: purchase
  • verification: card verification (usually a zero-amount authorization)
  • refund: refund (including returns, chargebacks and FX differences returned)
  • reversal: authorization reversal
  • maintenance_fee: card maintenance fee charged by the issuer
  • transaction_fee: per-transaction fee charged by the issuer
  • cross_border_fee: cross-border / FX fee
  • fx_adjustment: FX adjustment
Value in"purchase""verification""refund""reversal""maintenance_fee""transaction_fee""cross_border_fee""fx_adjustment"
status?string
  • pending: being processed by the issuer
  • authorized: authorized; the amount is held on the card
  • settled: settled (fee transactions are settled once charged)
  • reversed: authorization reversed
  • refunded: refunded (can be refunded several times; see refunded_amount for the total)
  • declined: authorization declined
  • failed: failed at the issuer
Value in"pending""authorized""settled""reversed""refunded""declined""failed"
occurred_from?string

Occurred at or after (ISO 8601)

Formatdate-time
occurred_to?string

Occurred at or before (ISO 8601)

Formatdate-time
limit?integer

Page size, 1 to 100, default 20

Range1 <= value <= 100
cursor?string

next_cursor from the previous page

Response Body

Card transactions; next_cursor is null when there are no more

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://sandbox.getupp.net/api/v1/card-transactions'
Example Response
{  "data": [    {      "id": "string",      "card_id": "string",      "original_transaction_id": "string",      "type": "purchase",      "status": "pending",      "revision": 0,      "transaction_amount": "string",      "transaction_currency": "string",      "billing_currency": "string",      "authorized_amount": "string",      "settled_amount": "string",      "reversed_amount": "string",      "refunded_amount": "string",      "fee": "string",      "merchant": {        "name": "string",        "category_code": "string",        "country": "string",        "city": "string"      },      "authorization_code": "string",      "wallet_type": "string",      "description": "string",      "events": [        {          "id": "string",          "type": "authorization",          "status": "pending",          "revision": 0,          "transaction_amount": "string",          "transaction_currency": "string",          "billing_amount": "string",          "billing_currency": "string",          "fee": "string",          "occurred_at": "2019-08-24T14:15:22Z"        }      ],      "occurred_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}