I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
https://developer.squareup.com/docs/invoices-api/cancel-delete-invoices
Additional Documentation
Update Orders
https://developer.squareup.com/docs/orders-api/how-it-works
Pay for Orders
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.