LocalInventory

產品的店面商品目錄資訊。代表 storeCode 指定商店中特定產品的店內資訊。如需所有系統接受的屬性值清單,請參閱店面商品目錄資料規格

JSON 表示法
{
  "name": string,
  "account": string,
  "storeCode": string,
  "price": {
    object (Price)
  },
  "salePrice": {
    object (Price)
  },
  "salePriceEffectiveDate": {
    object (Interval)
  },
  "customAttributes": [
    {
      object (CustomAttribute)
    }
  ],
  "availability": string,
  "quantity": string,
  "pickupMethod": string,
  "pickupSla": string,
  "instoreProductLocation": string
}
欄位
name

string

僅供輸出。LocalInventory 資源名稱。格式:accounts/{account}/products/{product}/localInventories/{storeCode}

account

string (int64 format)

僅供輸出。產品所屬的帳戶。如果用戶端設定了這個欄位,系統會忽略這個欄位。

storeCode

string

必要欄位。不可變動。銷售產品的實體商店商店代碼 (商家檔案中的商店 ID)。詳情請參閱店面商品目錄資料規格

price

object (Price)

這間商店的產品價格。

salePrice

object (Price)

本店產品的特價。如果已定義 salePriceEffectiveDate,就必須使用這個屬性。

salePriceEffectiveDate

object (Interval)

這間商店的特價 TimePeriod

customAttributes[]

object (CustomAttribute)

自訂 (商家提供的) 屬性清單。您也可以使用 CustomAttribute,以通用格式提交資料規格的任何屬性。

availability

string

這間商店的產品供應情形。如要瞭解系統接受的屬性值,請參閱店面商品目錄資料規格

quantity

string (int64 format)

此商店的產品數量。必須大於或等於零。

pickupMethod

string

這項產品支援的取貨方式。除非值為 "not supported",否則這個欄位必須與 pickupSla 一併提交。如要瞭解系統接受的屬性值,請參閱店面商品目錄資料規格

pickupSla

string

這項產品的訂單訂單日期的相對期間,在這個商店中可供取貨。必須搭配「pickupMethod」提交。如要瞭解系統接受的屬性值,請參閱店面商品目錄資料規格

instoreProductLocation

string

商店內產品的位置。長度上限為 20 個位元組。