Transactions
Pay-In History
This guide explains how to retrieve transaction records from The Payment Company API. The endpoint supports both live and test transaction data.
API Endpoints
Live APIProduction environment
GET
https://api.thepayment.company/api/v1/live-transactionsTest APISandbox environment
GET
https://api.thepayment.company/api/v1/test-transactionsAuthentication
All API requests must be authenticated with your secret key in the Authorization header.
Query Parameters
Supported query parameters for transaction filtering and pagination are listed below:
| 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 Format
The API response returns transaction data together with pagination metadata.
Transaction Object Fields
Each transaction object in the response includes the following fields:
| Property | Type | Description |
|---|---|---|
first_name | String | Customer first name |
last_name | String | Customer last name |
converted_amount | String | Transaction amount converted into the display currency |
converted_currency | String | Currency code for the converted amount |
transaction_id | String | Unique transaction identifier |
amount | String | Original transaction amount |
currency | String | Original transaction currency |
status | String | Transaction status, such as SUCCESS or FAILED |
card_type | String | Card brand or type used, such as VISA or MASTERCARD |
card_number | String | Masked card number |
transaction_type | String | Transaction category, such as CARD or APM |
order_id | String | Unique order ID, if supplied |
country | String | Country code for the transaction origin |
email | String | Customer email address |
created_at | String | Timestamp when the transaction was created |
transaction_date | String | Timestamp when the transaction was processed |
chargeback_date | String | Chargeback date, if applicable |
refund_date | String | Refund date, if applicable |
suspicious_date | String | Date when the transaction was flagged as suspicious |
merchant_connector | Object | Payment processor information |
user | Object | Merchant user details |
Sample Responses
Pagination
The API response includes pagination metadata that can be used to load more pages of transaction data:
hasNextPage: Indicates whether more transactions exist after the current pagehasPreviousPage: Indicates whether earlier transactions exist before the current pagenextCursor: Cursor value used to request the next page of results with thenextCursorparameterprevCursor: Cursor value used to request the previous page of results with theprevCursorparametertotalCount: Total number of transactions matching the current filters