Skip to main content
POST
Cancel Automation Enrollment

Authorizations

Authorization
string
header
required

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Headers

Idempotency-Key
string

A unique key that makes this request safe to retry. See Idempotent requests.

Maximum string length: 255
Example:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Example:

"2026-11-05-1"

Path Parameters

id
string
required

Automation enrollment ID, prefixed atoe_.

Response

Automation enrollment canceled

account_id
string
required

ID of the account the automation belongs to, prefixed biz_.

Example:

"biz_xxxxxxxxxxxxxx"

automation_id
string
required

ID of the automation, prefixed ato_.

Example:

"ato_xxxxxxxxxxxxxx"

created_at
string
required

When the member enrolled, as an ISO 8601 timestamp.

Example:

"2026-01-01T12:00:00.000Z"

ended_at
string | null
required

When the enrollment ended, as an ISO 8601 timestamp. null while it's active.

Example:

"2026-01-01T12:00:00.000Z"

id
string
required

Automation enrollment ID, prefixed atoe_.

Example:

"atoe_xxxxxxxxxxxxxx"

member_id
string
required

ID of the member in the automation, prefixed mber_.

Example:

"mber_xxxxxxxxxxxxxx"

next_run_at
string | null
required

When that step runs for this member, as an ISO 8601 timestamp. null once the enrollment ends.

Example:

"2026-01-01T12:00:00.000Z"

next_step_id
string | null
required

ID of that step in the member's version, prefixed atos_. null once the enrollment ends.

Example:

"atos_xxxxxxxxxxxxxx"

next_step_key
integer | null
required

The key of the step the member is waiting on, in their version. null once the enrollment ends.

Example:

1

status
enum<string>
required

active while the member moves through the automation, completed after its last step, canceled when the account canceled the enrollment or stopped or deleted the automation.

Available options:
active,
completed,
canceled
Example:

"active"

trigger_event
enum<string> | null
required

The webhook event that enrolled the member. null when POST /automations/{id}/trigger enrolled them.

Available options:
payment.succeeded,
payment.failed,
membership.activated,
membership.trial_ending_soon,
member.created,
invoice.created,
invoice.paid,
invoice.past_due,
refund.created,
dispute.created,
resolution_center_case.created,
resolution_center_case.decided,
course_lesson_interaction.completed,
null
Example:

"payment.succeeded"

trigger_resource_id
string | null
required

ID of the record the triggering event was about, such as a pay_ payment or mem_ membership. null when a trigger request enrolled them.

Example:

"mber_xxxxxxxxxxxxxx"

updated_at
string
required

When the enrollment last changed, as an ISO 8601 timestamp.

Example:

"2026-01-01T12:00:00.000Z"

user_id
string | null
required

ID of the member's user, prefixed user_. null when the member is another business.

Example:

"user_xxxxxxxxxxxxxx"

version
integer
required

The automation version the member is on. It changes only when a publish moves members to the new version.

Example:

1