跳轉到主要內容
POST
Create consolidate shipping order
此頁面由 AI 自動翻譯。API 技術規格以英文呈現為標準。如有任何疑問,請參閱英文版本。
建立草稿 Consolidate Shipping Order。一張訂單會把 Return Inventory 和 FBA 庫存從一個出貨倉庫一併寄往一個目的地。 要尋找目的地倉庫,請呼叫 Get all warehouses,選擇 isConsolidateShippingDestination 為 true 的倉庫。目前香港倉庫是唯一的 RH_WAREHOUSE 目的地。

目的地規則

未傳入 destinationType 時,訂單為 CUSTOM_ADDRESS 訂單。 customFieldMap 的鍵只能包含大寫英文字母、數字、連字號和底線。 建立之後的每個步驟,請參閱 Consolidate Shipping 流程。

驗證失敗

授權

x-rr-apikey
string
header
必填

Your API key

x-rr-apitoken
string
header
必填

Your API token — keep this private

主體

application/json
outboundWarehouseId
integer
必填
destinationType
enum<string>
預設值:CUSTOM_ADDRESS

Where the order ships to. Defaults to CUSTOM_ADDRESS.

可用選項:
CUSTOM_ADDRESS,
RH_WAREHOUSE
destinationWarehouseId
integer

Destination warehouse. Required when destinationType is RH_WAREHOUSE; must be a warehouse whose isConsolidateShippingDestination is true. Ignored for CUSTOM_ADDRESS.

packagingType
enum<string>

CUSTOM_ADDRESS orders only. Ignored for RH_WAREHOUSE.

可用選項:
BOX,
PALLET
deliveryInstructions
string
shipTo
object

Ship-to address. Required when destinationType is CUSTOM_ADDRESS; ignored for RH_WAREHOUSE.

customFieldMap
object

Your own key-value pairs. Keys may contain only uppercase letters, digits, hyphen and underscore.

回應

Success

consolidateShippingOrderId
string

Consolidate shipping order ID (ULID)

consolidateShippingOrderNumber
string
outboundWarehouseId
integer<int32>
shippingFee
number<decimal>
deliveryInstructions
string | null
consolidateShippingOrderStatus
string
shipTo
object
customFieldMap
object | null