REST Resource: accounts.lfpSales
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
रिसॉर्स: 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 आईडी जिसके लिए बिक्री सबमिट करनी है.
|
storeCode |
string
ज़रूरी है. कारोबारी या कंपनी के स्टोर का आइडेंटिफ़ायर. API की मदद से डाला गया storeCode या Business Profile में मौजूद स्टोर का कोड.
|
offerId |
string
ज़रूरी है. प्रॉडक्ट का यूनीक आइडेंटिफ़ायर. अगर किसी व्यापारी/कंपनी/कारोबारी के लिए इन्वेंट्री और बिक्री, दोनों सबमिट की जाती हैं, तो यह आईडी एक ही प्रॉडक्ट के लिए मेल खाना चाहिए. ध्यान दें: अगर मर्चेंट एक ही प्रॉडक्ट को नए और इस्तेमाल किए गए के तौर पर बेचता है, तो उनके लिए अलग-अलग आईडी होने चाहिए.
|
regionCode |
string
ज़रूरी है. उस देश के लिए इलाके का CLDR कोड जहां प्रॉडक्ट बेचा जाता है.
|
contentLanguage |
string
ज़रूरी है. आइटम के लिए, ISO 639-1 के मुताबिक दो अक्षरों वाला भाषा कोड.
|
gtin |
string
ज़रूरी है. बेचे गए प्रॉडक्ट का ग्लोबल ट्रेड आइटम नंबर.
|
price |
object (Price )
ज़रूरी है. प्रॉडक्ट की इकाई की कीमत.
|
quantity |
string (int64 format)
ज़रूरी है. उपलब्ध संख्या में हुआ बदलाव. अगर लेन-देन किसी रिफ़ंड के तौर पर हुआ था, तो यह रकम नेगेटिव संख्या में दिखेगी.
|
saleTime |
string (Timestamp format)
ज़रूरी है. बिक्री का टाइमस्टैंप.
|
uid |
string
सिर्फ़ आउटपुट के लिए. LfpSale के लिए, सिस्टम से जनरेट किया गया दुनिया भर में मान्य यूनीक आईडी.
|
feedLabel |
string
ज़रूरी नहीं. प्रॉडक्ट के लिए फ़ीड का लेबल. अगर यह सेट नहीं है, तो डिफ़ॉल्ट रूप से regionCode लागू हो जाएगा.
|
तरीके |
|
दिए गए व्यापारी/कंपनी के लिए LfpSale डालता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Local Inventory Feed Sale (LfpSale) resource represents a sale for a merchant, allowing them to submit sales data for products.\u003c/p\u003e\n"],["\u003cp\u003eLfpSale data includes product identifiers (offerId, gtin), location and language (regionCode, contentLanguage), pricing and quantity (price, quantity), and sale timing (saleTime).\u003c/p\u003e\n"],["\u003cp\u003eMerchants can use the \u003ccode\u003einsert\u003c/code\u003e method to submit new LfpSale data to their Local Inventory Feed.\u003c/p\u003e\n"],["\u003cp\u003eA unique \u003ccode\u003eLfpSale\u003c/code\u003e identifier (\u003ccode\u003ename\u003c/code\u003e) and a system-generated ID (\u003ccode\u003euid\u003c/code\u003e) are automatically assigned upon insertion.\u003c/p\u003e\n"]]],["The content details the \"LfpSale\" resource, representing a merchant's sale. Key information includes: a sale's `name`, the `targetAccount` (merchant ID), `storeCode`, `offerId` (product identifier), `regionCode`, `contentLanguage`, `gtin` (product number), `price`, sold `quantity`, and `saleTime`. A sale can have a `feedLabel`. The `insert` method allows creating an LfpSale record for a specified merchant. Each sale has a system-generated `uid`.\n"],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_v1beta/accounts.lfpSales/insert) | Inserts a `LfpSale` for the given merchant. |"]]