Get all transfers.
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X GET "https://api.leapa.co/v2/transfers?pageFilterTransfer=<pageFilterTransfer>" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"object": "string",
"page": 0,
"size": 0,
"live": false,
"total_elements": 0,
"total_pages": 0,
"data": [
{
"id": "obj_5f21c8a40b",
"object": "string",
"amount": 45000,
"currency": "BIF",
"description": "Room 204, two nights",
"type": "deposit",
"created_date": 0,
"merchant_id": "mer_1b47d0e9ca",
"merchant_name": "Jeanne Ndayishimiye",
"live": false,
"modified_date": 0,
"reversal_id": "string"
}
]
}Query parameters
Appended to the URL after a `?`.
pageFilterTransferPageFilterTransferrequired
Response
objectstringArray
pageinteger<int32>The current page returned
sizeinteger<int32>The total size in a page
livebooleanFlag to indicate whether this is live mode or not
total_elementsinteger<int32>The total elements
total_pagesinteger<int32>The total pages
dataarray of TransferResponseList of transfers
idstringId of the transfer
objectstringobject to be returned
amountinteger<int64>Amount to be transferred.
currencystringThree-Letter ISO currency code
Allowed values:BIFUSDKESXAFdescriptionstringDescription of the payout.
typestringType of the transfer. Either deposit or reversal
Allowed values:depositreversalcreated_dateinteger<int64>UTC UNIX Epoch Timestamp in millisecond at which the record was created.
merchant_idstringID of the merchant receiving the fund
merchant_namestringName of the merchant receiving the fund
livebooleanWhether the object exist in live or test mode.
modified_dateinteger<int64>UTC UNIX Epoch Timestamp in millisecond at which the object was modified.
reversal_idstringID of the reversal transfer for a deposit. Only valid for bank and card type.
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error