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 aRESTful
web service method that receives data inJSON
format via thePOST
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 inJSON
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 thecancelShipping()
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 thecreateShipping()
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 thecancelShipping()
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 thecreateShipping()
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.
- Fields
- Example Request
- Example Response
Fields | Description | Data Type | Length | Field Location | Requirement |
---|---|---|---|---|---|
processKey | The processKey details identified for the client | string | 100 | Header | Mandatory |
requestNumber | Order number | string | 50 | inBody Request | Mandatory |
{
"requestNumber": "TEST-17052023-1"
}
{
"response": {
"responseCode": "STA-100",
"responseMessage": "İptal islemi basarili"
}
}
Service Responses
Response Code | Response Message | Description |
---|---|---|
STA-100 | Kayit islemi basarili | It refers to the fact that the shipment cancellation process is successful. |
ERR-20001 | HATALI IŞLEM ANAHTARI | Indicates that the entered processKey details are incorrect. |
ERR-20004 | TALEP NUMARASI BULUNAMADI - Key: XXX TalepNo: XXX | Indicates that a shipment has not been created previously with the requestNumber entered in the request. |
ERR-20010 | TALEP ONAYLANDIĞINDAN İPTAL EDİLEMEZ | It refers to the fact that the respective shipment may not be cancelled because it has already entered the logistics process. |
ERR-20036 | requestNumber BİLGİSİ BOŞ GEÇİLEMEZ. | Indicates that the requestNumber information has been entered incompletely. |