# Cancel the pending IPS QR for an invoice (cancels at IPS) `POST https://api.leapa.co/v2/invoices/{invoiceId}/cancel-qr` 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`, `cancelled`, `expired` - `charge_id` · _string_ - `resumable` · _boolean_ - `regenerated` · _boolean_ - `qr_reference` · _string_ - `expires_at` · _integer_ - `qr_as_text` · _string_ - `qr_as_image` · _string_ - `amount` · _integer_ - `currency` · _string_ - `settlement_pending_record` · _boolean_ - `message` · _string_ ```json { "invoice_id": "inv_7c1f9a2b48", "status": "pending", "charge_id": "chg_5a90bc71de", "resumable": false, "regenerated": false, "qr_reference": "QR2026013100147", "expires_at": 1769850251000, "qr_as_text": "00020101021226580014BI.CBB.QR0111...", "qr_as_image": "data:image/png;base64,iVBORw0KGgo...", "amount": 45000, "currency": "BIF", "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-qr" \ -H "Authorization: Bearer $LEAPA_API_KEY" \ -H "Accept: application/json" ``` --- _Generated from the Leapa documentation at leapa.co/docs._