Cancel Invoice
POST https://pgbiz.omniware.in/v1/cancelinvoice
Content-Type: application/x-www-form-urlencoded
A cancelled invoice cannot be paid, dispatched, or cancelled again. There is no "un-cancel" — create a fresh invoice if needed.
Request parameters
api_keystring (40)requiredinvoice_nointegerrequiredhashstring (255)requiredResponse
{
"data": {
"message": "Invoice cancelled successfully",
"invoice_status": "cancelled"
}
}
Errors:
{ "error": { "code": "GEN-INVALID-HASH", "message": "The hash key field is invalid" } }
{ "error": { "code": "GEN-STATUS-INVALID", "message": "Invoice with cancelled status cannot be cancelled" } }