55 lines
2.9 KiB
YAML
55 lines
2.9 KiB
YAML
openapi: 3.0.3
|
|||
|
|
info:
|
||
|
|
title: 一件代发 PDA 合托 API
|
||
|
|
version: 1.0.0
|
||
|
|
description: 测量完成后独立下发;不创建国内库存。PDA 扫箱唛识别 SKU,并按箱数合托。
|
||
|
|
paths:
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/tasks/pending:
|
||
|
|
get:
|
||
|
|
summary: 查询待领取或本人已领取的一件代发合托任务
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/tasks/{taskId}:
|
||
|
|
get:
|
||
|
|
summary: 查询任务、托盘、入仓单、SKU 和箱数明细
|
||
|
|
parameters:
|
||
|
|
- { name: taskId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
- { name: warehouseId, in: query, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/tasks/{taskId}/claim:
|
||
|
|
post:
|
||
|
|
summary: 领取合托任务
|
||
|
|
parameters: [{ name: taskId, in: path, required: true, schema: { type: integer, format: int64 } }]
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/tasks/{taskId}/pallets/open:
|
||
|
|
post:
|
||
|
|
summary: 开启一个现场托盘
|
||
|
|
parameters: [{ name: taskId, in: path, required: true, schema: { type: integer, format: int64 } }]
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/tasks/{taskId}/pallets/{palletId}/scan:
|
||
|
|
post:
|
||
|
|
summary: 扫箱唛识别 SKU 并填写上托箱数
|
||
|
|
parameters:
|
||
|
|
- { name: taskId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
- { name: palletId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/tasks/{taskId}/pallets/{palletId}/seal:
|
||
|
|
post:
|
||
|
|
summary: 完成合托并生成 DP 托盘号
|
||
|
|
parameters:
|
||
|
|
- { name: taskId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
- { name: palletId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/inbound-orders/{inboundId}/pallets:
|
||
|
|
get:
|
||
|
|
summary: 入仓单查看绑定的一个或多个托盘及各自箱数
|
||
|
|
parameters: [{ name: inboundId, in: path, required: true, schema: { type: integer, format: int64 } }]
|
||
|
|
responses: { '200': { description: OK } }
|
||
|
|
/api/platform/v1/first-leg/pda-dropship/inbound-orders/{inboundId}/pallets/{palletId}/print:
|
||
|
|
get:
|
||
|
|
summary: 打印托盘号、入仓码和 SKU 箱数托盘唛
|
||
|
|
parameters:
|
||
|
|
- { name: inboundId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
- { name: palletId, in: path, required: true, schema: { type: integer, format: int64 } }
|
||
|
|
responses:
|
||
|
|
'200': { description: PDF, content: { application/pdf: { schema: { type: string, format: binary } } } }
|