Auto-tag customers when their order is paid
Configure this task with a customer tag, and Mechanic will take care of applying it to your customers as soon as their order payment goes through. Easy as that. :)
Try this taskWhen it runs
Occurs whenever an order is paid
What you choose
Customer tag
Task code and subscriptions
You can edit the Liquid code after installing this task. View on GitHub or ask a question in the Mechanic Slack community.
Subscriptions
shopify/orders/paid
How task subscriptions work
Option types and flags
- Customer tag (required)
Task code
{% action "shopify" %}
mutation {
tagsAdd(
id: {{ order.customer.admin_graphql_api_id | json }}
tags: {{ options.customer_tag__required | json }}
) {
userErrors {
field
message
}
}
}
{% endaction %}
Mechanic Liquid reference