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

Because the trigger returns the Subscription Contract, Customer, and Shop fields, actions that require those fields can be used with the trigger, such as:

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.

Ready to start selling with Shopify?Try it free