/amzStaServer/openapi/inbound-shipment/setDeliveryService{
"operation": {
"method": "POST",
"path": "/amzStaServer/openapi/inbound-shipment/setDeliveryService"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": "curl --location 'https://openapi.lingxing.com/amzStaServer/openapi/inbound-shipment/setDeliveryService?access_token=value×tamp=value&sign=value&app_key=value' \\\n--header 'Content-Type: application/json' \\\n--data '{\n \"inboundPlanId\": \"wf0a914e89-d126-4ed9-a093-2078289fed05\",\n \"shipmentDistributionInfo\": [{\n \"alphaCode\": \"CY0001\",\n \"alphaName\": \"CY0001-00\",\n \"declaredAmount\": 288,\n \"declaredCode\": \"申报价值货币\",\n \"deliveryWindowOptionId\": \"\",\n \"endDate\": \"2022-12-22\",\n \"freightClass\": \"货物等级\",\n \"palletList\": [{\n \"height\": 5,\n \"length\": 6,\n \"lengthUnit\": \"CM\",\n \"quantity\": 10,\n \"stackability\": \"\",\n \"weight\": 20,\n \"weightUnit\": \"LB\",\n \"width\": \"宽\"\n }],\n \"shipingTime\": \"2022-11-10\",\n \"shipmentId\": \"货件单号\",\n \"shippingMode\": \"SPD\",\n \"shippingSolution\": \"USE_YOUR_OWN_CARRIER\",\n \"startDate\": \"2022-11-22\",\n \"transportationOptionId\": \"CY0003\",\n \"transportationMode\": 1\n }],\n \"sid\": 1\n}'",
"responseExample": {
"code": 0,
"message": "操作成功",
"errorDetails": [],
"requestId": "3b3d867e7d014971a580549f107c8c5a.1732773886069",
"responseTime": "2024-11-28T14:04:46.069",
"data": {
"operationId": "操作id"
}
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | inboundPlanId | STA任务编号 | string | — | 必填 | STA任务编号,对应创建STA任务接口对应字段【inboundPlanId】 |
| 2 | shipmentDistributionInfo | 货件配送信息 | array<object> | — | 必填 | 货件配送信息 |
| 2.1 | alphaCode | 承运方式编码 | string | — | 必填 | 承运方式编码 |
| 2.2 | alphaName | 承运方式名称 | string | — | 必填 | 承运方式名称 |
| 2.3 | declaredAmount | 申报价值 | number | — | 可选 | 申报价值 |
| 2.4 | declaredCode | 申报价值货币 | string | — | 可选 | 申报价值货币 |
| 2.5 | deliveryWindowOptionId | 送达时间ID | string | — | 必填 | 送达时间ID |
| 2.6 | endDate | 送达时段-结束时间 | string | — | 必填 | 送达时段-结束时间:(北京时间) 备注:格式:YYYY-MM-DD |
| 2.7 | freightClass | 货物等级 | string | — | 可选 | 货物等级 |
| 2.8 | palletList | 帕托信息 | array<object> | — | 可选 | 帕托信息 |
| 2.8.1 | height | 高 | number | — | 可选 | 高 |
| 2.8.2 | length | 长 | number | — | 可选 | 长 |
| 2.8.3 | lengthUnit | 长度单位(IN-英制 | string | — | 可选 | 长度单位(IN-英制,CM-公制) |
| 2.8.4 | quantity | 数量 | integer | — | 可选 | 数量 |
| 2.8.5 | stackability | 是否可堆叠 | string | — | 可选 | 是否可堆叠 |
| 2.8.6 | weight | 单个重量 | number | — | 可选 | 单个重量 |
| 2.8.7 | weightUnit | 重量单位(LB-磅 | string | — | 可选 | 重量单位(LB-磅,KG-千克) |
| 2.8.8 | width | 宽 | number | — | 可选 | 宽 |
| 2.9 | shipingTime | 发货时间 | string | — | 必填 | 发货时间:(北京时间) 备注:格式:YYYY-MM-DD |
| 2.10 | shipmentId | 货件单号 | string | — | 必填 | 货件单号 |
| 2.11 | shippingMode | shippingMode | string | — | 必填 | 货件类型(GROUND_SMALL_PARCEL代表小包裹快递(SPD)、FREIGHT_LTL代表汽运零担(LTL)) |
| 2.12 | shippingSolution | shippingSolution | string | — | 必填 | 承运人(USE_YOUR_OWN_CARRIER代表其他承运人、AMAZON_PARTNERED_CARRIER代表亚马逊合作承运人) |
| 2.13 | shipperContact | shipperContact | object | — | 可选 | 联系人信息(当发货地址国家与收货地址国家不一致并且选择亚马逊合作承运人时必填) |
| 2.13.1 | shipperName | 联系人名称 | string | — | 必填 | 联系人名称 |
| 2.13.2 | 联系人邮箱 | string | — | 必填 | 联系人邮箱 | |
| 2.13.3 | phoneNumber | 联系人电话 | string | — | 必填 | 联系人电话 |
| 2.14 | startDate | 送达时段-开始时间 | string | — | 必填 | 送达时段-开始时间:(北京时间) 备注:格式:YYYY-MM-DD |
| 2.15 | transportationOptionId | 承运方式ID | string | — | 必填 | 承运方式ID |
| 2.16 | transportationMode | 运输方式 | integer | — | 可选 | 运输方式:1-陆运,2-海运,3-空运 |
| 3 | sid | 领星店铺ID | integer | — | 必填 | 领星店铺ID,对应查询亚马逊店铺列表接口对应字段【sid】 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | errorDetails | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | requestId | 请求链路id | string | — | 必填 | 请求链路id |
| 5 | responseTime | 响应时间 | string | 2020-05-18 11:23:47 | 必填 | 响应时间 |
| 6 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 6.1 | operationId | 操作id | string | — | 必填 | 操作id |
领星ERP的接口:提交货件配送服务(/amzStaServer/openapi/inbound-shipment/setDeliveryService),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。