Send an email when someone edits their order

Anonymous Anonymous query
0

Based on the provided documents, specifically send-admin-api-mutations.json, there is no direct mutation to send an email when someone edits their order. However, you can use the orderEditUpdate or orderUpdate mutations to update the order and then trigger an email notification.

You can use the orderUpdate mutation to update the order fields and then use a workflow, such as the ones found in templates.json, to send an email notification. For example, you can use the template "Get notified by email when workflow run errors are detected" and modify it to trigger on order updates instead.

Alternatively, you can use the orderEditUpdate mutation and then use a separate API call to send an email notification.

Please note that the provided documents do not contain a direct solution to send an email when someone edits their order, but you can use the available mutations and workflows to achieve this functionality.