REST Resource: accounts.lfpSales
Stay organized with collections
Save and categorize content based on your preferences.
Resource: LfpSale
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 .
|
Methods |
|
Inserts a LfpSale for the given merchant. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-31 UTC.
[null,null,["Last updated 2025-07-31 UTC."],[],[],null,["# REST Resource: accounts.lfpSales\n\n- [Resource: LfpSale](#LfpSale)\n - [JSON representation](#LfpSale.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: LfpSale\n-----------------\n\nA sale for the merchant.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"targetAccount\": string, \"storeCode\": string, \"offerId\": string, \"regionCode\": string, \"contentLanguage\": string, \"gtin\": string, \"price\": { object (/merchant/api/reference/rest/Shared.Types/Price) }, \"quantity\": string, \"saleTime\": string, \"uid\": string, \"feedLabel\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Identifier. The name of the `LfpSale` resource. Format: `accounts/{account}/lfpSales/{sale}` |\n| `targetAccount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The Merchant Center ID of the merchant to submit the sale for. |\n| `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. |\n| `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. |\n| `regionCode` | `string` Required. The [CLDR territory code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) for the country where the product is sold. |\n| `contentLanguage` | `string` Required. The two-letter ISO 639-1 language code for the item. |\n| `gtin` | `string` Required. The Global Trade Item Number of the sold product. |\n| `price` | `object (`[Price](/merchant/api/reference/rest/Shared.Types/Price)`)` Required. The unit price of the product. |\n| `quantity` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The relative change of the available quantity. Negative for items returned. |\n| `saleTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Required. The timestamp for the sale. |\n| `uid` | `string` Output only. System generated globally unique ID for the `LfpSale`. |\n| `feedLabel` | `string` Optional. The [feed label](https://developers.google.com/shopping-content/guides/products/feed-labels) for the product. If this is not set, it will default to `regionCode`. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------|---------------------------------------------|\n| ### [insert](/merchant/api/reference/rest/lfp_v1/accounts.lfpSales/insert) | Inserts a `LfpSale` for the given merchant. |"]]