Request payment (RTP) from a customer for an invoice
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 POST "https://api.leapa.co/v2/invoices/inv_7c1f9a2b48/request-rtp" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"debtor_alias": "+25779123456",
"debtor_account": "00012345678901",
"debtor_bank_bic": "BIBUBIBI",
"debtor_name": "Jeanne Ndayishimiye",
"amount": 45000,
"currency": "BIF"
}'Response
OK
{
"invoice_id": "inv_7c1f9a2b48",
"uetr": "97ed4827-7b6f-4491-a06f-b548d5a7512d",
"amount": 45000,
"currency": "BIF",
"status": "pending",
"expires_at": 1769850251000,
"message": "Request sent to the payer"
}Path parameters
Values that go into the URL itself.
invoiceIdstringrequiredExample:inv_7c1f9a2b48
Request body
application/json
Required. Send it as JSON.
debtor_aliasstringdebtor_accountstringdebtor_bank_bicstringdebtor_namestringamountinteger<int64>currencystring
Response
application/json
invoice_idstringuetrstringamountinteger<int64>currencystringstatusstringexpires_atinteger<int64>messagestring
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error