Skip to main content
GET
/
api
/
v1
/
cards-program
/
transactions
/
:transactionId
curl --location --request GET 'https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions/txn_1a2b3c4d5e6f7g8h' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>'
{
  "success": true,
  "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",
  "merchantCity": "Seattle",
  "merchantCountry": "US",
  "type": "purchase",
  "createdAt": "2024-01-15T14:23:45Z",
  "settledAt": "2024-01-16T02:00:00Z"
}

Params

transactionId
string
required
The unique transaction identifier

Response

success
boolean
Indicates whether the call was successful
transactionId
string
Unique transaction identifier
cardId
string
The card ID used for the transaction
userId
string
The user ID of the cardholder
amount
number
Transaction amount
currency
string
Transaction currency code (e.g., “USD”)
status
string
Transaction status: pending, approved, declined, or reversed
merchantName
string
Name of the merchant
merchantCategory
string
Merchant category code (MCC)
merchantCity
string
City where the merchant is located
merchantCountry
string
Country code where the merchant is located
type
string
Transaction type: purchase, refund, withdrawal, etc.
declineReason
string
Reason for decline (only present if status is declined)
createdAt
string
ISO 8601 timestamp when the transaction was created
settledAt
string
ISO 8601 timestamp when the transaction was settled (if applicable)
curl --location --request GET 'https://stablecoin-api.sandbox.getmeru.com/api/v1/cards-program/transactions/txn_1a2b3c4d5e6f7g8h' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>'
{
  "success": true,
  "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",
  "merchantCity": "Seattle",
  "merchantCountry": "US",
  "type": "purchase",
  "createdAt": "2024-01-15T14:23:45Z",
  "settledAt": "2024-01-16T02:00:00Z"
}

Error Responses

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