v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Addon Products

Get Addon Products

To get detailed information of addon products.<br>撈取加購品的詳細資訊

get/addon_products

Query parameters

previous_idstring

The last ID of the addon products in the previous request.<br>前一筆加購品的 ID <br>beta 測試中,僅開放部分店家使用,如無法使用功能請聯絡客服窗口

pageinteger

Page Number<br>頁數

per_pageinteger

Numbers of Orders per Page<br>每頁顯示 n 筆資料

include_fields[]string[]

Provide additional attributes in the response<br>結果添加哪些參數

main_product_idstring

Main Product ID<br>主商品ID

Response

OK

Example response

{
  "items": [
    {
      "id": "5892d8679f9a4fc07b008295",
      "status": "draft",
      "title_translations": {
        "en": "Addon Products",
        "zh-hant": "加購品"
      },
      "weight": 10.2,
      "quantity": 10,
      "medias": {
        "id": "5f8e5dc08a8bb70a5c9cd93c",
        "alt_translations": {
          "en": "Image ALT",
          "zh-hant": "圖片ALT"
        },
        "images": {
          "original": {
            "width": 800,
            "height": 800,
            "url": "https://img.example.com/media/1234/thumb.jpg"
          }
        }
      },
      "sku": "addon_product_sku",
      "created_at": "2019-12-30T09:16:46.142+00:00",
      "promotions": [
        {
          "discounted_price": {
            "cents": 999999999,
            "currency_symbol": "NT$",
            "currency_iso": "TWD",
            "label": "NT$999,999,999",
            "dollars": 999999999
          },
          "start_at": "2020-07-09T04:00:00.000+00:00",
          "end_at": "2020-07-09T04:00:00.000+00:00"
        }
      ]
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 24,
    "total_count": 1,
    "total_pages": 1
  }
}
All 318 operations