Cancel an active subscription immediately or schedule cancellation at period end.
API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.
The unique identifier of the subscription
Subscription cancellation options
The mode of cancellation (immediate or scheduled), default can be configured in the store billing settings.
immediate, scheduled "immediate"
The action to execute when canceling (cancel or pause) when mode is scheduled, ignored when mode is immediate or not provided
cancel, pause "cancel"
Successfully canceled a subscription
Unique identifier for the object.
String representing the environment.
test, prod, sandbox String representing the object's type. Objects of the same type share the same value.
"subscription"
The product associated with the subscription.
The customer who owns the subscription.
The method used for collecting payments for the subscription.
"charge_automatically"
The current status of the subscription.
active, canceled, unpaid, paused, trialing, scheduled_cancel "active"
The date and time when the subscription was created.
"2024-01-01T00:00:00Z"
The date and time when the subscription was last updated.
"2024-09-12T12:34:56Z"
Subscription items.
The ID of the last paid transaction.
"tran_3e6Z6TzvHKdsjEgXnGDEp0"
The last paid transaction.
The date of the last paid transaction.
"2024-09-12T12:34:56Z"
The date when the next subscription transaction will be charged.
"2024-09-12T12:34:56Z"
The start date of the current subscription period.
"2024-09-12T12:34:56Z"
The end date of the current subscription period.
"2024-09-12T12:34:56Z"
The date and time when the subscription was canceled, if applicable.
"2024-09-12T12:34:56Z"
The discount code applied to the subscription, if any.