1. Home
  2. Docs
  3. Developers Guide
  4. Integration APIs
  5. Invoice
  6. expire_invoice

expire_invoice

This API is used to expire an invoice link corresponding to the txnID. In a few cases – an invoice might be sent to an incorrect email ID by the merchant. In such scenario, merchant might want to discard the invoice by expiring it. This API can be useful in such scenario.

a. If invoice is successfully expired, and the transaction isn’t already in progress

Array
(
[status] => 1
[msg] => Invoice expired
)

b. If invoice is successfully expired, but the transaction is already in progress

Array 
(
[status] => 1
[msg] => Invoice expired, Transaction is already in progress 
)

c. If invoice doesn’t exist for txnID

Array
(
[status] => 0
[msg] => Invoice does not exist for this txnid )