v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Channels

Create Product Channel Price

To create new product channel price<br>創建商品分店價格

post/channels/{channel_id}/products/{id}/prices

Path parameters

channel_idstring required

Channels's ID<br>通路 ID

idstring required

Products's ID<br>商品 ID

Request body

pricenumber

The Channel price of the product<br>商品分店價格

Example request

{
  "price": 23.16,
  "price_details": [
    {
      "variation_key": "610258858c5acd00452fcf8d",
      "price": 996.12
    }
  ]
}

Response

Created

idstring
type'pos' | 'flash_price'

price set type

statusstring

price set status

merchant_idstring

商家 ID

channel_idstring

渠道(實體店) ID

product_idstring

商品 ID

created_atstring
updated_atstring

Example response

{
  "price": {
    "cents": 999999999,
    "currency_symbol": "NT$",
    "currency_iso": "TWD",
    "label": "NT$999,999,999",
    "dollars": 999999999
  },
  "price_sale": {
    "cents": 999999999,
    "currency_symbol": "NT$",
    "currency_iso": "TWD",
    "label": "NT$999,999,999",
    "dollars": 999999999
  },
  "price_details": [
    {
      "variation_key": "5d3594c276e7ec003b7021c0",
      "price": {
        "cents": 999999999,
        "currency_symbol": "NT$",
        "currency_iso": "TWD",
        "label": "NT$999,999,999",
        "dollars": 999999999
      },
      "price_sale": {
        "cents": 999999999,
        "currency_symbol": "NT$",
        "currency_iso": "TWD",
        "label": "NT$999,999,999",
        "dollars": 999999999
      }
    }
  ]
}