Resource: LfpSale
A sale for the merchant.
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 |
Methods |
|
---|---|
|
Inserts a LfpSale for the given merchant. |