आपके Merchant Center खाते में मौजूद प्रॉडक्ट के लिए, LocalInventory संसाधनों की सूची दिखाता है. जवाब में, pageSize में बताए गए आइटम से कम आइटम हो सकते हैं. अगर pageToken को पिछले अनुरोध में दिखाया गया था, तो इसका इस्तेमाल ज़्यादा नतीजे पाने के लिए किया जा सकता है.
LocalInventory किसी खाते के लिए, हर प्रॉडक्ट के हिसाब से संसाधनों की सूची बनाई जाती है.
एचटीटीपी अनुरोध
GET https://merchantapi.googleapis.com/inventories/v1beta/{parent=accounts/*/products/*}/localInventories
ज़रूरी है. उस पेरंट प्रॉडक्ट का name जिसके लिए स्थानीय इन्वेंट्री की लिस्टिंग बनानी है. फ़ॉर्मैट: accounts/{account}/products/{product}
क्वेरी पैरामीटर
पैरामीटर
pageSize
integer
दिए गए प्रॉडक्ट के लिए, ज़्यादा से ज़्यादा LocalInventory रिसॉर्स लौटाए जा सकते हैं. अगर किसी प्रॉडक्ट के लिए इन्वेंट्री की संख्या pageSize से कम है, तो यह सेवा इस वैल्यू से कम इन्वेंट्री दिखाती है. डिफ़ॉल्ट वैल्यू 25,000 है. ज़्यादा से ज़्यादा वैल्यू 25,000 है. अगर ज़्यादा से ज़्यादा वैल्यू से ज़्यादा वैल्यू दी जाती है, तो pageSize डिफ़ॉल्ट रूप से ज़्यादा से ज़्यादा वैल्यू पर सेट हो जाएगा
pageToken
string
पेज टोकन, जो पिछले localInventories.list कॉल से मिला था. अगला पेज देखने के लिए, पेज टोकन दें.
पेजेशन करते समय, localInventories.list को दिए गए सभी अन्य पैरामीटर, उस कॉल से मेल खाने चाहिए जिसने पेज टोकन दिया था. पिछले अनुरोध के जवाब में nextPageToken के तौर पर दिखाया गया टोकन.
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
localInventories.list तरीके के लिए रिस्पॉन्स मैसेज.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-01-23 (UTC) को अपडेट किया गया."],[[["Lists `LocalInventory` resources for a given product within your merchant account, potentially returning results across multiple pages."],["Allows filtering by product with the `parent` path parameter and pagination control through `pageSize` and `pageToken` query parameters."],["The response provides a list of `LocalInventory` resources and a `nextPageToken` if additional pages are available."],["Requires authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This content outlines how to retrieve `LocalInventory` resources for a specific product within a merchant account. A `GET` request is sent to the specified URL, using the product's `name` in the `parent` path parameter. Optional `pageSize` and `pageToken` query parameters manage result pagination. The request body is empty, while the response body returns a list of `LocalInventory` objects, and a `nextPageToken` for further pages. Access requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]