Skip to main content
POST
cURL
Activate an add-on on a subscription. Charges a prorated amount for the current billing period. An add-on that the subscription’s plan version does not sell is rejected with addon_unavailable.

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
default:2026-08-27

API version used by this reference. Send this header to select this contract explicitly.

Path Parameters

id
string
required

Body

application/json
addonId
string
required
Minimum string length: 1
successUrl
string<uri>

Where the customer returns after paying. When it is set and the subscription has no saved payment method, or the saved method is declined or asks for authentication, the response has status requires_checkout and a checkoutUrl where the customer pays this purchase and saves the method in one step. Without it, the request is rejected in both cases. A saved method is always charged directly first, and a payment that fails for any other reason is rejected either way.

Response

Success

addonId
string
required
status
enum<string>
required

active when the add-on is active. processing when the payment method confirms later: the add-on is activated once the payment is confirmed, and stays inactive if it is declined. requires_checkout when successUrl was sent and the subscription has no saved payment method or the saved one was declined: the add-on is activated once the customer pays at checkoutUrl.

Available options:
active,
processing,
requires_checkout
proratedCharge
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
object
string
required
Allowed value: "subscription_addon"
livemode
boolean
required
checkoutUrl
string

Hosted checkout where the customer pays the purchase and saves the payment method. Present only when status is requires_checkout.