1、基本信息

  (1)请求方法: http post

  (2)请求地址: http://{hostname}/apicenter/headProcess/order

  (3)说明:

  1. 一个头程对应一个货柜,一个货柜对应多个工作单
  2. 新增头程订单
  3. 新增工作单


2、请求参数

名称 数据类型 说明 是否必填
initialOrder Object 头程订单信息
- billLadingNumber String B/LNo
- bookingSpaceSo String 订舱SO
- container String 货柜号
- company String 头程公司
- shipCompany String 船公司
- sailingTime Date 开航时间
- actualArrivalDate Date 预计到港日期
- shipName String 船名
- flightMade String 航次
- portOfDeparture String 起运港
- portOfDischarge String 卸货港
- containerType Integer 柜型
4:20GP
5:20HQ
6:40GP
7:40HQ
8:45HQ
9:AKE
- inFlightDay Integer 在航天数
- bookingType Integer 订舱类型
1:FBA海运整箱
2:FBA海运拼箱
3:FBA空运
commissionSheet Array 工作单信息
- centreCode Long 仓库编码,默认CKMX
- inquiryNo String 询价单号
- referenceNo String 参考单号
- orderList Array 工作单明细
-‌- countryCode String 国家代码
-‌- countryName String 贸易国家
-‌- comment String 预发货备注
-‌- warehouseAddress String 入库仓库地址
-‌- warehouseContacts String 入库仓库联系人
-‌- warehousePhone String 入库仓库联系电话
-‌- estimatedDeliveryDate Date 预计发货日期
-‌- expectedArrivalDate Date 期望到货日期
-‌- originCountry String 原产地(国家)
-‌- destination String 目的地
-‌- salePlatform String 销售平台
-‌- arrivalMethod Integer 到仓方式
4货柜(20GP),
5货柜(20HQ),
6货柜(40GP),
7货柜(40HQ),
8货柜(45HQ),
9AKE
-‌- notifiNumber String 发货通知单号
-‌- orderNo String 订单号
-‌- fbaShipmentId String FBAShipmentId,FBA转运必填
-‌- fbaReferenceId String FBAReferenceId,FBA转运必填
-‌- shipMode String 派送方式
-‌- address String 详细地址
-‌- fbaWarehouseCode String fba仓库代码,FBA转运必填
-‌- shipType String 产品类型
-‌- hwReadyDeliveryBox Array 箱子列表
-‌-‌- boxLength BigDecimal 箱子长度(cm)
-‌-‌- boxWidth BigDecimal 箱子宽度(cm)
-‌-‌- boxHeight BigDecimal 箱子高度(cm)
-‌-‌- boxWeight BigDecimal 箱子重量(kg)
-‌-‌- boxVolume BigDecimal 箱子体积(立方米)
-‌-‌- customBarcode String 自定义箱类型号
-‌-‌- num Long 数量
-‌-‌- hwReadyDeliveryProduct Array 产品列表
-‌-‌-‌- sku String sku
-‌-‌-‌- qty Long 每箱产品数量
-‌-‌-‌- loadingNum Long 装柜数量


3、请求示例

  1. {
  2. "initialOrder": {
  3. "billLadingNumber": "B/LNo",
  4. "bookingSpaceSo": "订舱SO",
  5. "container": "货柜号",
  6. "company": "头程公司",
  7. "shipCompany": "船公司",
  8. "sailingTime": "2022-01-01",
  9. "actualArrivalDate": "2022-01-10",
  10. "shipName": "船名",
  11. "flightMade": "航次",
  12. "portOfDeparture": "起运港",
  13. "portOfDischarge": "卸货港",
  14. "containerType": 4,
  15. "inFlightDay": 10,
  16. "bookingType": 1
  17. },
  18. "commissionSheet": [
  19. {
  20. "warehouseId": 123,
  21. "referenceNo": "工作单号",
  22. "inquiryNo":"询价单号",
  23. "orderList": [
  24. {
  25. "countryCode": "国家",
  26. "comment": "预发货备注",
  27. "warehouseAddress": "入库仓库地址",
  28. "warehouseContacts": "入库仓库联系人",
  29. "warehousePhone": "入库仓库联系电话",
  30. "estimatedDeliveryDate": "2022-01-15",
  31. "expectedArrivalDate": "2022-01-25",
  32. "originCountry": "原产地",
  33. "arrivalMethod": 4,
  34. "notifiNumber":"发货通知单号",
  35. "orderNo":"订单号",
  36. "referenceNo": "参考单号",
  37. "fbaShipmentId": "FBAshipmentid",
  38. "fbaReferenceId": "FBAreferenceid",
  39. "fbaWarehouseCode": "fba仓库代码",
  40. "hwReadyDeliveryBox": [
  41. {
  42. "boxLength": 10,
  43. "boxWidth": 20,
  44. "boxHeight": 30,
  45. "boxWeight": 15,
  46. "boxVolume": 0.018,
  47. "customBarcode": "自定义箱类型号",
  48. "num": 2,
  49. "hwReadyDeliveryProduct": [
  50. {
  51. "sku": "sku001",
  52. "qty": 10
  53. },
  54. {
  55. "sku": "sku002",
  56. "qty": 20
  57. }
  58. ]
  59. }
  60. ]
  61. }
  62. ]
  63. }
  64. ]
  65. }


4、响应参数

名称 数据类型 说明
code Integer code
msg String 提示信息


5、响应示例

下单成功相应:

  1. {
  2. "msg": "操作成功",
  3. "code": 201
  4. }
备注
  • 更多返回错误代码请看首页的错误代码描述