fix(transfer): reserve receipt resources with durable recovery intents
This commit is contained in:
@@ -1075,6 +1075,40 @@ paths:
|
||||
responses:
|
||||
'200': { description: 原转运详情;allocations内skuCode为锁定的实际发货SKU,换标后返回新SKU;不包括已被换标替换的历史分配 }
|
||||
'409': { description: 来源不可用或幂等载荷冲突 }
|
||||
/api/platform/v1/last-leg/warehouse-transfers/{transferNo}/receipts:
|
||||
post:
|
||||
summary: 已有库存转运逐来源在目标仓实收
|
||||
description: 权限lastleg:warehouse-transfer:manage;必须指定customerId。只接收本票SHIPPED来源,服务端读取实际OVERSEAS/ACTIVE/RECEIVING仓、托盘及绑定库位、权威FBA主档并核对冻结目的仓。先持久化完整原请求,再占用资源;同转运同目标托盘的多来源共享一次ACTIVE资源锁。远端成功但本地事务失败时保留原命令,原键原载荷重试继续;新键或变更载荷不能绕过。库存、收货记录和最终换标费用结算命令同本地事务提交,成功重放不重复入账或占用,未知结果须先核对原命令。
|
||||
security: [{ bearerAuth: [] }]
|
||||
parameters:
|
||||
- { name: transferNo, in: path, required: true, schema: { type: string } }
|
||||
- { name: customerId, in: query, required: true, schema: { type: string } }
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [sourceInventoryPositionId, destinationOverseasWarehouseId, destinationWarehouseCode, destinationPalletId, destinationPalletNo, idempotencyKey]
|
||||
properties:
|
||||
sourceInventoryPositionId: { type: integer, format: int64 }
|
||||
destinationOverseasWarehouseId: { type: string, maxLength: 128 }
|
||||
destinationOverseasWarehouseCode: { type: string, nullable: true, maxLength: 128 }
|
||||
destinationOverseasWarehouseName: { type: string, nullable: true, maxLength: 255 }
|
||||
destinationWarehouseId: { type: string, nullable: true, maxLength: 128 }
|
||||
destinationWarehouseCode: { type: string, maxLength: 128 }
|
||||
destinationWarehouseName: { type: string, nullable: true, maxLength: 255 }
|
||||
destinationPalletId: { type: integer, format: int64 }
|
||||
destinationPalletNo: { type: string, maxLength: 128 }
|
||||
batchNo: { type: string, nullable: true, maxLength: 128 }
|
||||
warehouseLocationId: { type: integer, format: int64, nullable: true, description: 未传时使用该实物托盘绑定库位 }
|
||||
warehouseLocationCode: { type: string, nullable: true, maxLength: 128 }
|
||||
idempotencyKey: { type: string, maxLength: 255 }
|
||||
remark: { type: string, nullable: true, maxLength: 1000 }
|
||||
responses:
|
||||
'200': { description: 原转运详情,部分来源PARTIALLY_RECEIVED、全部来源RECEIVED;原键原载荷返回原收货结果 }
|
||||
'409': { description: 原请求冲突、来源状态或目标资源归属不匹配;不得换键绕过 }
|
||||
'503': { description: 资源服务不可用,保留原收货命令待核对恢复 }
|
||||
/api/platform/v1/last-leg/warehouse-transfers/{transferNo}/outbound:
|
||||
post:
|
||||
summary: 已有库存转运实际出库
|
||||
|
||||
Reference in New Issue
Block a user