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 |
Required. The LFP provider account. Format: |
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 ( |
Fields | |
---|---|
name |
Output only. Identifier. The name of the |
target |
Required. The Merchant Center ID of the merchant to submit the sale for. |
store |
Required. The identifier of the merchant's store. Either a |
offer |
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. |
region |
Required. The CLDR territory code for the country where the product is sold. |
content |
Required. The two-letter ISO 639-1 language code for the item. |
gtin |
Required. The Global Trade Item Number of the sold product. |
price |
Required. The unit price of the product. |
quantity |
Required. The relative change of the available quantity. Negative for items returned. |
sale |
Required. The timestamp for the sale. |
uid |
Output only. System generated globally unique ID for the |
feed |
Optional. The feed label for the product. If this is not set, it will default to |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.