Theme switcher

Create Termination Request

Header Parameters

Business-Entity-Idstring Required

Unique identifier for the business entity. Required to scope the request to the correct organizational context.

Max length
50
Pattern
^[A-Za-z0-9-]+$
Idempotency-Keystring Required

Unique idempotency key to ensure safe retry of this non-idempotent POST operation. Provide the same UUID on retries of the same logical termination request to receive the same response without duplicate processing on the server.

X-Request-Idstring

Optional correlation ID associated with the request

Authorizationstring

Body Parameters

consumer_idstring Required

Unique identifier (UUID v4) for the consumer whose plans are being terminated. This ID must match an existing consumer with active plans.

modestring Required

Operation mode for the termination request. PREVIEW validates the request and returns impact analysis without executing the termination (dry-run). EXECUTE validates and processes the termination request, creating the actual termination.

selected_plan_idsarray

List of selected plan IDs to terminate. Can be empty if selected_bundle_ids or terminate_all_plans is provided instead. At least one of selected_plan_ids, selected_bundle_ids, or terminate_all_plans must be specified (cross-field validation enforced by API, not schema).

Max items
100

Show child attributes

selected_bundle_idsarray

List of selected bundle IDs to terminate. Can be empty if selected_plan_ids or terminate_all_plans is provided instead. At least one of selected_plan_ids, selected_bundle_ids, or terminate_all_plans must be specified (cross-field validation enforced by API, not schema).

Max items
50

Show child attributes

termination_datestring Required

Requested termination date (ISO 8601 format)

reason_codestring Required

Termination reason code

notesstring

Optional notes about the termination

Max length
1000
terminate_all_plansboolean

Whether to terminate all plans for the consumer. When true, selected_plan_ids and selected_bundle_ids are ignored. At least one of selected_plan_ids, selected_bundle_ids, or terminate_all_plans must be specified (cross-field validation enforced by API, not schema).

Default value
false
processing_modestring

Processing mode for the termination request. SYNCHRONOUS processes the termination immediately and returns the result in the response. ASYNCHRONOUS queues the termination for background processing and returns immediately with PENDING status. Defaults to SYNCHRONOUS if not specified.

Default value
SYNCHRONOUS

Response

200
Object
Preview generated successfully (mode=PREVIEW). Returns validation results, affected plans, dependents, and financial impact without executing the termination.

Response Attributes

is_validboolean Required

Indicates whether the termination request would be valid if executed. When false, validation_errors will contain specific reasons why the request cannot be processed.

validation_errorsarray Required

Validation errors that would prevent the termination from being executed. Only populated when is_valid is false.

Max items
20
warningsarray Required

Non-blocking warnings about the termination impact. These do not prevent execution but inform the user of important consequences such as dependent coverage loss or mid-period termination fees.

Max items
20

Show child attributes

affected_plansarray Required

Plans that would be terminated if this request is executed.

Max items
50

Show child attributes

affected_dependentsarray

Dependents who would lose coverage if this termination is executed. Helps users understand the full impact on family members.

Max items
50

Show child attributes

financial_impactobject Required

Show child attributes

201
Object
Termination request created and processed successfully (mode=EXECUTE). The termination has been executed and the specified plans have been terminated.

Response Attributes

termination_request_idstring Required

Unique identifier for the termination request

consumer_idstring Required

Unique identifier (UUID v4) for the consumer whose plans were terminated. Matches the consumer_id from the request.

statusstring Required

Current processing status of the termination request. COMPLETED indicates successful termination, PENDING means queued for async processing, PROCESSING indicates active execution, and FAILED means the request encountered an error. Check detail in error responses for failure reasons.

termination_datestring Required

Termination date (ISO 8601 format)

terminated_plansarray

Plans that were terminated

Min items
1
Max items
100

Show child attributes

confirmation_numberstring Required

Confirmation number for the termination. Can be provided to customer service for reference.

created_atstring Required

Timestamp when the request was created (RFC 3339 format in UTC)

completed_atstring

Timestamp when the request was completed (RFC 3339 format in UTC)

allocation_jobs_scheduledboolean

Indicates whether background jobs for premium allocation adjustments were scheduled following this termination. When true, premium refunds or adjustments will be processed asynchronously. This is typically true for mid-period terminations requiring prorated refunds.

Default value
false
_linksobject Required

Hypermedia links for navigation and related actions

Show child attributes

400
Object
Bad request - Invalid request body, parameters, or business validation failed

Response Attributes

typestring
Nullable:
True
titlestring
Nullable:
True
statusinteger
Nullable:
True
detailstring
Nullable:
True
instancestring
Nullable:
True
401
Object
Unauthorized - Authentication failure

Response Attributes

typestring
Nullable:
True
titlestring
Nullable:
True
statusinteger
Nullable:
True
detailstring
Nullable:
True
instancestring
Nullable:
True
403
Object
Forbidden - Not allowed to create termination requests

Response Attributes

typestring
Nullable:
True
titlestring
Nullable:
True
statusinteger
Nullable:
True
detailstring
Nullable:
True
instancestring
Nullable:
True
404
Object
Not found - Requested resource not found

Response Attributes

typestring
Nullable:
True
titlestring
Nullable:
True
statusinteger
Nullable:
True
detailstring
Nullable:
True
instancestring
Nullable:
True
500
Object
Internal server error

Response Attributes

typestring
Nullable:
True
titlestring
Nullable:
True
statusinteger
Nullable:
True
detailstring
Nullable:
True
instancestring
Nullable:
True
default
Object
Unexpected error

Response Attributes

typestring
Nullable:
True
titlestring
Nullable:
True
statusinteger
Nullable:
True
detailstring
Nullable:
True
instancestring
Nullable:
True
Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?
View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot