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.
SIze-1