REST Resource: accounts.lfpStores

資源:LfpStore

商家的商店。系統會使用這項資訊來比對目標商家 Google 商家檔案中的商店。如果找不到相符的商店,系統就不會使用你透過商店代碼提交的商品目錄或銷售資料。

JSON 表示法
{
  "name": string,
  "targetAccount": string,
  "storeCode": string,
  "storeAddress": string,
  "gcidCategory": [
    string
  ],
  "matchingState": enum (StoreMatchingState),
  "storeName": string,
  "phoneNumber": string,
  "websiteUri": string,
  "placeId": string,
  "matchingStateHint": string
}
欄位
name

string

僅供輸出。ID。LfpStore 資源名稱。格式:accounts/{account}/lfpStores/{target_merchant}~{storeCode}

targetAccount

string (int64 format)

必要欄位。要提交商店的商家 Merchant Center ID。

storeCode

string

必要欄位。不可變動。目標商家專屬的商店 ID。

storeAddress

string

必要欄位。商店的街道地址。範例:臺灣臺北市信義區信義路五段 7 號

gcidCategory[]

string

選用設定。Google 我的商家類別 ID

matchingState

enum (StoreMatchingState)

選用設定。僅供輸出。與 Google 商家檔案相符的狀態。如果找不到相符項目,請參閱 matchingStateHint

storeName

string

選用設定。商家或商店名稱。

phoneNumber

string

選用設定。商店電話號碼,格式為 E.164。範例:+15556767888

websiteUri

string

選用設定。商店或商家的網站網址。

placeId

string

選用設定。商店位置的 Google 地點 ID

matchingStateHint

string

選用設定。僅供輸出。說明配對失敗的原因,只有在 matchingState=STORE_MATCHING_STATE_FAILED 時,系統才會設定這個屬性。

可能的值為:

  • linked-store-not-found」:沒有任何可比對的 Google 商家檔案商店。
  • store-match-not-found」:提供的「LfpStore」無法與任何已連結的 Google 商家檔案商店進行比對。Merchant Center 帳戶已正確連結,Google 商家檔案中也能顯示商店,但 LfpStore 地點與 Google 商家檔案商店的地址不符。請更新 LfpStore 地址或 Google 商家檔案商店地址,確保兩者相符。
  • store-match-unverified」:相符的 Google 商家檔案商店尚未驗證,因此提供的 LfpStore 無法與任何已連結的 Google 商家檔案商店進行比對。請務必完成 Google 商家檔案驗證程序,才能正確比對。

StoreMatchingState

與 Google 商家檔案相符的「LfpStore」狀態。

列舉
STORE_MATCHING_STATE_UNSPECIFIED 未指定儲存比對狀態。
STORE_MATCHING_STATE_MATCHED LfpStore已成功與 Google 商家檔案商店配對。
STORE_MATCHING_STATE_FAILED LfpStore與 Google 商家檔案商店不相符。

方法

delete

刪除目標商家的商店。

get

擷取商店相關資訊。

insert

為目標商家插入商店。

list

列出 ListLfpStoresRequest 中篩選器指定的目標商家。