Ecom - Webhook Integration Guide V1.1
Ecom - Webhook Integration Guide V1.1
Version 1.1
2
Table of Contents
Contents
3
SHIPMENT STATUS API (PUSH)
Introduction
Push API is used to push status changes for shipments as and when any update happens in Ecom system.
This is achieved by pushing individual scans to web services developed and maintained by customers. To
consume the status information, Customers must develop and maintain web service.
API Details
Will be provided by Client to Ecom Express.
Header to be consumed,
Key: - x-webhook-version
Value: - 2.0
Payload
{
"awb": "115927640",
"order_id": "c-order-1",
"date_time": "2022-11-21 13:17:42",
"edd": "2022-11-24",
"status": "Delivered",
"status_code": "113",
"reason": "",
"reason_code": "",
"collectable_amount": "230",
"fe_remarks": " Delivered",
4
"pickup_date": "27-Feb-2023",
"current_state": "Gurugram",
"current_city": "Gurugram",
"origin_state": "Gurugram",
"origin_City": "Gurugram",
"destination_state": "Gurugram",
"destination_city": "Gurugram",
"current_sc": "DLH",
"current_pincode": "111111",
"destination_pincode": "111111",
"latitude": "21.6570702",
"longitude": "85.5883818",
"employee_name": "None",
"employee_code": "",
"employee_number": "",
"ref_awb": "",
"return_pickup_barcode_id": "12345678987654",
"otp_eligible": "Yes/No",
"otp_status": "Verified/Skipped/Not-verified",
"otp_type": "Cancellation/Delivery/Reschedule/Reverse Pickup",
"otp": "For future reference",
"otp_datetime": "Forfuturereference",
"otp_email": "Forfuturereference",
"otp_mobile": "Forfuturereference",
"product_type": "ppd/cod/rts/rev/rqc",
"shipment_type": "Forward/Reversepickup/Return",
"digital_payment": "Yes/No",
"actual_weight": ".200",
"sign_image": "",
"qc_list": [
{
"qccheckcode": "GEN_ITEM_DESC_CHECK",
"value": "qcvalue",
"match": "1",
"image": "2023/Oct/27/506065374_17649_QC_GEN_ITEM_DESC_CHECK.png"
},
{
"qccheckcode": "GEN_ITEM_NEW_CONDITION_CHECK",
"value": "qc value ",
"match": "0",
"image": "2023/Oct/27/506065374_17649_QC_GEN_ITEM_NEW_CONDITION_CHECK.png"
}
]
}
5
Sample Response: Success Case
{
"awb": "AWB_NUMBER",
"status": true,
"order number": 1898982
}
Failure Responses:
{
"awb": "AWB_NUMBER",
"status": false,
"reason": Reason,
"order number": 1898982
}
Request Parameters
6
Field Data type Description
destination_City Text Shipment destination city
current_sc Text Shipment current SC
current_pincode Int Shipment current pincode
destination_pincode Int Shipment destination pincode
latitude Double Latitude (geo codes)
longitude Double Longitude (geo codes)
employee_Name Text Field executive name
employee_code Int Field executive code
employee_number Int Field executive phone number
ref_awb Int Reference/return airwaybill number for RTS shipments
return_pickup_barcode_id Int Package id for return shipments
otp_eligible Text OTP eligible (“Yes/No") based on
"OTP_REQUIRED_FOR_DELIVERY” flag under additional
info in manifestation
otp_status Text "Verified/Skipped/Not verified"
otp_type Text "Cancellation/Delivery/Reschedule/Reverse Pickup"
otp Int For future reference
otp_datetime Date For future reference
otp_email Text For future reference
otp_mobileno Int For future reference
product_type Text "ppd/cod/rts/rev/rqc"
shipment_type Text "Forward/Reverse pickup/Return"
digital_payment Text "Yes/No"
actual_weight Double Weight of shipments in Kg.
sign_image String POD signature image.
qc_list List List of QC parameters mentioned below
qccheckcode Text Qc check codes passed in Rqc shipments
value text Value passed in manifestation
match Boolean QC match status [ 0 (false) and 1 (True)]
image String Image captured at the time of QC
7
Status codes
8
Reason codes
9
427 Pickup cancelled due to larger product size No Yes No
430 Consignee initiated cancellation No Yes No
504 Type_change_from_cod_to_ppd No No No
505 Cod_value_updated No No No
506 Declared_value_updated No No No
507 Consignee_mobile_updated No No No
509 Consignee_address_updated No No No
600 RTS_reversal No No No
702 Seller_refusal_no_claim No No No
777 Shipment returned No No No
840 Network delay - no entry / political disturbance No No No
841 Network/connection delay due to tech issue No No No
842 Load delay due to vvip movement. No No No
1225 Delivery attempt not to be made No No No
12241 Delivery attempt to be made - inbound cc instructions No No No
12242 Delivery attempt to be made - outbound cc/dccs instructions No No No
12243 Delivery attempt to be made - kas instructions No No No
12244 Delivery attempt to be made - customer instructions No No No
12245 Delivery attempt to be made - fe instructions No No No
12246 Delivery attempt to be made - consignee feedback No No No
12247 Delivery attempt to be made - escalations No No No
20001 Forcibly taken by consignee - refused to pay cod amount Yes No No
20002 Forcefully opened by customer and returned Yes No No
20003 Shipment snatch by consignee No No No
20701 Misroute due to wrong pincode given by customer No No No
21001 Cod amount not ready Yes No Yes
21002 Order already cancelled No Yes No
21003 Cod amount incorrect as per customer Yes No No
21004 Customer wants open delivery Yes No No
21501 Shipment cannot be attempted - due to strike / bandh/ elections Yes Yes Yes
21502 Shipment cannot be attempted - due to natural clamity Yes No Yes
21601 Late arrival-misconnection/after cut off No No No
21602 Improper bagging No No No
21603 Without flagging No No No
21701 No entry area / cantonment Yes Yes Yes
22101 Seller refused to accept - want open delivery Yes No No
22102 Seller refused to accept - capacity constraint of customer Yes No No
22103 Seller refused to accept - outer packaging damaged Yes No No
22104 Seller refused to accept - brand box damaged Yes No No
22105 Seller refused to accept - content missing Yes No No
22106 Seller refused to accept - interchange shipment Yes No No
22107 Seller refused to accept - tat breached Yes No No
22108 Seller refused to accept - technical issue at seller end Yes No No
22109 Seller address closed Yes No No
22111 Seller address wrong/incomplete Yes No No
10
22301 Wrong or incomplete address No Yes No
22303 No such consignee at given address Yes Yes Yes
22701 Shipment attempted - residence closed No Yes No
22704 Customer refused delivery at doorstep Yes No Yes
22705 Could not be delivered - vehicle break down / accident Yes No Yes
22801 Customer address out of delivery area Yes No No
22901 Customer requested for self collection No No No
22903 Holiday / weekly off - delivery on next working day Yes Yes Yes
23101 Customer out of station Yes Yes Yes
23102 Customer not available at office Yes No Yes
23201 Consignee/location not accessible due to covid-19 No No No
23202 Shipment cannot be attempted due to covid-19 No No No
23701 Case with legal team No No No
23801 Case with insurance team No No No
24001 Shipment hold at origin -due to soft data not available No No No
24002 Shipment hold at origin -due to poor packaging /slp to check No No No
24003 Shipment hold at origin -invoice missing No No No
24202 Cannot be attempted - due to capacity/time constraint Yes No Yes
24204 Delivery attempted - otp not available Yes No Yes
24455 Capacity constraint at customer No No No
30101 Shipment detained/seized by regulatory authority No No No
30201 Shipment contains liquid item No No No
30202 Shipment damage - contains fragile item No No No
30203 Damaged - perishable item No No No
30204 Shipment damage No No No
30401 Network delay - traffic jam No No No
30402 Network delay - heavy rain No No No
30403 Network delay - due to dense fog No No No
30404 Network delay - flight delay No No No
30405 Network delay - due to regulatory compliance No No No
30406 Network delay - vehicle met with accident No No No
30407 Network delay -vehicle broke down No No No
30408 Network delay -strike bandh No No No
30409 Network delay -flight cancelled No No No
30410 Network delay -capacity constraint No No No
30411 Network delay-due to heavy rain/flood No No No
30412 Flight delay-due to bad weather/due to technical snag No No No
30413 Shipment hold - no e-waybill No No No
30414 Network delay - load hold by hub due to less volume No No No
30415 Network delay - load hold by hub due to spill over No No No
30501 Shipment offloaded by airlines -banned commodity No No No
30502 Shipment offloaded by airlines - capacity constraints No No No
30503 Shipment offloaded by airlines - flight cancelled No No No
30505 Dangerous goods/banned commodity-hold with the airlines No No No
34601 Capacity/manpower issue at location No No No
11
32103 Shipment cannot be attempted due to dc backlog No No No
32104 Shipment cannot be attempted due to dc overallocation No No No
32105 Vehicle constraint No No No
32501 Branded package id mismatch/incorrect No No No
32502 Unable to scan barcode Yes No Yes
33301 Lost from service location No No No
33303 Lost from mother bag No No No
33308 Lost & fir registered No No No
33401 Cross border shipment No No No
34602 Network vehicle not reported No No No
34603 Capacity/manpower issue at hub No No No
34801 Lost- recovery initiated debit pending No No No
34802 Lost_full recovery done No No No
34803 Lost_no recovery_not enough payable No No No
34804 Lost - unable to recover from vendor No No No
34805 Lost - partial recover from employee No No No
34806 Lost - partial recovery_vendor not aligned No No No
35003 OFD lock kas/shipper No No No
35004 OFD lock cs/recon No No No
35006 OFD lock - consignee request No No No
88801 Shipment contains liquid item No No No
88802 Shipment destroyed - contains liquid item No No No
88803 Shipment destroyed - contains fragile item No No No
88804 Shipment destroyed - empty packet No No No
88805 Shipment destroyed - food item No No No
88806 Liquidated at dc on shipper instruction without claim No No No
88807 Shipment destroyed No No No
88808 Liquidated at DMG on shipper instruction without claim No No No
1320 Pickup failed, shipment picked up by other courier No Yes No
1380 Pickup failed, road blocked/premise inaccessible No Yes No
12