This API should be used by the merchant for updating the status of the invoice request in case of
payment being made outside of PayPhi system OR the merchant wants to update the description, due
date ,status etc. For change of amount, merchant should close the old invoice and raise a new one.
We support 3 Invoice status to modify the invoices raised
C – Close/Cancel
P – Paid
O – Open
ERP system can send update to either close/cancel an invoice. If the invoice is paid by any other channel then the same can be updated by using status as Paid.
Close – Can be used only when the invoice is fully open (not fully or partly paid).
For updating the dueDate/ additionalFee send invoiceStatus as O. This status cannot be used to reopen a paid/Closed/Cancelled/Refunded invoice.
For change of amount, merchant should close the old invoice and raise a new one.