Skip to main content

Subscriptions

The subscription lifecycle — trial, activation, pause, cancellation — and plan changes, with the proration each one produces.

Families on this page​

FamilyToolsreadwritedestructive
subscriptions — Subscriptions16484
plan-changes — Plan changes11641
subscription-changes — Subscription changes5311

subscriptions​

ToolKindPermissionEndpointWhat it does
billing_billing_accounts_subscriptionsreadsubscriptions.listGET /v1/billing_accounts/:id/subscriptionsList the subscriptions of one billing account.
billing_subscriptions_listreadsubscriptions.listGET /v1/subscriptionsList subscriptions.
billing_subscriptions_getreadsubscriptions.showGET /v1/subscriptions/:idFetch one subscription with its items and current period.
billing_subscriptions_createwritesubscriptions.createPOST /v1/subscriptionsCreate a subscription.
billing_subscriptions_upsertwritesubscriptions.createPUT /v1/subscriptionsCreate or update a subscription matched on id → external_id.
billing_subscriptions_updatewritesubscriptions.updatePATCH /v1/subscriptions/:idUpdate a subscription in place.
billing_subscriptions_deletedestructivesubscriptions.deleteDELETE /v1/subscriptions/:idSoft-delete a subscription.
billing_subscriptions_activatewritesubscriptions.updatePOST /v1/subscriptions/:id/activateActivate a draft/confirmed subscription and open its first billing period.
billing_subscriptions_canceldestructivesubscriptions.cancelPOST /v1/subscriptions/:id/cancelCancel a subscription.
billing_subscriptions_pausedestructivesubscriptions.pausePOST /v1/subscriptions/:id/pausePause a subscription.
billing_subscriptions_resumewritesubscriptions.resumePOST /v1/subscriptions/:id/resumeResume a paused subscription and reopen billing.
billing_subscriptions_revert_to_confirmeddestructivesubscriptions.updatePOST /v1/subscriptions/:id/revert-to-confirmedSend an active subscription back to confirmed, undoing an activation.
billing_subscriptions_change_planwritesubscriptions.updatePOST /v1/subscriptions/:id/change-planMove a subscription to another plan, computing proration: an upgrade charges the prorated difference now, a downgrade credits the next invoice.
billing_subscriptions_items_listreadsubscriptions.showGET /v1/subscriptions/:id/itemsList the items of a subscription.
billing_subscriptions_items_changewritesubscriptions.updatePOST /v1/subscriptions/:id/itemsApply up to 50 item operations to a subscription in one transaction, with proration.
billing_subscriptions_sync_plan_itemswritesubscriptions.updatePOST /v1/subscriptions/:id/sync-plan-itemsRe-align a subscription with its plan: adds items the plan gained and removes items it dropped.

plan-changes​

ToolKindPermissionEndpointWhat it does
billing_plan_changes_listreadplan-changes.listGET /v1/plan_changesList plan changes — the audit trail of every plan swap, with its proration.
billing_plan_changes_getreadplan-changes.showGET /v1/plan_changes/:idFetch one plan change with the proration it produced.
billing_plan_changes_executewritesubscriptions.updatePOST /v1/plan_changesExecute a plan change against the organization rules.
billing_plan_changes_statsreadplan-changes.listGET /v1/plan_changes/statsAggregate plan-change counts and amounts over the last days (default 30).
billing_plan_changes_config_getreadplan-changes.configGET /v1/plan_changes/configRead the organization plan-change policy: whether upgrades/downgrades are allowed, and how each is prorated and timed.
billing_plan_changes_config_updatewriteplan-changes.configPATCH /v1/plan_changes/configUpdate the organization plan-change policy.
billing_plan_changes_rules_listreadplan-changes.configGET /v1/plan_changes/rulesList the per-plan-pair rules that override the global policy — which moves are allowed, and with which discount or bonus.
billing_plan_changes_rules_getreadplan-changes.configGET /v1/plan_changes/rules/:idFetch one plan-change rule.
billing_plan_changes_rules_createwriteplan-changes.configPOST /v1/plan_changes/rulesCreate a plan-change rule.
billing_plan_changes_rules_updatewriteplan-changes.configPATCH /v1/plan_changes/rules/:idUpdate a plan-change rule.
billing_plan_changes_rules_deletedestructiveplan-changes.configDELETE /v1/plan_changes/rules/:idDelete a plan-change rule; the pair falls back to the global policy.

subscription-changes​

ToolKindPermissionEndpointWhat it does
billing_subscription_item_changes_listreadsubscription-changes.listGET /v1/subscription_item_changesList item changes applied to subscriptions, with the proration each produced and who initiated it.
billing_subscription_item_changes_getreadsubscription-changes.showGET /v1/subscription_item_changes/:idFetch one subscription item change.
billing_subscription_item_changes_canceldestructivesubscription-changes.updateDELETE /v1/subscription_item_changes/:idCancel a scheduled item change before it takes effect.
billing_subscription_changes_config_getreadsubscription-changes.listGET /v1/subscription_changes/configRead the organization item-change policy: which item operations are allowed, how each is prorated and timed, and what the customer portal may do by itself.
billing_subscription_changes_config_updatewritesubscription-changes.updatePUT /v1/subscription_changes/configReplace the organization item-change policy.

The fields of each resource are in the API reference and in billing_schemas_get.

A tool you cannot run is not listed by tools/list at all. If one from this page is missing, see Authentication.