Draft order deleted
This page was printed on Mar 30, 2023. For the current version, visit https://help.shopify.com/en/manual/shopify-flow/reference/triggers/draft-order-deleted.
The Draft order deleted trigger starts a workflow when a user in your organization or a third-party app deletes a draft order.
The following actions can be used in workflows that start with the Draft order deleted trigger.
- Send HTTP request
- Send internal email
- Remove shop metafield
- Create redirect URL
- Delete redirect URLs
- Update shop metafield
In this example workflow, an email is sent when a draft order is deleted.
Testing the Draft order deleted trigger
To test a workflow that starts with this trigger, delete a draft order.
The Draft order deleted trigger allows actions to be taken with the DraftOrder Graphql API object.
Deleted objects are not available in the API. The draft order ID is the only detail you can get when a draft order is deleted. Other details are not available.