Qeasy Cloud
Get Started

领星ERP 创建订单 API

Platform
领星ERP
Type
WebAPI
Effect
EXECUTE
API Version
1.0
Adapter
\Adapter\LingXing\LXExecuteAdapter
Auth Mode
OTHER
Description
多平台 · POST · 请求参数 37 个(必填 15) · 响应参数 11 个 · 限流令牌桶容量 10
Updated At
2026-11-21

创建订单

POST/pb/mp/order/v2/create
Factory
{
  "operation": {
    "method": "POST",
    "path": "/pb/mp/order/v2/create"
  },
  "protocol": "HTTPS",
  "host": "https://openapi.lingxing.com",
  "rateLimit": {
    "tokenBucketCapacity": 10,
    "text": ""
  },
  "requestExample": {
    "platform_code": 10009,
    "store_id": "110283406273996288",
    "orders": [
      {
        "buyer_note": "xxx",
        "customer_shipping_amount": "20.00",
        "customer_tax_amount": "2.00",
        "order_total_amount": "20.80",
        "platform_order_no": "10379511104466944",
        "receiver_country_code": "CN",
        "wid": "1",
        "logistics_type_id": "1",
        "items": [
          {
            "sku": "xhp004",
            "quantity": 1,
            "unit_price": "10.00",
            "stock_deduction_type": 1
          }
        ]
      }
    ]
  },
  "responseExample": {
    "code": 0,
    "message": "操作成功",
    "request_id": "2ecb8a09-275e-4773-9399-ebfbb17c1804.1689906739215",
    "response_time": "2023-07-21 10:32:19",
    "data": {
      "error_details": [],
      "success_details": [
        {
          "platform_order_no": "263407812560417017",
          "global_order_no": "103336708973801472"
        }
      ]
    }
  }
}

Request Parameters

No.FieldNameTypeDefaultRequiredDescription
1platform_code平台codeinteger—Required平台code
2store_id店铺idstring—Required店铺id
3orders订单列表array<object>—Required订单列表
3.1platform_order_no平台单号【同一店铺不支持重复】string—Required平台单号【同一店铺不支持重复】
3.2site_code站点string—Optional站点
3.3buyer_note买家留言string—Optional买家留言
3.4receiver_country_code国家/地区二字简码string—Required国家/地区二字简码
3.5customer_shipping_amount客付运费【币种默认为店铺币种】number—Optional客付运费【币种默认为店铺币种】
3.6customer_tax_amount客付税费【币种默认为店铺币种】number—Optional客付税费【币种默认为店铺币种】
3.7order_total_amount订单金额【币种默认为店铺币种】number—Optional订单金额【币种默认为店铺币种】
3.8wid仓库idstring—Optional仓库id ,【当填写了该字段,则logistics_type_id 必填】
3.9global_purchase_time订购时间(秒级时间戳)number—Optional订购时间(秒级时间戳)
3.10global_payment_time付款时间(秒级时间戳)number—Optional付款时间(秒级时间戳)
3.11remark客服备注string—Optional客服备注
3.12logistics_type_id物流方式idstring—Optional物流方式id, 【当填写了该字段,则wid必填】
3.13receiver_name收件人string—Required收件人
3.14address_type地址类型integer—Optional地址类型 1:住宅地址” 2:“商业地址”
3.15buyer_choose_express客选物流string—Optional客选物流
3.16receiver_company_name公司名string—Optional公司名
3.17city城市string—Required城市
3.18address_line1地址1string—Required地址1
3.19amount_currency币种string—Optional币种,默认与店铺的币种一致,ISO 4217标准码
3.20order_custom_fields订单自定义字段object—Optional订单自定义字段
3.21items订单产品信息array<object>—Required订单产品信息
3.21.1sku本地SKU(SKU和MSKU必填其中一个)string—Optional本地SKU(SKU和MSKU必填其中一个)
3.21.2quantity数量integer—Required数量
3.21.3unit_price单价【币种默认为店铺币种】number—Required单价【币种默认为店铺币种】
3.21.4mskuMSKU(SKU和MSKU必填其中一个)string—OptionalMSKU(SKU和MSKU必填其中一个)
3.21.5stock_deduction_type库存扣减类型 1表示“空”string—Optional库存扣减类型 1表示“空”, 2表示“SKU+订单店铺”
3.21.6item_custom_fields订单产品自定义字段object—Optional订单产品自定义字段
3.22shipping_info物流信息(传则下层全必填)object—Optional物流信息(传则下层全必填)
3.22.1tms_waybill_no物流号string—Required物流号
3.22.2tms_tracking_no追踪号string—Required追踪号
3.22.3file_name面单文件名string—Required面单文件名
3.22.4base64File面单base64string—Required面单base64
3.23sender_tax_type"税号类型integer—Optional"税号类型: 1=>IOSS编号 2=>VAT税号 3=>CPF税号 4=>EORI号码 5=>收件人税号 7=>VOEC税号"
3.24sender_tax_no税号string—Optional税号

Response Parameters

No.FieldNameTypeDefaultRequiredDescription
1code状态码integer0Required状态码,0 成功
2message提示信息string—Required提示信息
3request_id请求链路idstringad9c1a8625c74f3ea0525e216374e31a1676514819613Required请求链路id
4response_time响应时间string2023-02-16 10:33:40Required响应时间
5data响应数据array<object>—Required响应数据
5.1error_details错误信息array<object>—Required错误信息
5.1.1error_message失败原因string—Required失败原因
5.1.2platform_order_no平台单号string—Required平台单号
5.2success_details成功详情array<object>—Required成功详情
5.2.1global_order_no系统单号integer—Required系统单号
5.2.2platform_order_no平台单号string10379511104466944Required平台单号

The 创建订单 API (/pb/mp/order/v2/create) 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.