Automation → Create
AI-generatedSummary
Create a new automation in adaPay specifying its name, optional description, triggering events, allowed API actions, and activation status.
Inputs
- Name (required) — Name of the automation to create.
- Description — Optional description of the automation.
- Events — Optional list of events that trigger this automation, e.g., charge.created or customer.updated.
- Actions (required) — List of API actions the automation is permitted to perform, such as charge.create or customer.get.
- Is Active — Boolean indicating if the automation should be active immediately upon creation; defaults to true.
Output shape
a single record
Returns the full JSON response from adaPay API representing the created automation, including its properties and identifiers.
Examples
Example 1: Create an active automation named 'New Order Process' triggered by 'charge.created' event, allowed to perform 'create charge' action.
Set 'Name' to 'New Order Process', select 'Charge Created' under 'Events', select 'Create Charge' under 'Actions', and ensure 'Is Active' is true.