/erp/sc/storage/shipment/createSendedOrder{
"operation": {
"method": "POST",
"path": "/erp/sc/storage/shipment/createSendedOrder"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"sys_wid": 1,
"expected_arrival_date": "2022-05-06",
"etd_date": "2022-05-06",
"eta_date": "2022-05-06",
"delivery_date": "2022-05-06",
"actual_shipment_time": "2022-05-06",
"head_fee_type": 1,
"tax_fee_type": 0,
"is_points_behind": 1,
"points_behind_coeffient": 1,
"logistics_channel_id": 1,
"remark": "发货单备注",
"request_flag": "1123123aaaaaa",
"logistics_list": [
{
"tracking_number": "aaaaaa",
"replace_tracking_number": "bbbbbb",
"transportation_cost": 1,
"transportation_currency": "CNY",
"other_cost": 1,
"other_currency": "1.00",
"other_cost_remark": "其他费备注",
"predicted_transportation_cost": 1,
"predicted_transportation_currency": "CNY",
"predicted_other_cost": 1,
"predicted_other_currency": "CNY"
}
],
"list": [
{
"seller_id": "",
"warehouse_seller_id": 0,
"marketplace_id": "",
"shipment_id": "FBA19M79VH0H",
"fulfillment_network_sku": "",
"fnsku": "",
"num": 0,
"box_num": 0,
"sku": "",
"tax_currency": "",
"tax_amount": "",
"cg_product_gross_weight": "",
"cg_package_length": "",
"cg_package_width": "",
"cg_package_height": "",
"cg_box_weight": "",
"transport_cost": ""
}
],
"is_related": "",
"box_type": "",
"box_remark": "",
"box_list": [
{
"box_num": "3",
"cg_box_length": 20,
"cg_box_width": 30,
"cg_box_height": 40,
"cg_box_weight": 1.33,
"box_skus": [
{
"seller_id": "A1MQMW3JWPNCBX",
"marketplace_id": "xxxxxxxxxxxxxxxx",
"shipment_id": "FBA16XNMN3N4",
"fulfillment_network_sku": "B09MT3989Q",
"quantity_in_case": 32,
"sku": "0530-1"
}
]
}
],
"logistics_list_type": 0,
"head_logistics_list": {
"tracking_list": [
{
"tracking_no": "cxdhxxxxxx123",
"transport_type": "1",
"order_type_code": "5",
"shippers": "coscoxxx",
"remark": "备注"
}
],
"estimate_expenses_list": {
"chargeable_weight": "111.00",
"price": "1.00",
"price_currency": "CNY",
"logistics_fee": "1.00",
"logistics_fee_currency": "CNY",
"remark": "预估费用备注",
"other_fee_arr": [
{
"fee_type_id": "241192037543649792",
"other_amount": "1.00",
"other_currency": "CNY"
}
]
},
"actual_expenses_list": {
"tax_fee": "1",
"tax_fee_currency": "CNY",
"weight": "111.00",
"volume": "111.00",
"price": "111.00",
"price_currency": "CNY",
"logistics_fee": "111.00",
"logistics_fee_currency": "CNY",
"remark": "实际费用备注",
"other_fee_arr": [
{
"fee_type_id": "241192037543649792",
"other_amount": "111.00",
"other_currency": "CNY"
}
]
}
}
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | wid | 自定义仓库id | integer | — | 可选 | 自定义仓库id,wid和sys_wid其中一项必填,都填则优先wid |
| 2 | sys_wid | 系统仓库id | integer | — | 必填 | 系统仓库id,wid和sys_wid其中一项必填,都填则优先wid |
| 3 | expected_arrival_date | 预计到达时间 | string | — | 可选 | 预计到达时间:Y-m-d |
| 4 | etd_date | 开船时间 | string | — | 可选 | 开船时间,格式:Y-m-d |
| 5 | eta_date | 预计到港时间 | string | — | 可选 | 预计到港时间,格式:Y-m-d |
| 6 | delivery_date | 实际妥投时间 | string | — | 可选 | 实际妥投时间,格式:Y-m-d |
| 7 | actual_shipment_time | 实际发货时间 | string | — | 可选 | 实际发货时间,格式:Y-m-d |
| 8 | head_fee_type | 头程费分配方式 | integer | — | 可选 | 头程费分配方式:【默认0】 0 按计费重 1 按实重 2 按体积重 3 按SKU数量 4 自定义 5 按箱子体积 |
| 9 | tax_fee_type | 实际税费分配方式 | integer | — | 可选 | 实际税费分配方式:【默认0】 0 产品-计费重 1 产品-实重 2 产品-体积重 3 产品-数量 5 箱子-体积 |
| 10 | is_points_behind | 是否分抛计算 | integer | — | 可选 | 是否分抛计算:0 否,1 是,头程分摊方式为按计费重时用 |
| 11 | points_behind_coeffient | 分抛系数 | integer | — | 可选 | 分抛系数:0~100,分抛计算选是时必填 |
| 12 | logistics_channel_id | 物流渠道id | integer | — | 可选 | 物流渠道id:按计费重分摊时必填,以获取材积参数用于计算 查询头程物流渠道列表接口对应字段【id】 |
| 13 | is_related | 组合商品扣减库存时是否自动拆分成单品进行扣减 | integer | — | 可选 | 组合商品扣减库存时是否自动拆分成单品进行扣减: 0 否 1 是【会拆分组合商品】 |
| 14 | request_flag | 自定义请求标识 | string | — | 可选 | 自定义请求标识,本次请求超时后可根据此标识查询此次请求的结果,由请求方保持标识唯一性 |
| 15 | ship_mode | 发货方式 | integer | — | 可选 | 发货方式:1-默认,2-工厂直发 |
| 16 | hand_pick_purchase | 工厂直发时手动选择出库批次 | integer | — | 可选 | 工厂直发时手动选择出库批次:1-否,2-是 |
| 17 | remark | 备注 | string | — | 可选 | 备注 |
| 18 | principal_uids | 负责人UID | array<any> | — | 可选 | 负责人UID,来源:查询ERP用户信息列表返回的 data>>uid |
| 19 | list | list | array<object> | — | 必填 | |
| 19.1 | seller_id | 亚马逊店铺id | string | — | 必填 | 亚马逊店铺id ,对应查询亚马逊店铺列表接口对应字段【seller_id】 |
| 19.2 | warehouse_seller_id | 仓库店铺id | integer | — | 可选 | 仓库店铺id |
| 19.3 | marketplace_id | 市场id | string | — | 必填 | 市场id |
| 19.4 | shipment_id | 货件单号 | string | — | 必填 | 货件单号 |
| 19.5 | fulfillment_network_sku | 货件fnsku | string | — | 必填 | 货件fnsku |
| 19.6 | fnsku | 本地发货的fnsku | string | — | 可选 | 本地发货的fnsku,默认空 |
| 19.7 | num | 发货数量 | integer | — | 必填 | 发货数量 |
| 19.8 | box_num | 箱数 | integer | — | 可选 | 箱数 |
| 19.9 | sku | sku | string | — | 必填 | sku |
| 19.10 | tax_currency | 报关税费币种 | string | — | 可选 | 报关税费币种 |
| 19.11 | tax_amount | 税费值 | string | — | 可选 | 税费值 |
| 19.12 | cg_product_gross_weight | 采购 | string | — | 可选 | 采购:单品净重(G);不传值则自动取【商品管理】模块维护的SKU“单品毛重”;按计费重分摊时需用到该字段 |
| 19.13 | cg_package_length | 采购 | string | — | 可选 | 采购:包装规格-长(CM);不传值则自动取【商品管理】模块维护的SKU“包装规格-长”;按计费重分摊时需用到该字段 |
| 19.14 | cg_package_width | 采购 | string | — | 可选 | 采购:包装规格-宽(CM);不传值则自动取【商品管理】模块维护的SKU“包装规格-宽”;按计费重分摊时需用到该字段 |
| 19.15 | cg_package_height | 采购 | string | — | 可选 | 采购:包装规格-高(CM);不传值则自动取【商品管理】模块维护的SKU“包装规格-高”;按计费重分摊时需用到该字段 |
| 19.16 | cg_box_weight | 采购 | string | — | 可选 | 采购:单箱重量(KG);不传值则自动取【商品管理】模块维护的SKU“单箱重量”;按计费重分摊时需用到该字段 |
| 19.17 | transport_cost | 自定义头程费 | string | — | 可选 | 自定义头程费,head_fee_type为4才生效 |
| 19.18 | purchase_items | 工厂直发手动选择出库批次 | array<object> | — | 可选 | 工厂直发手动选择出库批次 |
| 19.18.1 | relation_num | 关联量 | integer | — | 必填 | 关联量 |
| 19.18.2 | purchase_sn | 系统采购单号 | string | — | 可选 | 系统采购单号 |
| 19.18.3 | custom_purchase_sn | 自定义采购单号(无系统采购单号时必填) | string | — | 可选 | 自定义采购单号(无系统采购单号时必填) |
| 20 | box_type | 装箱类型 | string | — | 可选 | 装箱类型: SINGLE 每箱只允许一款SKU MULTIPLE 每箱允许多款SKU |
| 21 | box_remark | 装箱备注 | string | — | 可选 | 装箱备注 |
| 22 | box_list | 箱规列表 | array<object> | — | 可选 | 箱规列表,每个子项代表一个箱规,在装箱类型为MULTIPLE时必填 |
| 22.1 | box_num | 箱子数 | string | — | 必填 | 箱子数 |
| 22.2 | cg_box_length | 箱子长 | number | — | 必填 | 箱子长 |
| 22.3 | cg_box_width | 箱子宽 | number | — | 必填 | 箱子宽 |
| 22.4 | cg_box_height | 箱子高 | number | — | 必填 | 箱子高 |
| 22.5 | cg_box_weight | 箱子重 | number | — | 必填 | 箱子重 |
| 22.6 | box_skus | 箱子内包含的SKU信息 | array<object> | — | 必填 | 箱子内包含的SKU信息,需与list里的数据保持一致 |
| 22.6.1 | seller_id | 亚马逊店铺id | string | — | 必填 | 亚马逊店铺id ,对应查询亚马逊店铺列表接口对应字段【seller_id】 |
| 22.6.2 | marketplace_id | 市场id | string | — | 必填 | 市场id |
| 22.6.3 | shipment_id | 货件单号 | string | — | 必填 | 货件单号 |
| 22.6.4 | fulfillment_network_sku | 货件fnsku | string | — | 必填 | 货件fnsku |
| 22.6.5 | quantity_in_case | 单箱数量 | integer | — | 必填 | 单箱数量 |
| 22.6.6 | sku | sku | string | — | 必填 | SKU |
| 23 | logistics_list_type | 物流信息版本 | integer | — | 可选 | 物流信息版本: 0 旧版 1 新版 |
| 24 | head_logistics_list | 新版头程物流信息 | object | — | 必填 | 新版头程物流信息 |
| 24.1 | tracking_list | 轨迹信息数组 | array<object> | — | 可选 | 轨迹信息数组 |
| 24.1.1 | tracking_no | 查询单号 | string | — | 可选 | 查询单号 |
| 24.1.2 | transport_type | 运输类型 | integer | — | 可选 | 运输类型: 1 快递 2 海运 3 空运 4 其他 |
| 24.1.3 | order_type_code | 单号类型 | integer | — | 可选 | 单号类型:【注意:与运输类型联动关系】 1 订舱号 2 提单号 3 箱号 4 其他 5 跟踪单号 6航班号 当transport_type=1时只能传5 当transport_type=2时只能传1、2、3、4 当transport_type=3时只能传2、6 当transport_type=4只能传空 |
| 24.1.4 | shippers | 承运商 | string | — | 可选 | 承运商,运输类型为海运时才有意义: 获取发货单头程物流-承运商信息接口获取 |
| 24.1.5 | remark | 备注 | string | — | 可选 | 备注 |
| 24.2 | estimate_expenses_list | 费用明细-预估费用 | object | — | 可选 | 费用明细-预估费用 |
| 24.2.1 | chargeable_weight | 计费重(单位KG) | string | — | 可选 | 计费重(单位KG) |
| 24.2.2 | price | 单价 | string | — | 必填 | 单价 |
| 24.2.3 | price_currency | 单价币种 | string | — | 必填 | 单价币种 |
| 24.2.4 | logistics_fee | 物流费用 | string | — | 必填 | 物流费用 |
| 24.2.5 | logistics_fee_currency | 物流费用币种 | string | — | 必填 | 物流费用币种 |
| 24.2.6 | remark | 备注 | string | — | 可选 | 备注 |
| 24.2.7 | other_fee_arr | 预估费用-其他费 | array<object> | — | 必填 | 预估费用-其他费: 获取发货单头程物流-其他费类型接口获取 |
| 24.2.7.1 | fee_type_id | 其他费id | string | — | 必填 | 其他费id |
| 24.2.7.2 | other_amount | 其他费金额 | string | — | 必填 | 其他费金额 |
| 24.2.7.3 | other_currency | 其他费币种 | string | — | 必填 | 其他费币种 |
| 24.3 | actual_expenses_list | 费用明细-实际费用 | object | — | 可选 | 费用明细-实际费用 |
| 24.3.1 | tax_fee | 税费 | string | — | 必填 | 税费 |
| 24.3.2 | tax_fee_currency | 税费币种 | string | — | 必填 | 税费币种 |
| 24.3.3 | chargeable_weight | 计费重【废弃字段】 | string | — | 必填 | 计费重【废弃字段】 |
| 24.3.4 | weight | 实重(单位 | string | — | 必填 | 实重(单位:KG) |
| 24.3.5 | volume | 体积(单位 | string | — | 必填 | 体积(单位:m³) |
| 24.3.6 | price | 单价 | string | — | 必填 | 单价 |
| 24.3.7 | price_currency | 单价币种 | string | — | 必填 | 单价币种 |
| 24.3.8 | logistics_fee | 物流费用 | string | — | 必填 | 物流费用 |
| 24.3.9 | logistics_fee_currency | 物流费用币种 | string | — | 必填 | 物流费用币种 |
| 24.3.10 | remark | 备注 | string | — | 可选 | 备注 |
| 24.3.11 | other_fee_arr | 实际费用-其他费 | array<object> | — | 必填 | 实际费用-其他费: 获取发货单头程物流-其他费类型接口获取 |
| 24.3.11.1 | fee_type_id | 其他费id | string | — | 必填 | 其他费id |
| 24.3.11.2 | other_amount | 其他费金额 | string | — | 必填 | 其他费金额 |
| 24.3.11.3 | other_currency | 其他费币种 | string | — | 必填 | 其他费币种 |
| 25 | logistics_list | 旧版物流信息 | array<object> | — | 可选 | 旧版物流信息,即将下线 |
| 25.1 | tracking_number | 物流商单号 | string | — | 可选 | 物流商单号 |
| 25.2 | replace_tracking_number | 跟踪号 | string | — | 可选 | 跟踪号 |
| 25.3 | transportation_cost | 实际物流费用 | number | — | 可选 | 实际物流费用 |
| 25.4 | transportation_currency | 实际物流费用币种 | string | — | 可选 | 实际物流费用币种 |
| 25.5 | other_cost | 实际其他费用 | number | — | 可选 | 实际其他费用 |
| 25.6 | other_currency | 实际其他费用币种 | string | — | 可选 | 实际其他费用币种 |
| 25.7 | other_cost_remark | 其他费用备注 | string | — | 可选 | 其他费用备注 |
| 25.8 | predicted_transportation_cost | 预估物流费用 | number | — | 可选 | 预估物流费用 |
| 25.9 | predicted_transportation_currency | 预估物流费用币种 | string | — | 可选 | 预估物流费用币种 |
| 25.10 | predicted_other_cost | 预估其他费用 | number | — | 可选 | 预估其他费用 |
| 25.11 | predicted_other_currency | 预估其他费用币种 | string | — | 可选 | 预估其他费用币种 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | string | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | C3D9F541-8083-E376-EB5C-606A872F5C89 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2022-12-08 18:27:13 | 必填 | 响应时间 |
| 6 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 6.1 | order_sn | 发货单号 | string | | 必填 | 发货单号 |
领星ERP的接口:生成已发货发货单(关联货件)(/erp/sc/storage/shipment/createSendedOrder),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。