HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Get AddonProducts

Function

To get detailed information of add-on products.
撈取加購品的詳細資訊

URL

GET <<api_domain>>/v1/addon_products

Response Fields

FieldColumn TypeDescriptionExample
idStingAdd-on Product‘s ID
加購品ID
5892d8679f9a4fc07b008295
statusStingAdd-on Product's Status
加購品狀態
-
Status:
active上架
draft 下架
draft
title_translationsTranslationTitle Translations
加購品名稱
"en": "Addon Products",
"zh-hant": "加購品"
quantityNumberCurrent Quantity
加購品目前庫存
10
unlimited_quantityBooleanUnlimited quantity or not.
加購品數量是否無限
-
true: unlimited quantity

false: limited quantity
false
mediasMediaMedia Data
媒體(照片)資訊
skuStringStock Keeping Unit
加購品貨號
addon_product_sku
tax_typeStringTax type
國內稅項
"1": 應稅
"3": 免稅
oversea_tax_typeStringOversea tax type
海外稅項
"1": 應稅
"2": 零稅率-非經海關出口
"5": 零稅率-經海關出口
created_atDateTimeCreated Time
加購品創造時間
2019-12-30T09:16:46.142+00:00
paginationPaginationPagination Data
頁面資訊
Please check the link on the left

Response Example

{
    "items": [
        {
            "id": "5892d8679f9a4fc07b008295",
            "status": "draft",
            "title_translations": {
                "en": "Addon Products",
                "zh-hant": "加購品"
            },
            "price": null,
            "quantity": 10,
            "unlimited_quantity": false,
            "tax_type": null,
            "oversea_tax_type": 1,
            "medias": [
                {
                    "images": {
                        "original": {
                            "width": 740,
                            "height": 416,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/original.jpg?1486018626"
                        },
                        "landscape": {
                            "width": 740,
                            "height": 416,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/original.jpg?1486018626"
                        },
                        "source": {
                            "width": 740,
                            "height": 416,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/source.jpg?1486018626"
                        },
                        "thumb": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/thumb.jpg?1486018626"
                        },
                        "medium": {
                            "width": 250,
                            "height": 141,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/medium.jpg?1486018626"
                        },
                        "large": {
                            "width": 500,
                            "height": 281,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/large.jpg?1486018626"
                        },
                        "xlarge": {
                            "width": 740,
                            "height": 416,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/xlarge.jpg?1486018626"
                        },
                        "favicon_small": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/thumb.jpg?1486018626"
                        },
                        "favicon": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/thumb.jpg?1486018626"
                        },
                        "favicon_large": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/thumb.jpg?1486018626"
                        },
                        "transparent_thumb": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/thumb.jpg?1486018626"
                        },
                        "transparent_medium": {
                            "width": 250,
                            "height": 141,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/medium.jpg?1486018626"
                        },
                        "transparent_large": {
                            "width": 500,
                            "height": 281,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/large.jpg?1486018626"
                        },
                        "transparent_xlarge": {
                            "width": 740,
                            "height": 416,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d84259d5241718001040/xlarge.jpg?1486018626"
                        }
                    },
                    "_id": "5892d84259d5241718001040",
                    "alt_translations": {}
                }
            ],
            "sku": "addon_product_sku"
            "created_at": "2019-12-30T09:16:46.142+00:00"
        },
        {
            "id": "5892d83c9f9a4fd05f01c23e",
            "status": "draft",
            "title_translations": {
                "zh-hant": "add watch"
            },
            "price": null,
            "quantity": 1,
            "unlimited_quantity": false,
            "tax_type": null,
            "oversea_tax_type": 1,
            "medias": [
                {
                    "images": {
                        "original": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/original.jpeg?1486018560"
                        },
                        "landscape": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/original.jpeg?1486018560"
                        },
                        "source": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/source.jpg?1486018560"
                        },
                        "thumb": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/thumb.jpg?1486018560"
                        },
                        "medium": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/medium.jpg?1486018560"
                        },
                        "large": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/large.jpg?1486018560"
                        },
                        "xlarge": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/xlarge.jpg?1486018560"
                        },
                        "favicon_small": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/thumb.jpg?1486018560"
                        },
                        "favicon": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/thumb.jpg?1486018560"
                        },
                        "favicon_large": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/thumb.jpg?1486018560"
                        },
                        "transparent_thumb": {
                            "width": 200,
                            "height": 200,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/thumb.jpg?1486018560"
                        },
                        "transparent_medium": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/medium.jpg?1486018560"
                        },
                        "transparent_large": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/large.jpg?1486018560"
                        },
                        "transparent_xlarge": {
                            "width": 225,
                            "height": 225,
                            "url": "https://img.shoplineapp.com/media/image_clips/5892d8019f9a4fd24c01beff/xlarge.jpg?1486018560"
                        }
                    },
                    "_id": "5892d8019f9a4fd24c01beff",
                    "alt_translations": {}
                }
            ],
            "sku": null
						"created_at": "2019-12-30T09:28:25.156+00:00"
        }
    ],
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_pages": 1,
        "total_count": 2
    }
}