Skip to main content
POST
Cancel subscription

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Path Parameters

id
string
required

Subscription ID

Body

application/json

Cancel Subscription Request

cancellation_type
enum<string>
required
Available options:
immediate,
end_of_period,
scheduled_date
cancel_at
string<date-time>

CancelAt is the exact date/time when the subscription should be cancelled. Required for cancellation_type "scheduled_date"; optional for "immediate" (past dates only — backdated cancellation). For "scheduled_date", accepts both future dates (deferred cancellation) and past dates (backdated cancellation). For "immediate", accepts past/current dates only; use "scheduled_date" for future dates.

cancel_immediately_inovice_policy
enum<string>
Available options:
generate_invoice,
skip
proration_behavior
enum<string>
Available options:
create_prorations,
none
reason
string

Reason for cancellation (for audit and business intelligence)

Response

OK

cancellation_type
enum<string>
Available options:
immediate,
end_of_period,
scheduled_date
effective_date
string<date-time>
message
string

Response metadata

processed_at
string<date-time>
proration_details
object[]
proration_invoice
object
reason
string
status
enum<string>
Available options:
active,
paused,
cancelled,
incomplete,
trialing,
draft
subscription_id
string

Basic cancellation info

total_credit_amount
string