接口说明
通过参考号或者跟踪号更新订单信息。 请注意以下几点:
|
路径
HTTP Verb | URL |
---|---|
Post | /services/shipper/update-order |
请求内容
Request
[ { "address": { "country": "CA", "city": "Belle River", "postcode": "N0R 1A0", "addressLine1": "address line 1", "addressLine2": "", "addressLine3": "", "state": "ON" }, "nativeDescription": "", "orderId": "Test001", "dimensionUnit": "", "length": 0, "description": "", "weight": 0, "invoiceValue": 0, "invoiceCurrency": "", "recipientCompany": "", "phone": "", "width": 0, "recipientName": "", "items": [{ "hsCode": "", "nativeDescription": "", "originCountry": "", "description": "", "weight": 0, "sku": "sku", "itemCount": 0, "unitValue": 0 }], "email": "", "height": 0, "weightUnit": "" } ]
响应内容
服务端返回与请求相对应的跟踪号,包括
1)是否查询成功(status);
2)出错代码(errors);
3) 请求id(orderId);
4)客户单号(referenceNo);
5)跟踪号(trackingNo);
响应报文
Response
{ "status": "Success", "errors": null, "data": [ { "status": "Success", "errors": null, "orderId": "JDQ002444601000931506", "referenceNo": "Marco-20200806113127", "trackingNo": "JDQ002444601000931506", "connoteId": null }, { "status": "Success", "errors": null, "orderId": "JDQ002444701000931503", "referenceNo": "Marco-20200806113130", "trackingNo": "JDQ002444701000931503", "connoteId": null } ] }