POST 新增订单
POST /apicenter/api/order
Body 请求参数
{"centre_code": "CKMX","client_code": "CK2023","real_time_response": false,"process_type": 1,"logistics_provider": {"code": "DHL","tracking_number": "","label_url": "11111","label_base64": ""},"package": {"order_number": "api-0315-3"},"receiver": {"name": "spj","address": "#20 1st AVE. STA. MARIA INDUSTRIAL BAGUMBAYAN TAGUIG CITY","city": "TAGUIG","province": "METRO-MANILA","district": "BAGUMBAYAN","country_code": "MY","post_code": "47","phone": "18664543431","email": "q.okmchv@qq.com"},"sender": {"name": "spj","address": "#20 1st AVE. STA. MARIA INDUSTRIAL BAGUMBAYAN TAGUIG CITY","city": "TAGUIG","province": "METRO-MANILA","district": "BAGUMBAYAN","country_code": "MY","post_code": "47","phone": "18664543431","email": "q.okmchv@qq.com"},"items": [{"sku": "sed in in","currency": "adipisicing magna Excepteur fugiat","unit_price": 46,"qty": 73},{"unit_price": 33,"currency": "eiusmod nostrud sunt aliquip","sku": "fugiat","qty": 31}]}
请求参数
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| body | body | object | 否 | none | |
| » centre_code | body | string | 是 | 仓库编码 | none |
| » client_code | body | string | 是 | 店铺编码 | none |
| » real_time_response | body | boolean | 否 | 实时验证所有订单数据 | 默认false |
| » process_type | body | integer | 否 | 订单流程类型 | none |
| » logistics_provider | body | object | 是 | 物流商 | none |
| »» code | body | string | 是 | 运输服务 | none |
| »» tracking_number | body | string | 是 | 跟踪号 | none |
| »» label_url | body | string | 是 | 面单地址 | none |
| »» label_base64 | body | string | 是 | 面单base64 | none |
| » package | body | object | 是 | 报关信息 | none |
| »» order_number | body | string | 是 | 平台订单号 | none |
| » receiver | body | object | 是 | 收件人 | none |
| »» name | body | string | 是 | 姓名 | none |
| »» address | body | string | 是 | 详细地址 | none |
| »» city | body | string | 是 | 城市 | none |
| »» province | body | string | 是 | 省份 | none |
| »» district | body | string | 是 | 区 | none |
| »» country_code | body | string | 是 | 国家码 | none |
| »» post_code | body | string | 是 | 邮编 | none |
| »» phone | body | string | 是 | 联系方式 | none |
| body | string | 是 | 邮箱 | none | |
| » sender | body | object | 是 | 寄件人 | none |
| »» name | body | string | 是 | 姓名 | none |
| »» address | body | string | 是 | 详细地址 | none |
| »» city | body | string | 是 | 城市 | none |
| »» province | body | string | 是 | 省份 | none |
| »» district | body | string | 是 | 区 | none |
| »» country_code | body | string | 是 | 国家码 | none |
| »» post_code | body | string | 是 | 邮编 | none |
| »» phone | body | string | 是 | 联系方式 | none |
| body | string | 是 | 邮箱 | none | |
| » items | body | [object] | 是 | SKU 商品详情 | none |
| »» sku | body | string | 是 | sku | none |
| »» currency | body | string | 是 | 币种 | none |
| »» unit_price | body | integer | 是 | 单价 | none |
| »» qty | body | integer | 是 | 数量 | none |
返回示例
200 Response
{"code": 0,"data": {"order_number": "string","status": "string","number_of_package": 0,"total_weight": "string","logistic_provider_code": "string","status_message": "string","shortage_at": "string","cancel_at": "string","allocate_at": "string","pack_at": "string","handover_at": "string","tracking_number": "string","logistics_message": "string","sorting_code": "string","sorting_no": "string","items": ["string"],"shipments": ["string"]},"message": "string"}
返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | 成功 | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 响应码 | none |
| » data | object | true | none | 响应数据 | none |
| »» order_number | string | true | none | 订单号 | none |
| »» status | string | true | none | 订单状态 | none |
| »» number_of_package | integer | true | none | 包裹数量 | none |
| »» total_weight | string | true | none | 包装重量 | none |
| »» logistic_provider_code | string | true | none | 物流供应商简称 | none |
| »» status_message | string | true | none | 状态消息 | none |
| »» shortage_at | string | true | none | 缺货时间 | none |
| »» cancel_at | string | true | none | 取消时间 | none |
| »» allocate_at | string | true | none | 分配时间 | none |
| »» pack_at | string | true | none | 打包拣货时间 | none |
| »» handover_at | string | true | none | 出库时间 | none |
| »» tracking_number | string | true | none | 物流单号 | none |
| »» logistics_message | string | true | none | 物流消息 | none |
| »» sorting_code | string | true | none | 分拣编码 | none |
| »» sorting_no | string | true | none | 分拣编号 | none |
| »» items | [string] | true | none | none | |
| »» shipments | [string] | true | none | none | |
| » message | string | true | none | 响应描述 | none |
