If you have an existing merchant account, you can use the API explorer in the reference documentation to verify that your account is ready to use with the Merchant API.
- Find your merchant-ID in the top of Google Merchant Center.
- In the API Explorer for the
accounts.products.regionalInventories.list
method, do the following:- Enter your merchant ID in the
merchantId
field. - In the Credentials section, select Google OAuth 2.0 and API key.
- Click Execute.
- If prompted, sign in with the Google Account associated with your Google Merchant Center account.
- Enter your merchant ID in the
If your merchant account is set up correctly, the request succeeds and returns
an HTTP response code 200
. If you just created a new account, the
accounts.products.regionalInventories.list
method doesn't return any products.
Next, use a client library to request access to other merchant accounts, or use a service account to authorize API access to your own account.