Merchant API से अपने खाते के कनेक्शन की पुष्टि करें
अगर आपके पास पहले से कोई Merchant Center खाता है, तो रेफ़रंस दस्तावेज़ में मौजूद एपीआई एक्सप्लोरर का इस्तेमाल करके पुष्टि की जा सकती है कि आपका खाता, Merchant API के साथ इस्तेमाल के लिए तैयार है या नहीं.
accounts/
और अपने merchantId
को जोड़कर, अपने खाते के संसाधन का नाम ढूंढें. आपको अपना merchantId
, पेज पर सबसे ऊपर दिखेगा
Google Merchant Center.
- API Explorer में
accounts.products.list
तरीका है, तो ये काम करें:
parent
फ़ील्ड में अपने खाते के रिसॉर्स का नाम डालें.
- क्रेडेंशियल सेक्शन में, Google OAuth 2.0 और एपीआई पासकोड चुनें.
- लागू करें पर क्लिक करें.
- अगर कहा जाए, तो अपने Google Merchant Center खाते से जुड़े Google खाते से साइन इन करें.
अगर आपका कारोबारी खाता सही तरीके से सेट अप किया गया है, तो अनुरोध पूरा हो जाता है और वापस आ जाता है
एक एचटीटीपी रिस्पॉन्स कोड 200
. अगर आपने अभी-अभी नया खाता बनाया है, तो accounts.products.list
तरीके से कोई प्रॉडक्ट नहीं मिलता.
इसके बाद,
दूसरे व्यापारी खातों का ऐक्सेस पाने का अनुरोध करने के लिए, क्लाइंट लाइब्रेरी का इस्तेमाल करना,
या
अपने खाते में एपीआई का ऐक्सेस देने के लिए, सेवा खाते का इस्तेमाल करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-23 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-10-23 (UTC) को अपडेट किया गया."],[[["Existing merchant account holders can use the API explorer to verify their account's compatibility with the Merchant API."],["Account verification involves locating your `merchantId`, constructing the resource name, and executing the `accounts.products.list` method within the API Explorer using your credentials."],["Successful verification is indicated by an HTTP response code `200`, although new accounts may not return any product data."],["After verification, users can proceed to utilize client libraries for accessing other merchant accounts or employ service accounts for authorizing API access to their own account."]]],["To verify a merchant account for API use, locate your `merchantId` in Google Merchant Center and construct the account's resource name. In the API Explorer, use the `accounts.products.list` method, input the resource name in the `parent` field, and select Google OAuth 2.0 and API key credentials. Executing the request should return an HTTP 200 code, confirming successful setup. For new accounts, the product list will be empty. Further access can be configured via client libraries or service accounts.\n"]]