Skip to main content
GET
/
api
/
v1
/
cards-program
/
transactions
curl --location --request GET 'https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions?cardId=7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d&limit=20' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>'
{
  "success": true,
  "data": [
    {
      "transactionId": "txn_1a2b3c4d5e6f7g8h",
      "cardId": "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
      "userId": "3ddd0e5b-6276-4b48-b756-c1fcc9a2efd1",
      "amount": 49.99,
      "currency": "USD",
      "status": "approved",
      "merchantName": "Amazon.com",
      "merchantCategory": "5942",
      "type": "purchase",
      "createdAt": "2024-01-15T14:23:45Z"
    },
    {
      "transactionId": "txn_9h8g7f6e5d4c3b2a",
      "cardId": "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
      "userId": "3ddd0e5b-6276-4b48-b756-c1fcc9a2efd1",
      "amount": 125.50,
      "currency": "USD",
      "status": "approved",
      "merchantName": "Whole Foods",
      "merchantCategory": "5411",
      "type": "purchase",
      "createdAt": "2024-01-14T09:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "eyJpZCI6MTIzNDU2fQ==",
    "hasMore": true
  }
}

Query Parameters

companyId
string
Filter transactions by company ID
userId
string
Filter transactions by user ID
cardId
string
Filter transactions by card ID
cursor
string
Pagination cursor for retrieving the next page of results
limit
number
Number of transactions to return per page (1-100, default: 20)

Response

success
boolean
Indicates whether the call was successful
data
array
Array of transaction objects
pagination
object
Pagination information
curl --location --request GET 'https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions?cardId=7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d&limit=20' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>'
{
  "success": true,
  "data": [
    {
      "transactionId": "txn_1a2b3c4d5e6f7g8h",
      "cardId": "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
      "userId": "3ddd0e5b-6276-4b48-b756-c1fcc9a2efd1",
      "amount": 49.99,
      "currency": "USD",
      "status": "approved",
      "merchantName": "Amazon.com",
      "merchantCategory": "5942",
      "type": "purchase",
      "createdAt": "2024-01-15T14:23:45Z"
    },
    {
      "transactionId": "txn_9h8g7f6e5d4c3b2a",
      "cardId": "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
      "userId": "3ddd0e5b-6276-4b48-b756-c1fcc9a2efd1",
      "amount": 125.50,
      "currency": "USD",
      "status": "approved",
      "merchantName": "Whole Foods",
      "merchantCategory": "5411",
      "type": "purchase",
      "createdAt": "2024-01-14T09:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "eyJpZCI6MTIzNDU2fQ==",
    "hasMore": true
  }
}

Error Responses

{
  "success": false,
  "error": "Unauthorized. Please check your authentication credentials."
}