Keeping in sync
Sales channel apps typically feature products from many different Shopify merchants. The best way to keep your sales channel up-to-date with the data in merchants' stores is by using webhooks.
Sales channel apps have access to all of Shopify's app webhook topics, and to six channel-specific topics:
add webhooks are triggered when a merchant publishes a product in your channel.
Remove webhooks are triggered when a product is either destroyed or unpublished from your channel. An unpublished product may not have been permanently deleted, and could be added again in the future.
Sample webhook creation request
The following example shows a request that uses the
That request returns a response that looks like this:
Depending on the transaction, your sales channel might need to update an order that has been created in Shopify. For more information about changes that you can make to the order after the purchase is complete, refer to the Refunds API, the Transactions API, and the Orders API.