Skip to main content

Cancelling an Order - cancelShipping()

Cancel an Order

cancelShipping() method available on the Horoz Logistics Domestic Distribution Integration is used to cancel a shipping order that has been previously created by means of the createShipping() method if the respective shipping order meets the cancellation conditions.

If the shipping order entry that has been sent previously to the Horoz Logistics system by means of the createShipping() method was approved by the Horoz Logistics operations and the operational life cycle has already started upon the acceptance of the goods, the client will receive an error through the integration when it tries to cancel the shipping order by means of the cancelShipping() method.

Important information about the cancelShipping() method and the points to be considered when canceling a shipping order in the Horoz system are listed below for the information of the clients.

  • cancelShipping() method is a RESTful web service method that receives data in JSON format via the POST method.

  • When canceling a shipping order that has been sent previously to the Horoz system by making use of the cancelShipping() method, the order number must be entered into the body of the method in JSON data type. The client's processKey details must be entered into the header of the method as a parameter type. The shipment made by means of the cancelShipping() method must be encoded as UTF-8 and transmitted to the Horoz Logistics Domestic Distribution Integration Web service.

  • The order for which a cancellation request will be sent to the Horoz Logistics system by making use of the cancelShipping() method must have been previously created in the Horoz Logistics system via the Horoz Logistics Domestic Distribution Integration Webservice by means of the createShipping() method. Any orders that does not exist in the Horoz Logistics system may not be cancelled.

  • The order for which a cancellation request will be sent to the Horoz Logistics system by means of the cancelShipping() method must not have been approved by Horoz Logistics and the goods acceptance entry must not have been made. Otherwise, an error will be returned to the client for the call made by means of the cancelShipping() method.

  • cancelShipping() method performs the cancellation process on order basis. A part-based cancellation may not be made for any part of any product within an order that has been created previously by means of the createShipping() method.


POST cancelShipping()

Parameter Descriptions & Rules

The following table lists the input and output parameters of the cancelShipping() process, and the types and formats of such parameters.

FieldsDescriptionData TypeLengthField LocationRequirement
processKeyThe processKey details identified for the clientstring100HeaderMandatory
requestNumberOrder numberstring50inBody RequestMandatory

Service Responses

Response CodeResponse MessageDescription
STA-100Kayit islemi basariliIt refers to the fact that the shipment cancellation process is successful.
ERR-20001HATALI IŞLEM ANAHTARIIndicates that the entered processKey details are incorrect.
ERR-20004TALEP NUMARASI BULUNAMADI - Key: XXX TalepNo: XXXIndicates that a shipment has not been created previously with the requestNumber entered in the request.
ERR-20010TALEP ONAYLANDIĞINDAN İPTAL EDİLEMEZIt refers to the fact that the respective shipment may not be cancelled because it has already entered the logistics process.
ERR-20036requestNumber BİLGİSİ BOŞ GEÇİLEMEZ.Indicates that the requestNumber information has been entered incompletely.