Skip to main content

Cancellation Process (cancel)

Cancellation Process

The cancel() method is used for canceling individual work orders transferred to the Horoz system. It supports single cancellation order submissions.

Before initiating the cancellation process with this method, the values of the opType and parameter fields must be communicated to Horoz Logistics.

  • The maximum number of cancellations that can be submitted in each request is 1.
  • This method is used for the cancellation of return, order, and receipt orders registered in the Horoz system. Cancellation orders cannot be sent for work orders not defined in the Horoz system.

POST cancel

Parameter Descriptions & Rules

The table below lists the input and output parameters of the cancel() operation, along with their types and formats.

ParameterMandatoryDescriptionData Type
processKeyYesInformation provided to you for processKeystring
opCodeYesOperation Codestring
opTypeNoOperation Type. Specifies which work order the operation code belongs to. Example: 10 for Order, 20 for Receiptstring
dataTransferInfoNoData Transfer informationstring
parameter01NoUser Defined Parameter 1string
parameter02NoUser Defined Parameter 2string
parameter03NoUser Defined Parameter 3string
parameter04NoUser Defined Parameter 4string
parameter05NoUser Defined Parameter 5string

Services Response

resulterrorCodesystemMessageDescription
0101BTA NOT FOUND!The Expected Receipt sent to the Horoz system does not exist.
1101BTA CANCELLED SUCCESSFULLY!The Expected Receipt has been successfully cancelled.
0101BTA STATUS NOT SUITABLE FOR CANCELLATION!The Expected Receipt has already been completed or previously cancelled.
0101ORDER NOT FOUND!The Order sent to the Horoz system does not exist.
1ORDER CANCELLED SUCCESSFULLY!The Order has been successfully cancelled.
0101ORDER STATUS NOT SUITABLE FOR CANCELLATION!The Order is not eligible for cancellation.
0101ORDER SHIPPED CANNOT BE CANCELLED !!!The Order has been shipped and cannot be cancelled.