Bulk Execute Shipment

Function

Execute shipment, currently we support order with following delivery service: 7-11 Cross Border, FMT Freeze, Tcat.
Only applicable to order in pending delivery status.

針對串接物流訂單執行出貨,目前支援的物流方式有:7-11 跨境、全家冷凍、黑貓宅配 。
只對物流配送狀態為未執行的訂單有效。

URL

PATCH <<api_domain>>/v1/orders/execute_shipment

Request Parameters

Parameter

Type

Description

Example

orderIds *Required

Array

Order's ID
訂單ID

Allow 24 order IDs in one batch
一次最多輸入24筆訂單ID

["5d8c8b3be388095d25acbc89"]

Response Field

Field

Type

Description

Example

processingOrderIds

Array

Processing Order's ID
處理中訂單ID

["5d8c8b3be388095d25acbc89"]

processingFailedOrderIds

Array

Process Failed Order's ID
處理失敗訂單ID

["5d8c8b3be388095d25acbc89"]

statusErrorOrderIds

Array

Status Error Order's ID
訂單狀態錯誤無法處理ID

["5d8c8b3be388095d25acbc89"]

platformNotSupportOrderId

Array

Not Support Order's ID
物流不支援訂單ID

["5d8c8b3be388095d25acbc89"]

notFoundOrderIds

Array

Not found Order's ID
找不到的訂單ID

["5d8c8b3be388095d25acbc89"]

Response Example

JSON sample

{
    "processingOrderIds": [
      "622ef479be84b6002b50ff9f"
    ],
    "processingFailedOrderIds": [],
    "statusErrorOrderIds": [
        "622ef4a5be84b6002850ffa1"
    ],
    "platformNotSupportOrderIds": [],
    "notFoundOrderIds": [
        "622ef479be84b6002b50ff91"
    ]
}

JSON sample for failure case

{
    "message": "Unable to process the changes [\"orderIds\" must contain less than or equal to 24 items]"
}