Skip to main content

List Transactions

Retrieve a paginated list of transactions with optional filters.

GEThttps://api.zenpayz.com/api/v1/transactions
Bearer · API key

Request

Headers

HeaderDescription
Authorization
REQUIRED
Bearer {api_key}
X-Signature
REQUIRED
HMAC-SHA256 signature
X-Timestamp
REQUIRED
ISO 8601 timestamp
X-Secret-Salt
REQUIRED
Secret salt for HMAC validation

Query Parameters

ParameterTypeDescription
page
OPTIONAL
integer1Page number
limit
OPTIONAL
integer20Items per page (max 100)
status
OPTIONAL
string-Filter by status
paymentMethod
OPTIONAL
string-Filter by payment method
currency
OPTIONAL
string-Filter by currency code
customerId
OPTIONAL
string-Filter by customer ID
transactionId
OPTIONAL
string-Filter by transaction ID
minAmount
OPTIONAL
integer-Minimum amount
maxAmount
OPTIONAL
integer-Maximum amount
startDate
OPTIONAL
string-Start date (ISO 8601)
endDate
OPTIONAL
string-End date (ISO 8601)
search
OPTIONAL
string-Search in ID, email, name

Transaction Status Values

StatusDescription
initiatedTransaction created
processingBeing processed
successCompleted successfully
failedTransaction failed
cancelledCancelled by user/merchant
refundedFull refund processed
partially_refundedPartial refund processed

Response

Success (200 OK)

{
"success": true,
"data": [
{
"id": "txn_xxxxx",
"intentId": "pi_xxxxx",
"merchantId": "mer_xxxxx",
"customerId": "cus_xxxxx",
"customerName": "John Doe",
"customerEmail": "john@example.com",
"amount": 1000,
"currency": "USD",
"status": "success",
"paymentMethod": "upi",
"processingFee": 29,
"netAmount": 971,
"metadata": {
"orderId": "order_123"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:35:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8
}
}

Error Responses

CodeHTTPMessage
INVALID_REQUEST400Invalid query parameters
UNAUTHORIZED401Invalid API key

Examples

curl -X GET "https://api.zenpayz.com/api/v1/transactions?status=success&limit=50&startDate=2024-01-01" \
-H "Authorization: Bearer zp_test_xxxxx" \
-H "X-Timestamp: 2024-01-15T10:30:00.000Z" \
-H "X-Signature: a1b2c3d4e5f6..." \
-H "X-Secret-Salt: your_secret_salt"

Filtering Examples

By Date Range

GET /api/v1/transactions?startDate=2024-01-01&endDate=2024-01-31

By Amount Range

GET /api/v1/transactions?minAmount=1000&maxAmount=10000

By Customer

GET /api/v1/transactions?customerId=cus_xxxxx

Combined Filters

GET /api/v1/transactions?status=success&currency=USD&paymentMethod=upi&limit=100