Appearance
GET Get Transfer History with or less filters - Default for Today
https://api.magmaonepay.com/v1/payout/transfer/history
Headers
Header | Value |
---|---|
Authorization | Bearer TOKEN |
NB: TOKEN is your private secret key dependant on your mode (live or test) for server-side
Query Parameters
- start_date (optional): Start date for the date range filter. Example: 2023-01-01 10:00:00
- end_date (optional): End date for the date range filter. Example: 2023-01-31 12:00:00
- channel (optional): Filter by transfer channel. Example: mobile_money, airtime
- currency (optional): Filter by currency. Example: XOF
- status (optional): Filter by transfer status. Example: success, pending, failed
Usage
This endpoint is used to retrieve the history of transfer transactions, filtered based on the specified parameters. It provides a detailed view of each transaction, including amounts, dates, and statuses.
Response Fields
The response is a JSON array, with each object in the array representing a transaction in the transfer history.
Array Object Fields
Each object in the response array contains the following fields:
Field | Description | Type |
---|---|---|
created_at | Timestamp when the transfer was created | String |
done_at | Timestamp when the transfer was completed (if applicable) | String |
transfer_token | Unique token of the transfer | String |
merchant_transaction_id | Unique identifier of the transaction | String |
country_name | Name of the country associated with the transfer | String |
country_code | Country code (e.g., CI) | String |
amount | Amount transferred | Number |
currency | Currency code (e.g., XOF) | String |
description | Description of the transfer | String |
channel | Channel used for the transfer | String |
receiver_account | Account number of the receiver | String |
receiver_first_name | First name of the receiver | String |
receiver_last_name | Last name of the receiver | String |
webhook_url | URL for webhook notifications | String |
custom_field | Any custom field provided | String |
status | Current status of the transfer |
Example Response
json
{
"code": 200,
"message": "OK",
"data": [
// Array of objects representing each transfer transaction
{
"created_at": "2024-06-04T00:46:19.000000Z",
"done_at": null,
"transfer_token": "da578aa9-cf07-481c-83d9-6c71ca980644",
"merchant_transaction_id": "JGVDHUSJGBJs",
"country_name": "Côte d'Ivoire",
"country_code": "CI",
"amount": 150,
"currency": "XOF",
"description": "Transfer test",
"channel": "mobile_money",
"receiver_account": "+2250707000200",
"receiver_first_name": "Cheick",
"receiver_last_name": "Cheick",
"webhook_url": "https://webhook.site",
"custom_field": "123456",
"status": "new"
}
// Additional transaction objects...
],
"count": 1,
"total": 1,
"per_page": 255,
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1
}
Example Request
GET https://api.magmaonepay.com/v1/payout/transfer/history?start_date=2023-01-01 10:00:00&end_date=2023-01-31 12:00:00&channel=mobile_money¤cy=XOF&status=success
This request will retrieve the count of transfer transactions for the current day within the specified date range, filtered by transfer channel (mobile_money), currency (XOF), and status (success).