POST 新增订单

POST /apicenter/api/order

Body 请求参数

  1. {
  2. "centre_code": "CKMX",
  3. "client_code": "CK2023",
  4. "real_time_response": false,
  5. "process_type": 1,
  6. "logistics_provider": {
  7. "code": "DHL",
  8. "tracking_number": "",
  9. "label_url": "11111",
  10. "label_base64": ""
  11. },
  12. "package": {
  13. "order_number": "api-0315-3"
  14. },
  15. "receiver": {
  16. "name": "spj",
  17. "address": "#20 1st AVE. STA. MARIA INDUSTRIAL BAGUMBAYAN TAGUIG CITY",
  18. "city": "TAGUIG",
  19. "province": "METRO-MANILA",
  20. "district": "BAGUMBAYAN",
  21. "country_code": "MY",
  22. "post_code": "47",
  23. "phone": "18664543431",
  24. "email": "q.okmchv@qq.com"
  25. },
  26. "sender": {
  27. "name": "spj",
  28. "address": "#20 1st AVE. STA. MARIA INDUSTRIAL BAGUMBAYAN TAGUIG CITY",
  29. "city": "TAGUIG",
  30. "province": "METRO-MANILA",
  31. "district": "BAGUMBAYAN",
  32. "country_code": "MY",
  33. "post_code": "47",
  34. "phone": "18664543431",
  35. "email": "q.okmchv@qq.com"
  36. },
  37. "items": [
  38. {
  39. "sku": "sed in in",
  40. "currency": "adipisicing magna Excepteur fugiat",
  41. "unit_price": 46,
  42. "qty": 73
  43. },
  44. {
  45. "unit_price": 33,
  46. "currency": "eiusmod nostrud sunt aliquip",
  47. "sku": "fugiat",
  48. "qty": 31
  49. }
  50. ]
  51. }

请求参数

名称 位置 类型 必选 中文名 说明
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
»» email 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
»» email 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

  1. {
  2. "code": 0,
  3. "data": {
  4. "order_number": "string",
  5. "status": "string",
  6. "number_of_package": 0,
  7. "total_weight": "string",
  8. "logistic_provider_code": "string",
  9. "status_message": "string",
  10. "shortage_at": "string",
  11. "cancel_at": "string",
  12. "allocate_at": "string",
  13. "pack_at": "string",
  14. "handover_at": "string",
  15. "tracking_number": "string",
  16. "logistics_message": "string",
  17. "sorting_code": "string",
  18. "sorting_no": "string",
  19. "items": [
  20. "string"
  21. ],
  22. "shipments": [
  23. "string"
  24. ]
  25. },
  26. "message": "string"
  27. }

返回结果

状态码 状态码含义 说明 数据模型
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