Skip to main content

Get Transaction Status

Poll the status of an on-ramp or off-ramp transaction. Use the transactionId returned from a checkout response.

GEThttps://api.zenpayz.com/payment/api/v1/on-ramp/transactions/:transactionId
Bearer · API key
GEThttps://api.zenpayz.com/payment/api/v1/off-ramp/transactions/:transactionId
Bearer · API key

Request

Headers

HeaderDescription
x-request-id
OPTIONAL
Custom request ID for tracing
Public Endpoint

This endpoint does not require authentication headers.

Path Parameters

ParameterTypeDescription
transactionId
REQUIRED
stringTransaction ID from checkout response

Response

Success (200 OK)

{
"success": true,
"data": {
"transactionId": "txn_abc123",
"status": "completed",
"transactionType": "buy",
"inAmount": 100,
"outAmount": 0.00112,
"sourceCurrency": "usd",
"targetCurrency": "btc_bitcoin",
"onramp": "moonpay",
"paymentMethod": "creditcard",
"walletAddress": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"transactionHash": null,
"statusDate": "2026-03-11T04:50:00.000Z"
},
"message": "Transaction retrieved"
}

Response Fields

ParameterTypeDescription
transactionId
OPTIONAL
stringUnique transaction identifier
status
OPTIONAL
stringCurrent status (see table below)
transactionType
OPTIONAL
stringbuy or sell
inAmount
OPTIONAL
numberAmount in source currency
outAmount
OPTIONAL
numberAmount in destination currency
sourceCurrency
OPTIONAL
stringSource currency ID
targetCurrency
OPTIONAL
stringDestination currency ID
onramp
OPTIONAL
stringProvider that processed the transaction
paymentMethod
OPTIONAL
stringPayment method used
walletAddress
OPTIONAL
stringCrypto wallet address
transactionHash
OPTIONAL
stringBlockchain transaction hash (when available)
statusDate
OPTIONAL
stringISO 8601 timestamp of last status update

Transaction Statuses

StatusDescription
pendingTransaction created, awaiting user action
processingPayment is being processed
completedTransaction completed successfully
failedTransaction failed
expiredTransaction expired
refundedTransaction was refunded

Error Responses

CodeHTTPMessage
UNAUTHORIZED401Invalid transaction ID
RAMP_TRANSACTION_FAILED500Failed to get on-ramp transaction
OFFRAMP_STATUS_FAILED500Failed to get off-ramp transaction

Examples

# On-ramp transaction
curl "https://api.zenpayz.com/payment/api/v1/on-ramp/transactions/txn_abc123"

# Off-ramp transaction
curl "https://api.zenpayz.com/payment/api/v1/off-ramp/transactions/txn_def456"

Next Steps