Method: accounts.lfpSales.insert

Inserts a LfpSale for the given merchant.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The LFP provider account. Format: accounts/{lfp_partner}

Request body

The request body contains an instance of LfpSale.

Response body

A sale for the merchant.

If successful, the response body contains data with the following structure:

JSON representation
{
  "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
}
Fields
name

string

Output only. Identifier. The name of the LfpSale resource. Format: accounts/{account}/lfpSales/{sale}

targetAccount

string (int64 format)

Required. The Merchant Center ID of the merchant to submit the sale for.

storeCode

string

Required. The identifier of the merchant's store. Either a storeCode inserted through the API or the code of the store in the Business Profile.

offerId

string

Required. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product.

Note: if the merchant sells the same product new and used, they should have different IDs.

regionCode

string

Required. The CLDR territory code for the country where the product is sold.

contentLanguage

string

Required. The two-letter ISO 639-1 language code for the item.

gtin

string

Required. The Global Trade Item Number of the sold product.

price

object (Price)

Required. The unit price of the product.

quantity

string (int64 format)

Required. The relative change of the available quantity. Negative for items returned.

saleTime

string (Timestamp format)

Required. The timestamp for the sale.

uid

string

Output only. System generated globally unique ID for the LfpSale.

feedLabel

string

Optional. The feed label for the product. If this is not set, it will default to regionCode.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.