Method: accounts.lfpSales.insert

为指定商家插入 LfpSale

HTTP 请求

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpSales:insert

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。LFP 提供商帐号。格式:accounts/{lfp_partner}

请求正文

请求正文包含一个 LfpSale 实例。

响应正文

商家的销售。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "name": string,
  "targetAccount": string,
  "storeCode": string,
  "offerId": string,
  "regionCode": string,
  "contentLanguage": string,
  "gtin": string,
  "price": {
    object (Price)
  },
  "quantity": string,
  "saleTime": string,
  "uid": string,
  "feedLabel": string
}
字段
name

string

仅限输出。标识符。LfpSale 资源的名称。格式:accounts/{account}/lfpSales/{sale}

targetAccount

string (int64 format)

必需。要为其提交销售信息的商家的 Merchant Center ID。

storeCode

string

必需。商家商店的标识符。通过 API 或商家资料中商店代码插入的 storeCode

offerId

string

必需。商品的唯一标识符。如果商家同时提交了商品目录和促销信息,则此 ID 应与同一商品匹配。

注意:如果商家同时销售同一款商品的新品和二手货,则应提供不同的 ID。

regionCode

string

必需。商品销往国家/地区的 CLDR 地区代码

contentLanguage

string

必需。商品的双字母 ISO 639-1 语言代码。

gtin

string

必需。所售产品的全球贸易项目代码。

price

object (Price)

必需。产品的单价。

quantity

string (int64 format)

必需。可用数量的相对变化。如果商品被退回,则为负数。

saleTime

string (Timestamp format)

必需。销售活动的时间戳。

uid

string

仅限输出。系统为 LfpSale 生成的全局唯一 ID。

feedLabel

string

可选。产品的 Feed 标签。如果未设置,则默认为 regionCode

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/content

如需了解详情,请参阅 OAuth 2.0 概览