Get the payout
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/payouts/pay_47e5a1c803" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"id": "obj_5f21c8a40b",
"object": "string",
"amount": 45000,
"currency": "BIF",
"description": "Room 204, two nights",
"reversal": "string",
"status": "paid",
"type": "bank",
"automatic": false,
"liveMode": false,
"arrival_date": 0,
"created_date": 0,
"account_id": "acc_62f3a8d15b",
"failure_code": "account_closed",
"failure_message": "string",
"live": false,
"modified_date": 0,
"processing_id": "string"
}Path parameters
Values that go into the URL itself.
payout_idstringrequiredExample:pay_47e5a1c803
Response
idstringrequiredId of the Payout
objectstringrequiredType of object returned - Payout
amountinteger<int64>requiredAmount collected to be deposited
currencystringrequiredThree-Letter ISO currency code
Allowed values:BIFUSDKESXAFdescriptionstringrequiredDescription of the payout.
reversalstringID of the reversal transfer for a deposit. Only valid for bank and card type.
statusstringStatus of the payout. Either paid, pending, in_transit, canceled or failed. Only valid for bank and card type.
Allowed values:paidpendingin_transitcanceledfailedtypestringBank, card or reversal
Allowed values:bankcardmobileautomaticbooleanWhether the Payout was done by automate payout schedule or was requested manually. (Only valid for Bank and card type).
liveModebooleanarrival_dateinteger<int64>UTC UNIX Epoch Timestamp in millisecond at which the payout is expected to arrive in the bank. Factors in weekends and bank holidays.
created_dateinteger<int64>requiredUTC UNIX Epoch Timestamp in millisecond at which the record was created.
account_idstringrequiredID of the bank account the payout was sent to
failure_codestringrequiredDifferent failed code: account_closed, account_frozen, account_restricted, could_not_process, declined, invalid_account_info, invalid_currency, unsupported_card
Allowed values:account_closedaccount_frozenaccount_restrictedcould_not_processdeclinedinvalid_account_infoinvalid_currencyunsupported_cardfailure_messagestringrequiredMessage explaining reason for charge failure
livebooleanWhether the object exist in live or test mode.
modified_dateinteger<int64>UTC UNIX Epoch Timestamp in millisecond at which the object was modified.
processing_idstringThe Bank reference number of the deposit.
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error