Transactions
Wallet Transactions API
This document provides a comprehensive guide to fetch your payout wallet transaction data from Pay Agency's API.
API Endpoints
Authentication
All API requests require authentication using your secret key in the Authorization header.
Query Parameters
The API supports the following query parameters to filter and paginate transaction data:
Parameter | Type | Description | Required |
---|---|---|---|
transaction_start_date | String | Start date for filtering transactions (YYYY-MM-DD format) | No |
transaction_end_date | String | End date for filtering transactions (YYYY-MM-DD format) | No |
nextCursor | String | Cursor for next page of results | No |
prevCursor | String | Cursor for previous page of results | No |
Example Request
Response Structure
Wallet Transaction Object Properties
Note: The wallet_id
and transaction_date
fields are not available in test wallet transactions. These fields are only present in live wallet transactions.
Property | Type | Description |
---|---|---|
wallet_id | String | Unique identifier for the wallet |
first_name | String | First name of the account holder |
last_name | String | Last name of the account holder |
transaction_id | String | Unique identifier for the transaction |
amount | String | Transaction amount |
address | String | Address associated with the wallet (if any) |
currency | String | Currency code for the transaction |
status | String | Status of the transaction (SUCCESS, FAILED, etc.) |
card_type | String | Type of card used (e.g., MASTER) |
card_number | String | Masked card number |
card_expiry_month | String | Card expiry month |
card_expiry_year | String | Card expiry year |
transaction_type | String | Type of transaction (CARD, APM, etc.) |
order_id | String | Unique order ID (if provided) |
message | String | Transaction message or remark |
phone_number | String | Phone number associated with the transaction |
fee | String | Fee charged for the transaction |
country | String | Country code |
String | Email address | |
created_at | String | Transaction creation timestamp |
transaction_date | String | Transaction processing timestamp |
Example Response
Pagination
The API response includes pagination metadata that can be used to fetch additional pages of transaction data:
hasNextPage
: Boolean indicating if there are more transactions available after this pagehasPreviousPage
: Boolean indicating if there are transactions available before this pagenextCursor
: Cursor string to fetch the next page of results (use withnextCursor
parameter)prevCursor
: Cursor string to fetch the previous page of results (use withprevCursor
parameter)totalCount
: Total number of transactions matching the current filter criteria