v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-015891,4406.1 MB

Cancel a schedule

Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.

post/v1/subscription_schedules/{schedule}/cancel

Path parameters

schedulestring required

Response

Successful response.

canceled_atinteger nullable

Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.

completed_atinteger nullable

Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.

createdinteger required

Time at which the object was created. Measured in seconds since the Unix epoch.

customer_accountstring nullable

ID of the account who owns the subscription schedule.

end_behavior'cancel' | 'none' | 'release' | 'renew' required

Behavior of the subscription schedule and underlying subscription when it ends. Possible values are release or cancel with the default being release. release will end the subscription schedule and keep the underlying subscription running. cancel will end the subscription schedule and cancel the underlying subscription.

idstring required

Unique identifier for the object.

livemodeboolean required

If the object exists in live mode, the value is true. If the object exists in test mode, the value is false.

metadataobject nullable

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

object'subscription_schedule' required

String representing the object's type. Objects of the same type share the same value.

released_atinteger nullable

Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.

released_subscriptionstring nullable

ID of the subscription once managed by the subscription schedule (if it is released).

status'active' | 'canceled' | 'completed' | 'not_started' | 'released' required

The present status of the subscription schedule. Possible values are not_started, active, completed, released, and canceled. You can read more about the different states in our behavior guide.