Delete invoice
curl -X DELETE "https://test-api.kashier.io/v2/paymentRequest/string"{ "body": { "paymentRequestId": "PR-XXXXXXXXXX", "isDeleted": true }, "message": "success"}Deletes an invoice. The invoice is soft-deleted — it stops being payable and disappears from List invoices, but its history is retained.
Authorization
secretKey Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).
In: header
Path Parameters
The invoice identifier (e.g., PR-XXXXXXXXXX).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Get invoice GET
Retrieves a single invoice, including its line items and any payment transactions recorded against it.
Update invoice PUT
Updates an invoice, or cancels it. Send operation: cancel to cancel an unpaid invoice; send any of the editable fields to change it. Only unpaid invoices can be edited.