Create an order paid trigger
POST /automations/{automationUuid}/automation_triggers/order_paid
/automations/{automationUuid}/automation_triggers/order_paidStarts the automation for the customer when an order of the chosen store is marked as paid.
When to use: For payment confirmations, thank-you messages or invoices sent as soon as the money is received.
When not to use: To react only when specific products or categories were bought, use create_trigger_buy_a_product (it fires on the same event). For orders still waiting for payment, use create_trigger_payment_reminder. For a message when the order is placed, use create_trigger_order_processed.
Side effects: Fires when the order is paid (for example with pay_order). The order is attached to the run, and it must belong to a customer linked to a contact of the audience. Works only while the automation is active and the trigger is enabled, and only for contacts with a confirmed subscription. A contact can enter again after finishing only if workflow_repeat is true and 24 hours have passed.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
The new AutomationTrigger resource
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_triggers/order_paid" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "store": "/entity/1", "workflow_repeat": true }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "automation": "/entity/1", "trigger_type": "trigger.admin.manual", "active": true, "workflow_repeat": true, "trigger": null, "count_automation_queues": 0, "count_completed_automation_queues": 0, "count_queued_automation_queues": 0, "count_canceled_automation_queues": 0}