跳转到主要内容
POST
Remove inventory from consolidate shipping order
此页面由 AI 自动翻译。API 技术规格以英文呈现为标准。如有任何疑问,请参阅英文版本。
从 CREATED 状态的订单(调用 确认 Consolidate Shipping Order 之前)移除明细。可发送 returnInventoryIdList、fnskuList 或两者。 对于 FNSKU 明细,quantity 为要移除的件数;全部移除时该明细也会被删除。移除的件数会退回库存。

授权

x-rr-apikey
string
header
必填

Your API key

x-rr-apitoken
string
header
必填

Your API token — keep this private

请求体

application/json
consolidateShippingOrderId
string
必填

Consolidate shipping order ID (ULID)

returnInventoryIdList
integer[]

Return inventory IDs (RMA lines). Send this, fnskuList, or both.

Maximum array length: 1500
fnskuList
object[]

FNSKU lines. No duplicate fnsku. Send this, returnInventoryIdList, or both.

Maximum array length: 1500

响应

Success

itemType
enum<string>
可用选项:
RMA,
FNSKU
returnInventoryId
integer<int64> | null

RMA lines only; null on FNSKU lines

fnsku
string | null

FNSKU lines only

quantity
integer

Pieces the line still holds; 0 once the line is removed

handlingCode
string | null

RMA lines only

handlingStatusCode
string | null

RMA lines only