W8海外仓系统|API文档
  1. 04打单
W8海外仓系统|API文档
  • W8WMS API 简介
  • 01 公共接口
    • 获取机场
      POST
    • 获取自提类型
      POST
    • 获取仓库
      POST
    • 获取渠道
      POST
    • 获取可选服务
      POST
  • 02 一件代发
    • 创建产品
      POST
    • 查询产品
      POST
    • 创建入库单
      POST
    • 查询入库单
      POST
    • 创建出库单
      POST
    • 查询出库单
      POST
    • 查询库存
      POST
    • 打印箱唛
      POST
    • 退回出库单
      POST
    • 退回入库单
      POST
    • 获取价格
      POST
    • 查询费用明细
      POST
    • 创建退货单
      POST
    • 查询退货单
      POST
  • 03 中转
    • 清提拆派下单
      POST
    • 删除中转订单
      POST
    • 删除出库单
      POST
    • 查询中转订单
      POST
    • 查询出库单
      POST
    • 创建出库预约单
      POST
    • 大货头程下单
      POST
  • 04打单
    • 创建订单
      POST
    • 试算费用
      POST
    • 查询发货信息
      GET
    • 获取订单详情
      POST
  1. 04打单

创建订单

开发中
POST
/commonApi/wsr/createOrder

请求参数

Body 参数application/json

示例
{
    "uuid":"12121222222",
    "param": [
        {
            "customerNo": "CUST001",
            "channelId": 14,
            "remark": "易碎物品,请勿重压",
            "packageType": "BOX",
            "sysMark": "SYSMARK001",
            "platLogisticCode": "LOGISTIC001",
            "sender": {
                "name": "张三",
                "country": "CN",
                "province": "广东省",
                "city": "深圳市",
                "zipCode": "518000",
                "tel": "0755-12345678",
                "phone": "13800138000",
                "email": "sender@example.com",
                "company": "Sender Company Ltd",
                "address1": "南山区科技园",
                "address2": "1号楼101室"
            },
            "recipient": {
                "name": "John Doe",
                "country": "US",
                "province": "California",
                "city": "Los Angeles",
                "zipCode": "90001",
                "tel": "123-456-7890",
                "phone": "123-456-7890",
                "email": "recipient@example.com",
                "company": "Recipient Inc",
                "address1": "123 Main St",
                "address2": "Apt 4B"
            },
            "volumes": [
                {
                    "length": 30.5,
                    "width": 20.0,
                    "height": 15.8,
                    "weight": 2.5
                }
            ],
            "items": [
                {
                    "cnName": "智能手机",
                    "enName": "Smartphone",
                    "customsCode": "85171210",
                    "num": 1,
                    "price": 599.99,
                    "priceCurrency": "USD",
                    "remark": "64GB 黑色"
                }
            ]
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/commonApi/wsr/createOrder' \
--header 'Content-Type: application/json' \
--data-raw '{
    "uuid":"12121222222",
    "param": [
        {
            "customerNo": "CUST001",
            "channelId": 14,
            "remark": "易碎物品,请勿重压",
            "packageType": "BOX",
            "sysMark": "SYSMARK001",
            "platLogisticCode": "LOGISTIC001",
            "sender": {
                "name": "张三",
                "country": "CN",
                "province": "广东省",
                "city": "深圳市",
                "zipCode": "518000",
                "tel": "0755-12345678",
                "phone": "13800138000",
                "email": "sender@example.com",
                "company": "Sender Company Ltd",
                "address1": "南山区科技园",
                "address2": "1号楼101室"
            },
            "recipient": {
                "name": "John Doe",
                "country": "US",
                "province": "California",
                "city": "Los Angeles",
                "zipCode": "90001",
                "tel": "123-456-7890",
                "phone": "123-456-7890",
                "email": "recipient@example.com",
                "company": "Recipient Inc",
                "address1": "123 Main St",
                "address2": "Apt 4B"
            },
            "volumes": [
                {
                    "length": 30.5,
                    "width": 20.0,
                    "height": 15.8,
                    "weight": 2.5
                }
            ],
            "items": [
                {
                    "cnName": "智能手机",
                    "enName": "Smartphone",
                    "customsCode": "85171210",
                    "num": 1,
                    "price": 599.99,
                    "priceCurrency": "USD",
                    "remark": "64GB 黑色"
                }
            ]
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "actionMsg": null,
    "code": 0,
    "data": [
        {
            "code": 0,
            "orderNo": "PO20250904000136",
            "orderId": 3,
            "isTwoGet": 0,
            "trackNo": "000000068",
            "labelUrl": "",
            "customerNo": "CUST001",
            "errorMsg": ""
        }
    ],
    "errorMsg": null,
    "msg": "成功",
    "msgCode": null,
    "solution": null
}
修改于 2025-09-04 08:13:33
上一页
大货头程下单
下一页
试算费用
Built with