Dismiss the pending RTP for an invoice (local — IPS has no recall)
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/cancel-rtp" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"invoice_id": "inv_7c1f9a2b48",
"status": "pending",
"uetr": "97ed4827-7b6f-4491-a06f-b548d5a7512d",
"expires_at": 1769850251000,
"resumable": false,
"settlement_pending_record": false,
"message": "Request sent to the payer"
}Path parameters
Values that go into the URL itself.
invoiceIdstringrequiredExample:inv_7c1f9a2b48
Response
application/json
invoice_idstringstatusstringAllowed values:pendingpaidfailedcancelleduetrstringexpires_atinteger<int64>resumablebooleansettlement_pending_recordbooleanmessagestring
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error