DTDC Customer Level Cancellation API Documentation
DTDC Customer Level Cancellation API Documentation
API Documentation
Sandbox endpoint
POST
Sample Body
"AWBNo": ["G12340262"],
"customerCode":"XYZ"
}
Following is the description, its data type, whether required or not and possible example for the
body
Key Name Description Data Type Required
Remarks
Key
AWBNo
Consignment Array Array of
customerCode
Customer Code String yesExample ““CUSTOMER001”
Response
Response Codes
Response Code Remarks
200 The consignments are canceled- if success is true , otherwise some or all
of them have error
400 There is some validation error in the overall request format. In this
case, complete request is rejected
Below is the sample response for a request in which all the consignments of the array AWBNo
is canceled.
{
"status": "OK",
"success": true
}
The above response means that:
● All the consignments are canceled
When response is 200 , and there are some / all consignments which are not canceled.
Below is the sample response when all/ some consignments are not canceled.
{
"status": "OK",
"success": false,
"failures": [
{
"reference_number": "G12340262",
"message": "Consignment does not belong to the client",
"reason": "CONSIGNMENT_DOES_NOT_BELONG_TO_CLIENT"
}
]
}
"error": {
"statusCode": 400,
"reason": "WRONG_INPUT",
"code": "CUSTOMER_CODE_MISSING",
There is an “error” key, which has the error object. Error object contains
● “message”: Error description
Sample Response for 401
- If the basic auth credentials are not present{
"error": {
"message": "API key should be present",
"reason": "NO_API_KEY"
}
}
- If wrong basic auth credentials are used
{
"error": {
"message": "Wrong api key",
"statusCode": 401,
"reason": "WRONG_API_KEY"
}
}
There is an “error” key, which has the error object. Error object contains
● “message”: Error description
● “reason”: Error code