When I tried to delete an invoice through API, it gave me an error saying "only cancelled invoice can be deleted".
So how to cancel an invoice through API? I tried a PUT to update the invoice status to "CANCELLED" but it didn't work.
PUT or DELETE for https://sandbox.dev.clover.com/invoicingandcheckoutservice/v1/invoices/{id}