GET
/
api
/
v1
/
transactions
Get transactions for activated cards
const url = 'https://api.gnosispay.com/api/v1/transactions';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
[
  {
    "createdAt": "2023-11-07T05:31:56Z",
    "clearedAt": "2023-11-07T05:31:56Z",
    "country": {
      "name": "<string>",
      "numeric": "<string>",
      "alpha2": "<string>",
      "alpha3": "<string>"
    },
    "isPending": true,
    "mcc": "<string>",
    "merchant": {
      "name": "<string>",
      "city": "<string>",
      "country": {
        "name": "<string>",
        "numeric": "<string>",
        "alpha2": "<string>",
        "alpha3": "<string>"
      }
    },
    "billingAmount": "<string>",
    "billingCurrency": {
      "symbol": "<string>",
      "code": "<string>",
      "decimals": 123,
      "name": "<string>"
    },
    "transactionAmount": "<string>",
    "transactionCurrency": {
      "symbol": "<string>",
      "code": "<string>",
      "decimals": 123,
      "name": "<string>"
    },
    "transactionType": "<string>",
    "transactions": [
      {
        "status": "Unsubmitted",
        "to": "<string>",
        "value": "<string>",
        "data": "<string>",
        "hash": "<string>"
      }
    ],
    "kind": "Payment",
    "status": "Approved"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

cardTokens
string

Comma-separated list of card tokens

before
string<date-time>

Filter transactions before this date (ISO 8601 format, e.g., "2023-04-01T00:00:00Z")

after
string<date-time>

Filter transactions after this date (ISO 8601 format, e.g., "2023-03-01T00:00:00Z")

billingCurrency
string

Filter by billing currency code

transactionCurrency
string

Filter by transaction currency code

mcc
string

Filter by Merchant Category Code (MCC)

transactionType
string

Filter by transaction type code (e.g., "00" for Purchase, "01" for Withdrawal)

Response

200
application/json

Successful response