接口说明
操作站用于收取货物。 |
路径
HTTP Verb | URL |
---|---|
Post | /services/integration/carrier/received-event |
请求字段
# | Field (API) | Data Type | Length | Mandatory | Details | |
1 | receivedTime | String | 80 | O | receivedTime: time when carrier receives parcel
| |
2 | scannedTime | String | 80 | O | time when carrier scans parcel
| |
3 | operatingAccount | String | 40 | O | operator account in eTower | |
4 | barcode | String | 64 | M | trackingNo |
响应内容
a) status:Succeeded/Failed
b) code:
140001 | Barcode not found in eTower |
100011 | 没有操作权限,无法操作订单 |
180035 | 没有打卡 |
c) eventId:The unique identifier of Event
d) lastScannedTime:Last scanned time
e) nextAction:
NO_ACTION | 无需进一步操作 |
NO_CHANNEL_STEP | 账号没有操作权限 |
UNMANIFESTED | 订单没有预报 |
KYC_HOLD | Kyc hold |
FINANCE_DETENTION | 财务扣货 |
SHIPPER_HOLD | 卖家已扣留 |
BATTERY_HOLD | 带电扣留 |
BULKY_CARGO_HOLD | 集成商批量扣留 |
CONTRABAND_HOLD | 违禁品扣留 |
OTHER_HOLD | 其他扣留 |
RETURN_HELD | 退件扣留 |
DESPATCHED | 订单已出库 |
WEIGHING | 称重 |
HOLD | 订单已扣留 |
DUPLICATE_SCAN | 重复扫描 |
PACKING_PROBLEMS | 包装不符扣留 |
WEIGHING_EXCEED | 重量差扣留 |
OVER_SIZE | 超重超尺寸 |
REPEAT_RECIPIENT | 重复收件人 |
NON_CONFORMANCE_DECLARATION | 申报不符 |
HS_CODE_HOLD | Hs Code扣留 |
f) 时间格式:yyyy-MM-dd'T'HH:mm:ssZ
e) serviceName:该包裹所属服务名称
请求报文
Request
{ "barcode": "BJR2048503011420", "receivedTime": "2016-05-10T16:37:47+0800", "scannedTime": "2016-05-10T18:37:47+0800", "operatingAccount": "test.li@buylogic.cc" }
响应报文
Response
{ "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" }