Skip to main content
Use this page when you want an automation to start from a Commerce order event.

Overview

Use the Commerce trigger family for order events. Select an event during setup below.

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

1

Choose the Commerce event

  1. Click Trigger.
  2. Choose Commerce.
  3. Select one trigger option:
    • Order created
    • Order fulfilled
    • Order paid
    • Order refunded
    • Order cancelled
Commerce trigger picker showing created, fulfilled, paid, refunded, and cancelled order events
2

Save and build the scenario

  1. Save the trigger.
  2. Add the next step, such as Communication channel, Time delay, or Conditions.
  3. 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. 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.