Skip to main content
POST
Cancel Sequence Enrollments

Cancel Sequence Enrollments

Cancel active or waiting enrollments in a single sequence. Provide exactly one target: Pausing enrollment only stops new entrants. Cancelling with cancelAll is what removes the contacts already mid-flight.

Request

string
required
Sequence ID.
boolean
Cancel every active or waiting enrollment in the sequence, regardless of how contacts entered it. Defaults to a dry run unless you set dryRun to false.
string
Subscriber ID to cancel in this sequence.
array
Up to 500 subscriber IDs to cancel in this sequence. IDs that do not resolve come back in target.notFoundSubscriberIds. Defaults to a dry run unless you set dryRun to false.
string
Dot-path inside the token’s entry event properties, such as order.id or event.id. If omitted, the sequence’s enrollmentFieldPath is used.
array
Entry field values to match.
boolean
When true, returns matching enrollments without cancelling them. cancelAll, subscriberIds, and fieldValues default to a dry run unless you set dryRun to false. A single subscriberId cancels immediately.
string
Optional reason stored on cancelled enrollment tokens.

Paging through a large cancellation

Cancelling an enrollment emits a sequence.stopped event per contact, so each request cancels at most 1,000 enrollments. When the response reports remainingCount above zero, send the same request again until it reaches zero.

Responses