Edit Invoice
POST https://pgbiz.omniware.in/v1/editinvoice
Content-Type: application/x-www-form-urlencoded
Only unpaid invoices can be edited. After payment, the invoice is immutable.
Request parameters
api_keystring (40)requiredinvoice_nonumber(10)requirednamestring (50)emailstring (50)phonenumber(10)item_descriptionstring (140)amountdecimal(10,2)hashstring (255)requiredPass only the fields you want to change. Hash must be computed over exactly the fields you send.
Response
{
"error": {
"code": "SUCCESS",
"message": "Invoice Detail Updated Successfully"
}
}
note
The success response uses the error envelope rather than data. Treat any payload where code === "SUCCESS" as a success regardless of envelope.
Errors:
{ "error": { "code": "GEN-INVALID-HASH", "message": "The hash key field is invalid" } }
{ "error": { "code": "GEN-INVALID-PARAMS", "message": "The api key field is required." } }