HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Bulk Execute Shipment

Function

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

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

URL

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

Request Parameters

ParameterTypeDescriptionExample
orderIds
*Required
ArrayOrder's ID
訂單ID

Allow 24 order IDs in one batch
一次最多輸入24筆訂單ID
["5d8c8b3be388095d25acbc89"]

Response Field

FieldTypeDescriptionExample
processingOrderIdsArrayProcessing Order's ID
處理中訂單ID
["5d8c8b3be388095d25acbc89"]
processingFailedOrderIdsArrayProcess Failed Order's ID
處理失敗訂單ID
["5d8c8b3be388095d25acbc89"]
statusErrorOrderIdsArrayStatus Error Order's ID
訂單狀態錯誤無法處理ID
["5d8c8b3be388095d25acbc89"]
platformNotSupportOrderIdArrayNot Support Order's ID
物流不支援訂單ID
["5d8c8b3be388095d25acbc89"]
notFoundOrderIdsArrayNot 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]"
}