Cancel invoice automatically

ayrancd
Contributor
Contributor

Is it possible to cancel an invoice if it is overdue? I'm invoicing using the REST API and I have this overdue invoice https://www.sandbox.paypal.com/invoice/p/#INV2-VV2P-3SWS-YQXC-C8GM and I can still pay for it but I'd like to not allow users to pay if it is overdue and cancel that invoice automatically. Tks in advance!

Login to Me Too
2 REPLIES 2

MTS_Stefan
Moderator
Moderator
Hello Ayrancd,

You can use the cancel Invoice call:
https://developer.paypal.com/docs/api/invoicing/v2/#invoices_cancel

Kind Regards,
Stefan
Login to Me Too

ayrancd
Contributor
Contributor

Hi Stefan,

 

Thank you for replying to me. I know I can cancel an invoice manually but my question is: Can the invoice be cancelled automatically if it is overdue?

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.