Qeasy Cloud
Get Started

领星ERP 生成已发货发货单(关联货件) API

Platform
领星ERP
Type
WebAPI
Effect
EXECUTE
API Version
1.0
Adapter
\Adapter\LingXing\LXExecuteAdapter
Auth Mode
OTHER
Description
FBA / 发货单 · POST · 请求参数 101 个(必填 43) · 响应参数 7 个 · 限流令牌桶容量 1
Updated At
2026-11-21

生成已发货发货单(关联货件)

POST/erp/sc/storage/shipment/createSendedOrder
Factory
{
  "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"
          }
        ]
      }
    }
  }
}

Request Parameters

No.FieldNameTypeDefaultRequiredDescription
1wid自定义仓库idinteger—Optional自定义仓库id,wid和sys_wid其中一项必填,都填则优先wid
2sys_wid系统仓库idinteger—Required系统仓库id,wid和sys_wid其中一项必填,都填则优先wid
3expected_arrival_date预计到达时间string—Optional预计到达时间:Y-m-d
4etd_date开船时间string—Optional开船时间,格式:Y-m-d
5eta_date预计到港时间string—Optional预计到港时间,格式:Y-m-d
6delivery_date实际妥投时间string—Optional实际妥投时间,格式:Y-m-d
7actual_shipment_time实际发货时间string—Optional实际发货时间,格式:Y-m-d
8head_fee_type头程费分配方式integer—Optional头程费分配方式:【默认0】 0 按计费重 1 按实重 2 按体积重 3 按SKU数量 4 自定义 5 按箱子体积
9tax_fee_type实际税费分配方式integer—Optional实际税费分配方式:【默认0】 0 产品-计费重 1 产品-实重 2 产品-体积重 3 产品-数量 5 箱子-体积
10is_points_behind是否分抛计算integer—Optional是否分抛计算:0 否,1 是,头程分摊方式为按计费重时用
11points_behind_coeffient分抛系数integer—Optional分抛系数:0~100,分抛计算选是时必填
12logistics_channel_id物流渠道idinteger—Optional物流渠道id:按计费重分摊时必填,以获取材积参数用于计算 查询头程物流渠道列表接口对应字段【id】
13is_related组合商品扣减库存时是否自动拆分成单品进行扣减integer—Optional组合商品扣减库存时是否自动拆分成单品进行扣减: 0 否 1 是【会拆分组合商品】
14request_flag自定义请求标识string—Optional自定义请求标识,本次请求超时后可根据此标识查询此次请求的结果,由请求方保持标识唯一性
15ship_mode发货方式integer—Optional发货方式:1-默认,2-工厂直发
16hand_pick_purchase工厂直发时手动选择出库批次integer—Optional工厂直发时手动选择出库批次:1-否,2-是
17remark备注string—Optional备注
18principal_uids负责人UIDarray<any>—Optional负责人UID,来源:查询ERP用户信息列表返回的 data>>uid
19listlistarray<object>—Required
19.1seller_id亚马逊店铺idstring—Required亚马逊店铺id ,对应查询亚马逊店铺列表接口对应字段【seller_id】
19.2warehouse_seller_id仓库店铺idinteger—Optional仓库店铺id
19.3marketplace_id市场idstring—Required市场id
19.4shipment_id货件单号string—Required货件单号
19.5fulfillment_network_sku货件fnskustring—Required货件fnsku
19.6fnsku本地发货的fnskustring—Optional本地发货的fnsku,默认空
19.7num发货数量integer—Required发货数量
19.8box_num箱数integer—Optional箱数
19.9skuskustring—Requiredsku
19.10tax_currency报关税费币种string—Optional报关税费币种
19.11tax_amount税费值string—Optional税费值
19.12cg_product_gross_weight采购string—Optional采购:单品净重(G);不传值则自动取【商品管理】模块维护的SKU“单品毛重”;按计费重分摊时需用到该字段
19.13cg_package_length采购string—Optional采购:包装规格-长(CM);不传值则自动取【商品管理】模块维护的SKU“包装规格-长”;按计费重分摊时需用到该字段
19.14cg_package_width采购string—Optional采购:包装规格-宽(CM);不传值则自动取【商品管理】模块维护的SKU“包装规格-宽”;按计费重分摊时需用到该字段
19.15cg_package_height采购string—Optional采购:包装规格-高(CM);不传值则自动取【商品管理】模块维护的SKU“包装规格-高”;按计费重分摊时需用到该字段
19.16cg_box_weight采购string—Optional采购:单箱重量(KG);不传值则自动取【商品管理】模块维护的SKU“单箱重量”;按计费重分摊时需用到该字段
19.17transport_cost自定义头程费string—Optional自定义头程费,head_fee_type为4才生效
19.18purchase_items工厂直发手动选择出库批次array<object>—Optional工厂直发手动选择出库批次
19.18.1relation_num关联量integer—Required关联量
19.18.2purchase_sn系统采购单号string—Optional系统采购单号
19.18.3custom_purchase_sn自定义采购单号(无系统采购单号时必填)string—Optional自定义采购单号(无系统采购单号时必填)
20box_type装箱类型string—Optional装箱类型: SINGLE 每箱只允许一款SKU MULTIPLE 每箱允许多款SKU
21box_remark装箱备注string—Optional装箱备注
22box_list箱规列表array<object>—Optional箱规列表,每个子项代表一个箱规,在装箱类型为MULTIPLE时必填
22.1box_num箱子数string—Required箱子数
22.2cg_box_length箱子长number—Required箱子长
22.3cg_box_width箱子宽number—Required箱子宽
22.4cg_box_height箱子高number—Required箱子高
22.5cg_box_weight箱子重number—Required箱子重
22.6box_skus箱子内包含的SKU信息array<object>—Required箱子内包含的SKU信息,需与list里的数据保持一致
22.6.1seller_id亚马逊店铺idstring—Required亚马逊店铺id ,对应查询亚马逊店铺列表接口对应字段【seller_id】
22.6.2marketplace_id市场idstring—Required市场id
22.6.3shipment_id货件单号string—Required货件单号
22.6.4fulfillment_network_sku货件fnskustring—Required货件fnsku
22.6.5quantity_in_case单箱数量integer—Required单箱数量
22.6.6skuskustring—RequiredSKU
23logistics_list_type物流信息版本integer—Optional物流信息版本: 0 旧版 1 新版
24head_logistics_list新版头程物流信息object—Required新版头程物流信息
24.1tracking_list轨迹信息数组array<object>—Optional轨迹信息数组
24.1.1tracking_no查询单号string—Optional查询单号
24.1.2transport_type运输类型integer—Optional运输类型: 1 快递 2 海运 3 空运 4 其他
24.1.3order_type_code单号类型integer—Optional单号类型:【注意:与运输类型联动关系】 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.4shippers承运商string—Optional承运商,运输类型为海运时才有意义: 获取发货单头程物流-承运商信息接口获取
24.1.5remark备注string—Optional备注
24.2estimate_expenses_list费用明细-预估费用object—Optional费用明细-预估费用
24.2.1chargeable_weight计费重(单位KG)string—Optional计费重(单位KG)
24.2.2price单价string—Required单价
24.2.3price_currency单价币种string—Required单价币种
24.2.4logistics_fee物流费用string—Required物流费用
24.2.5logistics_fee_currency物流费用币种string—Required物流费用币种
24.2.6remark备注string—Optional备注
24.2.7other_fee_arr预估费用-其他费array<object>—Required预估费用-其他费: 获取发货单头程物流-其他费类型接口获取
24.2.7.1fee_type_id其他费idstring—Required其他费id
24.2.7.2other_amount其他费金额string—Required其他费金额
24.2.7.3other_currency其他费币种string—Required其他费币种
24.3actual_expenses_list费用明细-实际费用object—Optional费用明细-实际费用
24.3.1tax_fee税费string—Required税费
24.3.2tax_fee_currency税费币种string—Required税费币种
24.3.3chargeable_weight计费重【废弃字段】string—Required计费重【废弃字段】
24.3.4weight实重(单位string—Required实重(单位:KG)
24.3.5volume体积(单位string—Required体积(单位:m³)
24.3.6price单价string—Required单价
24.3.7price_currency单价币种string—Required单价币种
24.3.8logistics_fee物流费用string—Required物流费用
24.3.9logistics_fee_currency物流费用币种string—Required物流费用币种
24.3.10remark备注string—Optional备注
24.3.11other_fee_arr实际费用-其他费array<object>—Required实际费用-其他费: 获取发货单头程物流-其他费类型接口获取
24.3.11.1fee_type_id其他费idstring—Required其他费id
24.3.11.2other_amount其他费金额string—Required其他费金额
24.3.11.3other_currency其他费币种string—Required其他费币种
25logistics_list旧版物流信息array<object>—Optional旧版物流信息,即将下线
25.1tracking_number物流商单号string—Optional物流商单号
25.2replace_tracking_number跟踪号string—Optional跟踪号
25.3transportation_cost实际物流费用number—Optional实际物流费用
25.4transportation_currency实际物流费用币种string—Optional实际物流费用币种
25.5other_cost实际其他费用number—Optional实际其他费用
25.6other_currency实际其他费用币种string—Optional实际其他费用币种
25.7other_cost_remark其他费用备注string—Optional其他费用备注
25.8predicted_transportation_cost预估物流费用number—Optional预估物流费用
25.9predicted_transportation_currency预估物流费用币种string—Optional预估物流费用币种
25.10predicted_other_cost预估其他费用number—Optional预估其他费用
25.11predicted_other_currency预估其他费用币种string—Optional预估其他费用币种

Response Parameters

No.FieldNameTypeDefaultRequiredDescription
1code状态码integer0Required状态码,0 成功
2message消息提示stringsuccessRequired消息提示
3error_details错误信息string—Required错误信息
4request_id请求链路idstringC3D9F541-8083-E376-EB5C-606A872F5C89Required请求链路id
5response_time响应时间string2022-12-08 18:27:13Required响应时间
6data响应数据object—Required响应数据
6.1order_sn发货单号string&nbsp;Required发货单号

The 生成已发货发货单(关联货件) API (/erp/sc/storage/shipment/createSendedOrder) of 领星ERP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 领星ERP version updates.

Need to integrate this API?

Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.