اتصال حساب خود به Merchant API را تأیید کنید
اگر یک حساب تجاری موجود دارید، میتوانید از کاوشگر API در اسناد مرجع استفاده کنید تا تأیید کنید که حساب شما برای استفاده با Merchant API آماده است.
- با به هم پیوستن
accounts/
و merchantId
خود، نام منبع حساب خود را بیابید. میتوانید merchantId
خود را در بالای Google Merchant Center پیدا کنید. - در API Explorer برای متد
accounts.products.list
، موارد زیر را انجام دهید:- نام منبع حساب خود را در قسمت
parent
وارد کنید. - در بخش اعتبارنامه ، Google OAuth 2.0 و کلید API را انتخاب کنید.
- روی اجرا کلیک کنید.
- در صورت درخواست، با حساب Google مرتبط با حساب Google Merchant Center خود وارد شوید.
اگر حساب تجاری شما به درستی تنظیم شده باشد، درخواست با موفقیت انجام می شود و کد پاسخ HTTP 200
را برمی گرداند. اگر به تازگی یک حساب کاربری جدید ایجاد کرده اید، روش accounts.products.list
هیچ محصولی را بر نمی گرداند.
در مرحله بعد، از کتابخانه مشتری برای درخواست دسترسی به سایر حسابهای تجاری استفاده کنید ، یا از یک حساب سرویس برای اجازه دسترسی API به حساب خود استفاده کنید .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی."],[[["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"]]