إثبات ربط حسابك بواجهة Merchant API
إذا كان لديك حساب تاجر حالي، يمكنك استخدام
مستكشف واجهات برمجة التطبيقات في المستندات المرجعية
التأكّد من أنّ حسابك جاهز للاستخدام مع Merchant API
- يمكنك العثور على اسم المورد لحسابك من خلال تسلسل
accounts/
مع
merchantId
يمكنك العثور على merchantId
في أعلى
Google Merchant Center.
- في مستكشف واجهة برمجة التطبيقات لطريقة
accounts.products.list
، نفِّذ ما يلي:
- أدخِل اسم المورد لحسابك في الحقل
parent
.
- في قسم بيانات الاعتماد، اختَر Google OAuth 2.0 وواجهة برمجة التطبيقات.
المفتاح.
- انقر على تنفيذ.
- سجِّل الدخول باستخدام حساب Google المرتبط بحسابك على Google
Merchant Center، إذا طُلب منك ذلك.
إذا تم إعداد حساب التاجر بشكل صحيح، ينجح الطلب ويعرض
رمز استجابة HTTP 200
. إذا أنشأت حسابًا جديدًا للتو، لن تعرض الطريقة
accounts.products.list
أي منتجات.
بعد ذلك،
استخدِم مكتبة عملاء لطلب الوصول إلى حسابات التجّار الأخرى،
أو
استخدِم حساب خدمة لمنح إذن الوصول إلى واجهة برمجة التطبيقات لحسابك الخاص.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-10-23 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-23 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]