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>'
const response = await fetch('https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions?cardId=7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d&limit=20', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'api-key': '<api-key>'
}
});
const data = await response.json();
{
"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
}
}
Transactions
List Transactions
This endpoint retrieves a paginated list of card transactions with optional filters
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>'
const response = await fetch('https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions?cardId=7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d&limit=20', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'api-key': '<api-key>'
}
});
const data = await response.json();
{
"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
string
Filter transactions by company ID
string
Filter transactions by user ID
string
Filter transactions by card ID
string
Pagination cursor for retrieving the next page of results
number
Number of transactions to return per page (1-100, default: 20)
Response
boolean
Indicates whether the call was successful
array
Array of transaction objects
Show Transaction object
Show Transaction object
string
Unique transaction identifier
string
The card ID used for the transaction
string
The user ID of the cardholder
number
Transaction amount
string
Transaction currency code (e.g., “USD”)
string
Transaction status:
pending, approved, declined, or reversedstring
Name of the merchant
string
Merchant category code (MCC)
string
Transaction type:
purchase, refund, withdrawal, etc.string
ISO 8601 timestamp when the transaction was created
object
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>'
const response = await fetch('https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions?cardId=7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d&limit=20', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'api-key': '<api-key>'
}
});
const data = await response.json();
{
"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."
}
{
"success": false,
"error": "Invalid query parameters."
}
⌘I