Examples by country
⛔ Cancelling an invoice
Cancelling an invoice
In Mexico, there is no credit note document, therefore in order to cancel a sale, you can either a) cancel the document itself, or b) create an expense invoice.
If you want to cancel it, you must use the same document_id generated during the issuing process. You can only cancel documents in issued status (document_status = 1)
Cancel invoice
- Endpoint: https://api-billing.koywe.com/V1/documents/ \<document_id>
- Method: PUT
- Required headers:
- Content-Type: application/json
- Authorization: Bearer \<token>
- Accept: */*
{
"document_status": "2"
}
API Reference PUT /documents
Detailed endpoint documentation