Skip to content

Dismiss the pending RTP for an invoice (local — IPS has no recall)

POST https://api.leapa.co/v2/invoices/{invoiceId}/cancel-rtp

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.

  • invoiceIdstringrequired
    Example:inv_7c1f9a2b48

Response

application/json
  • invoice_idstring
  • statusstring
    Allowed values:pendingpaidfailedcancelled
  • uetrstring
  • expires_atinteger<int64>
  • resumableboolean
  • settlement_pending_recordboolean
  • messagestring

Status codes

  • 200OK
  • 400Bad request
  • 401Unauthorized
  • 402Payment required
  • 403Forbidden
  • 404Not found
  • 428Precondition required
  • 500Server error

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"
}