| Method | Body | Result |
cancel | distCode (required), invoiceNumber (required), cancelReason (optional cancellation reason code) | Cancels a slip created through this service |
cancelbyid | idInv (required), cancelReason (optional) | Cancels the slip |
confirmbyid | idInv (required) | Approves the slip: Printed if it has a number, otherwise Waiting |
unconfirmbyid | idInv (required) | Sets the slip to Unconfirmed |
{ "distCode": "1001", "invoiceNumber": "F2026000123", "cancelReason": "IPTAL01" }
{ "idInv": 605090001 }
A successful response message shows the slip that was processed: The transaction is successful.- idInv: 605090001.
| HTTP | Message | Cause |
400 | No records found with the receipt number X or distributor code Y. | cancel: slip not found |
400 | The receipt number X of the Y distributor code has been canceled already. | cancel: slip already canceled |
400 | Slip could not be found! | No slip found with the ID |
400 | Unauthorized operation! | confirmbyid/unconfirmbyid: slip is canceled or already numbered |