Get Account Transactions
This API will return all the transactions done in partner’s account by the merchant. We will pass date range to get the payout details and no of rows in response then we will get payment details like amount, balance, and description.
http://kraken.airpay.co.in:8000/payout/partner/transactionsHeader
Section titled “Header”| Field | Type | Description |
|---|---|---|
| Content-Type | String | application/json |
| Authorization | String | Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
Header-Example:
Section titled “Header-Example:”{ "Accept": "application/json", "Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}Parameter
Section titled “Parameter”| Field | Type | Required | Description |
|---|---|---|---|
| from_date | Date | No | Transaction created from date in Y-m-d format |
| to_date | Date | No | Transaction created to date in Y-m-d format |
| offset | Numeric | No | Row number from which records should start retrieving |
| limit | Numeric | No | Number of rows in the response (maximum 100) |
Request-Example
Section titled “Request-Example”GET 'partner/transactions?offset=0&limit=25&from_date=2022-01-01&to_date=2022-01-31'Success 200
Section titled “Success 200”| Field | Type | Description |
|---|---|---|
| status | Alphanumeric | success / error |
| message | Alphanumeric | Response description |
| errors | Array | Error messages if response status is ‘error’ |
| data | Array | Response data |
| data[created_datetime] | DateTime | Transaction date and time (Y-m-d H:i:s) |
| data[entry_side] | Alphanumeric | debit / credit |
| data[balance] | Numeric | Balance in account |
| data[description] | Alphanumeric | Transaction description |
| data[approved_transfers_count] | Numeric | Number of transfers approved by Airpay |
| data[processing_transfers_count] | Numeric | Number of transfers in process |
| data[success_transfers_count] | Numeric | Number of successful transfers |
| data[failure_transfers_count] | Numeric | Number of failed transfers |
| data[rejected_transfers_count] | Numeric | Number transfers rejected by Airpay |
Example Response
Section titled “Example Response”{ "status": "success", "message": "Transactions", "data": "qwC4u7ELk0nFjkvoZ5I8WibsCANCWNmt+ZGFiJGC7s20qRZQA88cP0NB4Btf3eh1msFGa4JFyoWKFGoTgH+d7IQM6SqmtbvfwJA8OuYrxtni2mSfIwGtklACikX3tF5VxGaZUkd+ZDoyASsp5dbRWtaaov7mRpG7kRv3FgbIpRFfHq0/klVAXfMrOCGuuI+KRfmoVSAV60Qo0dYj5kCPHvkurUmDCuJeNvQTlJUHMiGuIWIRGWwMudrDBr+MnM2AKJS7fmE/JXVTbuY0EP1bvV1ZuKi55IZYqi4PefREcEy87qq7oAEz/ggVrmKVoFz057yNzhA5J7oZoLCo6ciYxx4pST5l963PH5MS0itpIZcIe+i49I4DowEsPFTUpDpI1hMX4yAzUsQ+tRN+KxjnSw=="}Response Decrypted
Section titled “Response Decrypted”{ "status": "success", "message": "Transactions", "data": [ { "created_datetime": "2022-02-09 08:46:50", "entry_side": "debit", "type": "payout", "amount": 5, "balance": 4595, "description": "Transfer fee/2022JAN/18" }, { "created_datetime": "2022-02-09 08:46:21", "entry_side": "debit", "type": "payout", "amount": 400, "balance": 4600, "description": "Transfer/2022JAN/18" } ]}