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

仅限输出。标识符。LfpStore 资源的名称。格式:accounts/{account}/lfpStores/{target_merchant}~{storeCode}

targetAccount

string (int64 format)

必需。要为其提交商店的商家的 Merchant Center ID。

storeCode

string

必需。不可变。目标商家独有的商店标识符。

storeAddress

string

必需。商店的街道地址。例如:1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA。

gcidCategory[]

string

可选。“Google 我的商家”类别 ID

matchingState

enum (StoreMatchingState)

可选。仅限输出。与 Google 商家资料的匹配状态。如果找不到匹配项,请参阅 matchingStateHint 了解详情。

storeName

string

可选。商家或商店的名称。

phoneNumber

string

可选。商店电话号码,采用 E.164 格式。示例:+15556767888

websiteUri

string

可选。商店或商家的网站网址。

placeId

string

可选。商店位置的 Google Place 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”:提供的 LfpStore 无法与任何关联的 Google 商家资料商店相匹配,因为匹配的 Google 商家资料商店未经验证。请完成 Google 商家资料验证流程,以便正确匹配。

StoreMatchingState

LfpStore 与 Google 商家资料匹配的状态。

枚举
STORE_MATCHING_STATE_UNSPECIFIED 未指定存储匹配状态。
STORE_MATCHING_STATE_MATCHED LfpStore 已成功与 Google 商家资料商店匹配。
STORE_MATCHING_STATE_FAILED LfpStore 与 Google 商家资料商店不匹配。

方法

delete

删除目标商家的商店。

get

检索有关存储区的信息。

insert

插入目标商家的商店。

list

列出目标商家的商店(由 ListLfpStoresRequest 中的过滤条件指定)。