Introducing a webhook topic for customer account settings
API
Effective July 01, 2024
As of API version 2024-07 of the GraphQL Admin API, your app can subscribe to the customer_account_settings/update
webhook topic.
This webhook is triggered when a merchant changes customer account settings.
For example, if a merchant chooses new customer account, requires login on checkout and shows login link on online store, the payload in the webhook will look like:
{
url: 'https://shopify.com/1234567890/account',
customer_accounts_version: 'new_customer_accounts',
login_required_at_checkout: true,
login_links_visible_on_storefront_and_checkout: true
}
If a merchant chooses classic customer account, does not require login on checkout and does not show login link on online store, the payload in the webhook will look like:
{
url: null,
customer_accounts_version: 'classic',
login_required_at_checkout: false,
login_links_visible_on_storefront_and_checkout: false
}
Learn more about these webhooks on Shopify.dev