海贝分销开放平台
  1. 订单
海贝分销开放平台
  • 全局说明
  • 订单状态说明
  • 订单
    • 订单详情
      GET
    • 订单列表
      GET
    • 订单创建
      POST
  1. 订单

订单创建

开发中
POST
/order

请求参数

Header 参数

Body 参数application/json

示例
{
    "orders": [
        {
            "products": [
                {
                    "count": 1,
                    "skuCode": "SNxxx",
                    "spuCode": "SPxxx"
                }
            ],
            "orderNumber": "第三方订单号",
            "countryCode": "国家二字码",
            "deliveryType": "配送方式: 代发货-1, 自提-2",
            "expressUrl": "面单url(自提必填,必须以pdf结尾)",
            "logisticsCompany": "物流公司编码(自提必填)",
            "shipmentNo": "物流单号(自提必填)",
            "receiver": {
                "telephone": "手机号",
                "name": "收件人姓名",
                "county": "县区、乡镇名称",
                "state": "省、州名称",
                "city": "城市名称",
                "zipcode": "邮编",
                "address": "地址",
                "callingCode": "手机区域号"
            }
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/order' \
--header 'x-chw-token;' \
--header 'x-chw-signature;' \
--header 'x-chw-timestamp;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orders": [
        {
            "products": [
                {
                    "count": 1,
                    "skuCode": "SNxxx",
                    "spuCode": "SPxxx"
                }
            ],
            "orderNumber": "第三方订单号",
            "countryCode": "国家二字码",
            "deliveryType": "配送方式: 代发货-1, 自提-2",
            "expressUrl": "面单url(自提必填,必须以pdf结尾)",
            "logisticsCompany": "物流公司编码(自提必填)",
            "shipmentNo": "物流单号(自提必填)",
            "receiver": {
                "telephone": "手机号",
                "name": "收件人姓名",
                "county": "县区、乡镇名称",
                "state": "省、州名称",
                "city": "城市名称",
                "zipcode": "邮编",
                "address": "地址",
                "callingCode": "手机区域号"
            }
        }
    ]
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "message": "SUCCESS",
    "data": {
        "orders": [
            {
                "orderNo": "订单号,POxxxx",
                "orderNumber": "第三方订单号"
            }
        ]
    }
}
上一页
订单列表
Built with