Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

通过API创建过程

  1. 获取仓库列表
  2. 存储[起始仓]和[目的仓], [发货日期], [发货方式]
  3. 根据 起始仓, 目的仓, 发货日期, 发货方式获取物流计划
  4. 获取到仓调度类型, 存储[到仓调度类型], 判断是否需要填写[vat],[收货人地址]
  5. 获取发货方式, 存储[发货方式], 存储该[发货方式的的必填项]
  6. 提交
  7. 添加客户发货箱
  8. 添加客户发货箱产品
  9. 更改状态

...这样做太累了, 所以我们提供了一次请求, 批量创建的接口.

一. 获取预置信息

预置信息中, 只有发货批次ID是每天变动的, 其他基本不变, 不用每次都获取.


...

1. Related API Requests 

For those pre-required fields, only Client-Dispatch-Freight ID varies daily, others remain stable

1.1 Get Active Warehouse

/client/Warehouse/Client-Use-Warehouse Warehouse 

1.2 获取发货批次IDGet Warehouse Dispatch Freight

/client/Warehouse-Dispatch-Freight/Get-Closest-Freight

1.3 获取到仓调度类型ID/client/Get Client-Dispatch-Delivery-Type

1.4 获取客户发货箱类型ID

/client/Client-Dispatch-Container-Type

1.5 获取Vat Id (可选Vat (Optional)

/client/Client-Dispatch-Vat-Number

1.6 获取地址簿 (可选4 Get Address-Book (Optional)

/client/Address-Book

...

2. All-in-one API Request to create Client-Dispatch 

Include Page/client-dispatch/update-status/client-dispatch/update-status完成

Include Page
批量添加客户发货单批量添加客户发货单

三. 修改发货单状态

参数为CLIENT_DISPATCHED

Add Client Dispatch in bulk
Add Client Dispatch in bulk

3. Update the Status of Client-Dispatch 

update client dispatch status to 'CLIENT_DISPATCH'

Include Page
Update Client Dispatch Status
Update Client Dispatch Status

Finished