Merchant API v1beta was discontinued and shut down on February 28, 2026. For steps to transition to the latest stable version, seeMigrate from v1beta to v1.
Keep regional information up to dateStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
The Merchant API allows you to manage regional information for your online products, including updating price and availability, and removing regions where a product is no longer sold.
Ecommerce platforms can leverage the Merchant API to build interfaces for their merchants to update regional pricing and availability of their products.
You can view existing regional information for a specific product or your entire account using theregionalInventories.listorregions.listmethods, respectively.
To remove regional data for a product or your entire account, you can utilize theregionalInventories.deleteorregions.deletemethods, respectively.
You can use Merchant API to keep regional information for your online products
up to date. This includes updating price and availability, and removing regions
a product is no longer sold in.
If you're an ecommerce platform, you can use Merchant API to create an
interface where your clients can update the regional pricing and availability of
their products.
This section explains how to view the regions associated with a product or
account.
By product
Useaccounts.products.regionalInventories.listto list all the regional inventories connected to a specific product in your
account. Use theregionfield to identify the region each regional inventory
refers to.
Here's a sample you can use to list regional inventories for a product:
fromexamples.authenticationimportconfigurationfromexamples.authenticationimportgenerate_user_credentialsfromgoogle.shoppingimportmerchant_inventories_v1# ENSURE you fill in the product ID for the sample to# work._ACCOUNT=configuration.Configuration().read_merchant_info()_PRODUCT="[INSERT_PRODUCT_HERE]"_PARENT=f"accounts/{_ACCOUNT}/products/{_PRODUCT}"deflist_regional_inventories():"""Lists the `RegionalInventory` resources for the given product.The response might contain fewer items than specified by`pageSize`. If `pageToken` was returned in previous request, it can beused to obtain additional results.`RegionalInventory` resources are listed per product for a given account."""# Gets OAuth Credentials.credentials=generate_user_credentials.main()# Creates a client.client=merchant_inventories_v1.RegionalInventoryServiceClient(credentials=credentials)# Creates the request.# Page size is set to the default value.request=merchant_inventories_v1.ListRegionalInventoriesRequest(parent=_PARENT,page_size=25000)try:# Makes the request and catch and print any error messages.# If you are returned more responses than your page size, this code# will automatically re-call the service with the `pageToken` until all# responses are returned.page_result=client.list_regional_inventories(request=request)# Print the response.forresponseinpage_result:print(response)exceptRuntimeErrorase:print("List failed")print(e)if__name__=="__main__":list_regional_inventories()
You can use theregions.listmethod in Merchant API to view all the regions for your account.
Remove regions
Here's how to remove regions you no longer sell products in:
From products
If a product is no longer sold in a specific region, you should remove that
regional inventory information from the product. You can useregionalInventories.deleteto remove a specific regional inventory entry from a product.
Here's a sample you can use to remove a regional inventory entry from a product:
fromexamples.authenticationimportconfigurationfromexamples.authenticationimportgenerate_user_credentialsfromgoogle.shoppingimportmerchant_inventories_v1# ENSURE you fill in the product ID and region ID# for the sample to work._ACCOUNT=configuration.Configuration().read_merchant_info()_PRODUCT="[INSERT_PRODUCT_HERE]"_REGION="[INSERT_REGION_HERE]"_NAME=f"accounts/{_ACCOUNT}/products/{_PRODUCT}/regionalInventories/{_REGION}"defdelete_regional_inventory():"""Deletes the specified `RegionalInventory` resource from the given product.It might take up to an hour for the `RegionalInventory` to be deletedfrom the specific product. Once you have received a successful deleteresponse, wait for that period before attempting a delete again."""# Gets OAuth Credentials.credentials=generate_user_credentials.main()# Creates a client.client=merchant_inventories_v1.RegionalInventoryServiceClient(credentials=credentials)# Creates the request.request=merchant_inventories_v1.DeleteRegionalInventoryRequest(name=_NAME,)# Makes the request and catch and print any error messages.try:client.delete_regional_inventory(request=request)print("Delete successful")exceptRuntimeErrorase:print("Delete failed")print(e)if__name__=="__main__":delete_regional_inventory()
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-26 UTC."],[],["The Merchant API enables management of regional product information, including pricing and availability. `regionalInventories.insert` updates this data, requiring all fields. You can list existing regions per product using `accounts.products.regionalInventories.list` or by account via `regions.list`. To remove a region from a product, use `regionalInventories.delete`. Removing regions from an account involves using `accounts.products.regionalInventories.delete`. Changes may take up to 30 minutes to reflect. E-commerce platforms can use the Merchant API to create interfaces that update regional data.\n"]]