Addon Products

Create Addon Product

To create addon product<br>建立加購品

post/addon_products

Request body

title_translationsTitleTranslations — unresolved $ref
unlimited_quantityUnlimitedQuantity — unresolved $ref
skuSku — unresolved $ref
weightWeight — unresolved $ref
media_idsstring[]
start_atstring
end_atstring
location_idstring
tax_typeTaxType — unresolved $ref
oversea_tax_typeOverseaTaxType — unresolved $ref
product_idstring

Response

OK

idstring

Add-on Product‘s ID<br>加購品ID

status'active' | 'draft'

Add-on Product's Status<br>加購品狀態<br>-<br>Status:<br>active上架<br>draft 下架

pricenumber

Addon Product Price<br>加購品價格

weightnumber

Addon Product's Weight (kg)<br>加購品重量 (公斤)

quantitynumber

Current Quantity<br>加購品目前庫存

unlimited_quantityboolean

Unlimited quantity or not.<br>加購品數量是否無限<br> -<br> true: unlimited quantity<br> false: limited quantity

skustring

Stock Keeping Unit<br>加購品貨號

tax_typestring

Tax Type<br>國內稅項

oversea_tax_typestring

Oversea Tax Type<br>海外稅項

created_atstring

Created Time<br>加購品創造時間

Example response

{
  "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"
    }
  ]
}

Changes