接口说明
操作站用于收取货物。 |
路径
HTTP Verb | URL |
---|---|
Post | /services/integration/carrier/received-event |
请求字段
# | Field (API) | Data Type | Length | Mandatory | Details | |
1 | receivedTime | String | 80 | O | receivedTime:timewhencarrierreceivesparcel
| |
2 | scannedTime | String | 80 | O | timewhencarrierscansparcel
| |
3 | operatingAccount | String | 40 | O | operatoraccountineTower | |
4 | barcode | String | 64 | M | trackingNo |
响应内容
a) status:Succeeded/Failed
b) code:
140001 | BarcodenotfoundineTower |
100011 |
Donothavepermissiontooperateparcel |
180035 |
Didn’tdoclockin |
c) eventId:TheuniqueidentifierofEvent
d) lastScannedTime:Lastscannedtime
e) nextAction:
NO_ACTION |
Noneedtotakenextstep |
NO_CHANNEL_STEP |
Accountdoesn’thaveoperationpermission |
UNMANIFESTED |
Didn’tdispatchmanifest | |
KYC_HOLD | Kyc hold |
FINANCE_DETENTION |
Detainedforfinanceproblem |
SHIPPER_HOLD |
Detainedbyshipper |
BATTERY_HOLD |
Detainedforcontainbattery |
BULKY_CARGO_HOLD |
Detainedbyintegratorinbatches |
CONTRABAND_HOLD |
Detainedforcontaincontraband |
OTHER_HOLD |
Detainedforotherreasons |
RETURN_HELD |
Detainedforreturning |
DESPATCHED |
Shipmenthasbeendispatchedfromwarehouse |
WEIGHING |
weighing |
HOLD |
Parcelhasbeendetained |
DUPLICATE_SCAN |
Rescanning |
PACKING_PROBLEMS |
Packingthatareimproperhasbeendetained. |
WEIGHING_EXCEED |
Parcelofpoorweighthasbeendetained |
OVER_SIZE |
Parcelisoverweightandoutofsize. |
REPEAT_RECIPIENT |
Recipientduplication. |
NON_CONFORMANCE_DECLARATION |
Declarationisunmatched. | |
HS_CODE_HOLD | Hs |
Codehasbeendetained |
f) 时间格式:yyyy timeformat:yyyy-MM-dd'T'HH:mm:ssZ
e) serviceName:该包裹所属服务名称
...
serviceName:Servicenamethatparcelbelongsto
Request message
代码块 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "barcode": "BJR2048503011420", "receivedTime": "2016-05-10T16:37:47+0800", "scannedTime": "2016-05-10T18:37:47+0800", "operatingAccount": "test.li@buylogic.cc" } |
...
Response message
代码块 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "status": "Succeeded", "code": 0, "eventId": "f946Glg9EbzrQ4FV4oZluQ", "barcode": "BJR2048503011420", "receivedTime": "2016-05-10T16:37:47+0800", "weighedTime": null, "dispatchedTime": null, "scannedTime": "2016-05-10T18:37:47+0800", "lastScannedTime": null, "trackingNo": "BJR2048503011420", "nextAction": "WEIGHING", "serviceName": "MiniPak EU Direct Injection" } |
...