Order transaction created
The Order transaction created trigger starts a workflow when a transaction on an order is created.
Actions
This trigger provides an order, so it enables you to use any action that requires an order, including:
- Add order line item
- Add order tags
- Archive order
- Cancel order
- Capture payment
- Hold fulfillment order
- Mark order as paid
Orders allow you to access other data like the customer, so it can be used with customer actions. These include:
- Add customer tags
- Remove customer metafield
- Remove customer tags
- Update customer metafield
- Update customer note
Orders also contain lists of data like line items. Using a For each action, you can loop through these lists and perform actions on each item. For example, you can loop through the line items and add a tag to each product.
Testing the Order transaction created trigger
To test a workflow that starts with this trigger, create a test order and then perform a transaction on it, such as capturing a payment.
API details
The Order transaction created trigger allows actions to be taken with the Order Graphql API object.
Templates
Tag POS orders with the staffMember logged into device
When an order transaction is created from a POS device, it includes the staff member who created the order (and did the transaction). This workflow tags the order with "staff: