v1

latestOpenAPI 3.0.32026-07-1336286494.8 KB
api

post/api/subscriptions/{subscription_id}/addons/{addon_id}/cancel/

Path parameters

addon_idstring required

The ID of the addon within the subscription update.

subscription_idstring required

The ID of the subscription to update.

Request body

flat_fee_behavior'refund' | 'charge_prorated' | 'charge_full' | 'null' nullable

When canceling a subscription, the behavior used to calculate the flat fee. If null or not provided, the charge's default behavior will be used according to the subscription's start and end dates. If charge_full, the full flat fee will be charged, regardless of the duration of the subscription. If refund, the flat fee will not be charged. If charge_prorated, the prorated flat fee will be charged.

  • refund - Refund
  • charge_prorated - Prorate
  • charge_full - Charge Full
usage_behavior'bill_full' | 'bill_none'

If bill_full, current usage will be billed on the invoice. If bill_none, current unbilled usage will be dropped from the invoice. Defaults to bill_full.

  • bill_full - Bill Full
  • bill_none - Bill None
invoicing_behavior'add_to_next_invoice' | 'invoice_now'

Whether to invoice now or invoice at the end of the billing period. Defaults to invoice now.

  • add_to_next_invoice - Add to Next Invoice
  • invoice_now - Invoice Now

Response

addon_subscription_idstring required
start_datestring date-time required

The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.

end_datestring date-time required

The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.

fully_billedboolean required
auto_renewboolean required

Whether the subscription automatically renews. Defaults to true.

metadataobject required