This guide explains how to structure your Merchant Center accounts, configure authentication and developer registration for the Local Feeds Partnership (LFP) sub-API, and onboard merchants.
Account structure and authentication
The LFP sub-API authentication model requires a
dedicated Merchant Center account in your own company's name, referred to
as your LFP provider account (for example, <PARTNER_NAME> LFP account),
that Google has specifically enabled for LFP endpoints.
When calling lfpStores, lfpInventories, and lfpSales methods in the
LFP sub-API, you authenticate as a user or
service account with access to your LFP provider account.
The following example shows how both account IDs appear in a request to
lfpInventories.insert:
POST https://merchantapi.googleapis.com/lfp/v1/accounts/{LFP_ACCOUNT_ID}/lfpInventories:insert
{
"targetAccount": "{TARGET_MERCHANT_ID}",
"storeCode": "{STORE_CODE}",
"offerId": "{OFFER_ID}",
"regionCode": "US",
"contentLanguage": "en",
"availability": "in stock"
}
Replace the following:
- {LFP_ACCOUNT_ID}: Your LFP provider
account ID, passed in the URL path (
accounts/{LFP_ACCOUNT_ID}). - {TARGET_MERCHANT_ID}: The merchant's
Merchant Center account ID, passed in the
targetAccountrequest field (or in the resource path forgetanddeletecalls). - {STORE_CODE}: The store identifier from
the merchant's linked Business Profile or from
lfpStores.insert. - {OFFER_ID}: The unique identifier of the product.
Choose a merchant account structure
When creating or managing Merchant Center accounts on a merchant's behalf, you can choose from the following account structures:
- Advanced account with sub-accounts (recommended): Set up an
advanced account to
manage your LFP provider account and merchant accounts under one hierarchy.
We recommend this structure because a single credential on your parent
advanced account can create merchant sub-accounts, configure settings,
upload product data, and call
lfpMerchantStates.getwithout per-merchant OAuth 2.0 flows or service relationship handshakes. Under this structure:- Create one sub-account in your own name (for example,
<PARTNER_NAME> LFP account) to serve as your LFP provider account, and have it enabled for LFP endpoints. - Create a separate sub-account for each merchant by following Create a client account (using account aggregation).
- Create one sub-account in your own name (for example,
- Standalone Merchant Center accounts: Instead of aggregating
merchant accounts as sub-accounts, you can work with merchant-owned
standalone Merchant Center accounts (either existing accounts or
standalone accounts created with an
accountManagementrelationship) and link them to your LFP provider account. You still use your own LFP-enabled provider account to submit store, inventory, and sales data. However, to configure merchant settings, calllfpMerchantStates.get, or upload product data across multiple programs (such as free listings and Shopping Ads), you need access to each merchant's Merchant Center account in one of the following ways:- Per-merchant OAuth 2.0: Request authorization from each merchant to call endpoints on their existing standalone account on their behalf (this option doesn't require an advanced account). To learn how to access client accounts with OAuth, see Access client accounts.
- Account service relationships: If your provider account is an
advanced account
configured to offer account services, establish an
accountManagementorproductsManagementlink between your advanced account and each standalone merchant account, either during account creation or through a relationship handshake. Agencies can useaccountManagementby default; if you are another provider type and need your advanced account enabled for these services, contact Merchant API support. To learn how account relationships work, see Manage account relationships.
Register as a developer
Before calling Merchant API, complete a one-time developer registration for each Google Cloud project you use:
- Choose the Merchant Center account to register based on your
provider setup:
- Using an advanced account (managing sub-accounts or
accountManagementservice links): Register your main (or largest) advanced account. Don't register your LFP provider sub-account or individual merchant accounts. - Without an advanced account (connecting to existing standalone merchant accounts with OAuth 2.0): Register your company's primary standalone Merchant Center account (or your LFP provider account).
- Using an advanced account (managing sub-accounts or
- Meet the account prerequisites: Verify that the account you register
has a verified website,
and use credentials with
ADMINaccess to that exact account. - Register your project: Call
accounts.developerRegistration.registerGcpand pass adeveloperEmail(a Google Account, not a service account) so at least one user receives theAPI developerrole and technical notifications from Google. Wait up to 5 minutes after registration before making other Merchant API calls.
For step-by-step registration instructions, code samples, and full prerequisites, see Register as a developer.
End-to-end onboarding workflow
Once your LFP provider account is enabled, complete the following steps for each merchant you onboard:
- Set up or connect the merchant's Merchant Center account: Create a
client sub-account under your advanced account, create a merchant-owned
standalone account linked with
accountManagement, or connect to the merchant's existing standalone account. To learn how to create and link accounts, see Create accounts. - Link a Google Business Profile to the Merchant Center account: Connect the merchant's Business Profile containing their physical store locations to their Merchant Center account. To learn how to link a Business Profile, see Link a Google Business Profile.
- Enable free local listings or local inventory ads in omnichannel settings: Configure the merchant's local storefront type (Google-hosted or merchant-hosted) and enable free local listings or local inventory ads for each target country. To learn how to configure local storefronts and omnichannel settings, see Manage Omnichannel Settings.
- Link the merchant's account to your LFP provider account: Configure
omnichannel settings before linking an LFP provider. Associate the
merchant's Merchant Center account with your LFP provider account for
the target country using
lfpProviders.findandlfpProviders.linkLfpProvider. To learn how to find and link an LFP provider, see Manage Local Feeds Partnership (LFP) providers. - Resolve store codes: Obtain the store codes from the linked
Business Profile, or submit store data using
accounts.lfpStores.insertso Google matches your store codes to the merchant's Business Profile locations. For details on providing store codes, see Store codes and store matching. - Enable a data source and send product data: If the merchant's
Merchant Center account doesn't already have product data, create a
primary
APIproduct data source and upload product catalog data usingproductInputs.insert. To create an API data source, see Manage API data sources for product uploads. To learn how to submit product data, see Manage your products. Alternatively, if the merchant uses a Google-hosted local storefront and all products have valid Global Trade Item Numbers (GTINs), you can skip this step and rely on Google's catalog instead. - Send local inventory data: Submit store-specific availability and
pricing using
accounts.lfpInventories.insert. If you upload product data or use existing product data in the account, make sure theofferIdin your inventory request matches theofferIdin the product data. If the account has no product data source or theofferIdvalues don't match existing products, include a validgtinso Google can match the items to its catalog and automatically create a product data source. For request examples and field details, see Insert local inventory. - Verify product status and request inventory checks: When setup and data
submission succeed, products appear in the merchant's Merchant Center
account as Pending review, and you can inspect integration readiness
with
lfpMerchantStates.get. For your initial set of merchants, request inventory verification checks through the Merchant Center account or by callingomnichannelSettings.requestInventoryVerificationfor Google-hosted local storefronts. Once you achieve Trusted status as an LFP provider, Google no longer requires inventory checks for subsequent merchants.
Next steps
- Submit stores, inventory, and sales: Match store locations, upload local inventory and point-of-sale data, and check merchant onboarding status.