# Dismiss the pending RTP for an invoice (local — IPS has no recall) `POST https://api.leapa.co/v2/invoices/{invoiceId}/cancel-rtp` Send your API key as a bearer token in the `Authorization` header. ## Path parameters - `invoiceId` · _string_ · **required** Example: `inv_7c1f9a2b48` ## Response 200 - `invoice_id` · _string_ - `status` · _string_ Allowed values: `pending`, `paid`, `failed`, `cancelled` - `uetr` · _string_ - `expires_at` · _integer_ - `resumable` · _boolean_ - `settlement_pending_record` · _boolean_ - `message` · _string_ ```json { "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" } ``` ## Status codes - `200` OK - `400` Bad request - `401` Unauthorized - `402` Payment required - `403` Forbidden - `404` Not found - `428` Precondition required - `500` Server error ## Example ```bash curl -X POST "https://api.leapa.co/v2/invoices/inv_7c1f9a2b48/cancel-rtp" \ -H "Authorization: Bearer $LEAPA_API_KEY" \ -H "Accept: application/json" ``` --- _Generated from the Leapa documentation at leapa.co/docs._