Skip to content

GET Get Transfer History with or less filters - Default for Today

https://api.magmaonepay.com/v1/payout/transfer/history

Headers

HeaderValue
AuthorizationBearer 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:

FieldDescriptionType
created_atTimestamp when the transfer was createdString
done_atTimestamp when the transfer was completed (if applicable)String
transfer_tokenUnique token of the transferString
merchant_transaction_idUnique identifier of the transactionString
country_nameName of the country associated with the transferString
country_codeCountry code (e.g., CI)String
amountAmount transferredNumber
currencyCurrency code (e.g., XOF)String
descriptionDescription of the transferString
channelChannel used for the transferString
receiver_accountAccount number of the receiverString
receiver_first_nameFirst name of the receiverString
receiver_last_nameLast name of the receiverString
webhook_urlURL for webhook notificationsString
custom_fieldAny custom field providedString
statusCurrent 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&currency=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).