v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Orders

Get Order Labels of Delivery

To get delivery labels with order IDs.<br>使用訂單ID獲取寄貨標籤。<br> If validations are passed, those partially failed orders will be return, for fmt_c2, fmt_b2, seven_eleven_b2c, tcat_roomtem, tcat_refrigerate, tcat_froze orders.<br> 如果通過訂單資訊的驗證,如有部份fmt_c2, fmt_b2, seven_eleven_b2c, tcat_roomtem, tcat_refrigerate, tcat_froze單操作失敗, 部份失敗的訂單訊息將會被返回。<br> The list of failed fmt_c2, fmt_b2, seven_eleven_b2c, tcat_roomtem, tcat_refrigerate, tcat_frozeorders can be found from the failed_orders property. The property will be hidden if there are no errors.<br> 不成功的fmt_c2, fmt_b2, seven_eleven_b2c, tcat_roomtem, tcat_refrigerate, tcat_froze orders 將會出現在failed_orders 內。

get/orders/label

Query parameters

ids[]string[] required

Order ID<br>訂單ID<br>-<br>Allow 24 order IDs in one batch<br>一次最多輸入24筆訂單ID<br>

[
  "5def3cabcc5c4e002d1a4a49"
]

Response

OK

fmt_b2cstring[]
fmt_c2cstring[]
seven_eleven_b2cstring[]
tcat_roomtempstring[]
tcat_refrigeratedstring[]
tcat_frozenstring[]
sfexpressstring[]
sf_pickupstring[]
hct_roomtempstring[]
hct_refrigeratedstring[]
hct_frozenstring[]
failed_ordersobject

Example response

{
  "fmt_b2c": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...tw_fm_b2c_nopay.pdf.../...",
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...tw_fm_b2c_pay.pdf.../..."
  ],
  "fmt_c2c": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...tw_fm_c2c_nopay.pdf.../...",
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...tw_fm_c2c_pay.pdf.../..."
  ],
  "seven_eleven_b2c": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...tw_711_b2c_nopay.pdf.../..."
  ],
  "tcat_roomtemp": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/tcat/..."
  ],
  "tcat_refrigerated": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/tcat/..."
  ],
  "tcat_frozen": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/tcat/..."
  ],
  "sfexpress": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/sf_express/..."
  ],
  "sf_pickup": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/sf_express/..."
  ],
  "hct_roomtemp": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...sl_logistics_hct_hct_roomtemp.pdf.../..."
  ],
  "hct_refrigerated": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...sl_logistics_hct_hct_refrigerated.pdf.../..."
  ],
  "hct_frozen": [
    "https://shoplineapp-com.s3-ap-southeast-1.amazonaws.com/pdf/private/...sl_logistics_hct_hct_frozen.pdf.../..."
  ],
  "failed_orders": {
    "61405486588cb80383c9edb8": [
      {
        "delivery_option": "seven_eleven_b2c",
        "reason": "Cannot handle this order"
      }
    ],
    "61529568588cb80383c9f056": [
      {
        "delivery_option": "seven_eleven_b2c",
        "reason": "Unprocessed"
      }
    ]
  }
}