7.4 Cancellation and approval

MethodBodyResult
canceldistCode (required), invoiceNumber (required), cancelReason (optional cancellation reason code)Cancels a slip created through this service
cancelbyididInv (required), cancelReason (optional)Cancels the slip
confirmbyididInv (required)Approves the slip: Printed if it has a number, otherwise Waiting
unconfirmbyididInv (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.

HTTPMessageCause
400No records found with the receipt number X or distributor code Y.cancel: slip not found
400The receipt number X of the Y distributor code has been canceled already.cancel: slip already canceled
400Slip could not be found!No slip found with the ID
400Unauthorized operation!confirmbyid/unconfirmbyid: slip is canceled or already numbered