Overview
The current Commerce trigger family supports these trigger options:- Order created
- Order fulfilled
- Order paid
- Order refunded
- Order cancelled
Before you start
- Open Automation.
- Click Create new scenario.
- Make sure your Commerce flow is ready for the order event you want to track.
Steps
- Click Trigger.
- Choose Commerce.
- Select one trigger option:
- Order created
- Order fulfilled
- Order paid
- Order refunded
- Order cancelled
- Save the trigger.
- Add the next step, such as Communication channel, Time delay, or Conditions.
- Click Save automation.
What happens next
After the scenario is saved, you can return to the Automation list and open See analytics for supported reporting.Send a payment link from an automation
If the order uses Doku or Xendit, you can insert the payment link directly into the message your automation sends, instead of copying it from the order by hand.
In the variable list these appear as Doku Payment Url and Xendit Payment Url. Pair them with the Order created trigger to send a payment link as soon as an order exists.
The link is only generated for orders that use a connected gateway. Orders on a custom payment method have no payment link, so the variable resolves to nothing.

