通过参考号或者跟踪号更新订单信息。 请注意以下几点:
|
HTTP Verb | URL |
---|---|
Post | /services/shipper/update-order |
[ { "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);
{ "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 } ] } |
{ "status": "Partial Success", "errors": [ { "code": 100009, "message": "Order JDQ00244470100093150113 not found" } ], "data": [ { "status": "Success", "errors": null, "orderId": "JDQ002444601000931506", "referenceNo": "Marco-20200806113127", "trackingNo": "JDQ002444601000931506", "connoteId": null }, { "status": "Failure", "errors": [ { "code": 100009, "message": "Order JDQ00244470100093150113 not found" } ], "orderId": "JDQ00244470100093150113", "referenceNo": null, "trackingNo": null, "connoteId": null } ] } |
{ "status": "Failure", "errors": [ { "code": 100009, "message": "Order JDQ00244470100093150113 not found" }, { "code": 100009, "message": "Order JDQ00244460100093150611 not found" } ], "data": [ { "status": "Failure", "errors": [ { "code": 100009, "message": "Order JDQ00244460100093150611 not found" } ], "orderId": "JDQ00244460100093150611", "referenceNo": null, "trackingNo": null, "connoteId": null }, { "status": "Failure", "errors": [ { "code": 100009, "message": "Order JDQ00244470100093150113 not found" } ], "orderId": "JDQ00244470100093150113", "referenceNo": null, "trackingNo": null, "connoteId": null } ] } |