Subscription contract updated

The Subscription contract updated trigger starts a workflow when a user in your organization or a third-party app updates a subscription contract.

Fields

The Subscription contract updated trigger contains the following fields, which can be used in conditions and actions, and to get data in the workflow:

Fields in the subscription contract updated trigger.
FieldDescription
Subscription ContractThe subscription contract that was updated.
CustomerThe customer who the updated subscription contract belongs to.
ShopThe shop where the contract was updated.

Actions

This trigger provides access to a customer, which can be used with the following actions:

Example

Example of a workflow that adds a tag to a customer when a subscription contract is updated

In this example workflow, a tag is added to a customer when a subscription contract is updated.

Testing the Subscription contract updated trigger

To test a workflow that starts with this trigger, create a subscription through the storefront then edit the resulting subscription contract via the subscription app you have installed. If you're using a third-party subscription app, then refer to the app's documentation for editing a contract. If you're using the first-party Shopify Subscriptions app, then refer to its documentation for editing a contract.

API details

The Subscription contract updated trigger allows actions to be taken with the SubscriptionContract Graphql API object.

Templates

Remove customer tag(s) when a product subscription is deactivated

When a subscription contract is updated, check if the status is not "Active", then remove customer tag(s). View template

Can’t find the answers you’re looking for? We’re here to help.