Description
Carrier are used to push tracking information. |
Path
HTTP Verb | URL |
---|---|
Post | /services /integration/carrier/bagNos?serviceCode= {CODE}& count={NUMBER}&sortCode={SORT CODE} |
Request field
# | Field (API) | Data Type | Length | Mandatory | Details | |
1 | serviceCode | String | 40 | M | service code provided by the logistics | |
2 | count | Number | 20 | O | number of bags The max volume of received bag No. is 100 at a time. System returns one bag No. as default when the count is blank. | |
3 | sortCode | String | 8 | O | provided by the logistics. Different services have different sortCode. |
Response content
a) If bag number that system returned is blank, it means that for this service, acquiring
reserved bag number through the API is not supported
Request message
Request
/services /integration/carrier/bagNos?serviceCode= UBI.ASP.CN2AU.AUPOST& count=3&sortCode=SYD
Response message
Response
[ "DEMOSYD20170608014643", "DEMOSYD20170608014644", "DEMOSYD20170608014645" ]