Unidirectional product synchronization
Some apps will need to maintain their own copy of product data. Shopify provides several tools to make this possible.
Subscribe to webhooks to be notified of product changes. The webhook payload will include the updated product data.
The products/*
webhook topics send notifications for all products. The product_listings/*
webhook topics only send notifications for products that are published to a channel app. For a complete list of webhook topics, refer to the GraphQL Admin API and REST Admin API webhook pages.
Product feeds
Anchor link to section titled "Product feeds"A common use case for using product feed webhooks is for creating external copies of all products that are published to your sales channel. product feed webhooks are similar to the product_listings/*
webhooks in that they will only send notifications for products that are published to a channel app, but product feed payloads are formatted for a specific country and language. You can also initiate a "full sync", which will cause a webhook notification to be sent for every published product.
To use product feed webhooks, you must first create a ProductFeed
using the productFeedCreate
mutation and provide the country and language that should be used to format the payload.
Next, subscribe to the following product feed webhook topics:
product_feeds/incremental_sync
: Includes notifications for new products, product changes, and deleted products, and notifications are sent as those changes occurproduct_feeds/full_sync
: Includes notifications that are part of a full sync
Finally, start a full sync with the productFullSync
mutation. The payload for full sync notifications is the same as the payload for new products on the incremental_sync
topic.
While webhooks push data to subscribers as changes occur, it's also possible to pull data on demand using Shopify's API's. The GraphQL Admin API or REST Admin API are useful for building integrations that interact with a store's back end, while the Storefront API provides data more suited for buyer-facing integrations.
Bulk operations
Anchor link to section titled "Bulk operations"You can also use a bulk operation query to download a complete copy of product data.