OMS开放接口文档
  1. B2B订单模块
OMS开放接口文档
  • 用户认证说明
  • 返回代码说明
  • 公共模块
    • 欢迎入口
      GET
    • 返回代码
      GET
    • 沙盒ApiToken生成
      GET
  • 通用数据模块
    • 仓库列表
      POST
    • 物流渠道列表
      POST
    • 查询产品分类
      POST
    • 国家列表
      POST
  • 产品模块
    • 产品列表
      POST
    • 创建产品
      POST
    • 修改产品
      POST
  • 入库单模块
    • 入库单列表
      POST
    • 创建入库单
      POST
    • 修改入库单
      POST
    • 取消入库单
      POST
    • 下载箱唛
      POST
    • 下载关联SKU条码
      POST
  • 出库单模块
    • B2C订单模块
      • B2C订单列表
      • 创建B2C订单
      • 修改B2C订单
    • B2B订单模块
      • B2B订单列表
        POST
      • 创建B2B订单
        POST
      • 修改B2B订单
        POST
    • 上传附件
      POST
    • 下载附件
      POST
    • 取消出库单
      POST
  • 退件模块
    • 退件单列表
    • 创建退件单
    • 修改退件单
    • 取消退件单
  • 库存模块
    • 库存列表
    • 库存流水列表
    • 库龄列表
  • 快递面单模块
    • 对接说明
    • 面单物流渠道列表
    • 面单列表
    • 面单信息
    • 创建面单
    • 创建并审核面单
    • 修改面单
    • 提交审核面单
    • 取消面单
    • 审核面单
    • 面单退款
    • 驳回面单
    • 激活面单
    • 重试制单
  1. B2B订单模块

创建B2B订单

POST
/open/outbound-order-data/b2b/create
用于新建B2B出库单的信息

请求参数

Header 参数

Body 参数application/json

示例
{
    "referenceNo": "string",
    "trackingNo": "string",
    "pickType": "1",
    "companyName": "string",
    "contactName": "string",
    "contactMobile": "string",
    "contactCellMobile": "string",
    "contactEmail": "string",
    "province": "string",
    "city": "string",
    "district": "string",
    "doorplate": "string",
    "address": "string",
    "postcode": "string",
    "isSign": "-1",
    "signType": 0,
    "isInsure": "-1",
    "insurePrice": "0.00",
    "primeType": "-1",
    "remark": "string",
    "warehouseCode": "string",
    "shippingMethodCode": "string",
    "code2": "string",
    "b2bDto": {
        "receiveWarehouseCode": "OTHER",
        "receiveAddressType": 1,
        "otherReceiveAddressRemark": "string",
        "expectedShipDate": "2019-08-24",
        "shipmentNo": "string",
        "shipmentReferenceNo": "string",
        "batchBolNo": "string",
        "isChangePackage": "-1",
        "changeBarcodeType": "-1",
        "isCoverBarcode": "-1",
        "changeShippingMarkType": "-1",
        "isCoverShippingMark": "-1",
        "isPallet": "-1",
        "isDoublePallet": "-1",
        "isMixedPallet": "-1",
        "pasteCartonMarkType": "-1",
        "limitPlateNum": "0",
        "limitPlateHeight": "0.000",
        "limitPlateWeight": "0.000",
        "isPalletScheme": "-1"
    },
    "itemDTOs": [
        {
            "productSku": "string",
            "qty": "0",
            "boxNo": "string",
            "platformSku": "string"
        }
    ],
    "attachmentOpenDTOs": [
        {
            "attachmentType": "string",
            "base64": "string",
            "fileName": "string"
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/open/outbound-order-data/b2b/create' \
--header 'Authorization: {{api_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "referenceNo": "string",
    "trackingNo": "string",
    "pickType": "1",
    "companyName": "string",
    "contactName": "string",
    "contactMobile": "string",
    "contactCellMobile": "string",
    "contactEmail": "string",
    "province": "string",
    "city": "string",
    "district": "string",
    "doorplate": "string",
    "address": "string",
    "postcode": "string",
    "isSign": "-1",
    "signType": 0,
    "isInsure": "-1",
    "insurePrice": "0.00",
    "primeType": "-1",
    "remark": "string",
    "warehouseCode": "string",
    "shippingMethodCode": "string",
    "code2": "string",
    "b2bDto": {
        "receiveWarehouseCode": "OTHER",
        "receiveAddressType": 1,
        "otherReceiveAddressRemark": "string",
        "expectedShipDate": "2019-08-24",
        "shipmentNo": "string",
        "shipmentReferenceNo": "string",
        "batchBolNo": "string",
        "isChangePackage": "-1",
        "changeBarcodeType": "-1",
        "isCoverBarcode": "-1",
        "changeShippingMarkType": "-1",
        "isCoverShippingMark": "-1",
        "isPallet": "-1",
        "isDoublePallet": "-1",
        "isMixedPallet": "-1",
        "pasteCartonMarkType": "-1",
        "limitPlateNum": "0",
        "limitPlateHeight": "0.000",
        "limitPlateWeight": "0.000",
        "isPalletScheme": "-1"
    },
    "itemDTOs": [
        {
            "productSku": "string",
            "qty": "0",
            "boxNo": "string",
            "platformSku": "string"
        }
    ],
    "attachmentOpenDTOs": [
        {
            "attachmentType": "string",
            "base64": "string",
            "fileName": "string"
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": "20000",
    "success": true,
    "data": {
        "orderType": 2,
        "orderNo": "orderNo",
        "referenceNo": "referenceNo",
        "trackingNo": "anim cillum",
        "pickType": 1,
        "companyName": "山国平",
        "contactName": "TEST",
        "contactMobile": "1234567890",
        "contactCellMobile": "18960572015",
        "contactEmail": "",
        "province": "TX",
        "city": "Antonio",
        "district": "",
        "doorplate": "qui",
        "address": "20240 S Jett Rd, San",
        "postcode": "78264",
        "isResidential": -1,
        "isSign": -1,
        "signType": 1,
        "isInsure": -1,
        "insurePrice": 370.89,
        "primeType": -1,
        "inventoryType": 1,
        "totalProduct": 1,
        "totalWeight": 1.000,
        "packageType": 1,
        "packageLength": 0.00,
        "packageWidth": 0.00,
        "packageHeight": 0.00,
        "packageWeight": 0.000,
        "publishTime": "2026-01-16 13:44:02",
        "outboundTime": "2026-05-07 15:15:26",
        "zoneCode": "",
        "feePrice": 0,
        "status": 1,
        "labelStatus": -1,
        "remark": "consequat"
    },
    "message": "请求成功",
    "errors": [],
    "timestamp": "1760500013561",
    "duration": 1.168,
    "requestId": "61bf05851c1a46a29d96028ccc4b9553"
}
修改于 2025-10-23 10:22:51
上一页
B2B订单列表
下一页
修改B2B订单
Built with