Skip to navigation

Clear Scheduled Pause

View as Markdown

Clear a scheduled pause from a subscription.

Removes any pending pause_at_end scheduling without pausing the subscription. The subscription continues as normal.

Use this endpoint when a customer decides not to pause their subscription after having previously scheduled a pause at period end.

Works for both User and API Key authentication. Account access is automatically validated via endpoint dependency.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

subscription_idstringRequired
account_idstringRequired

Response

Successful Response
idstring
stateenum

The possible states of a subscription.

Most are self-explanatory: it starts INCOMPLETE (created, not yet paid for), or TRIALING / SCHEDULED, becomes ACTIVE once paid, and can end up PAUSED, PAST_DUE (a payment failed), or CANCELLED.

ACTIVE_UNSETTLED is the unusual one, added for slow bank rails like SEPA where the money does not arrive until days later. It means: “we already let the customer in at checkout, but their payment has not actually settled yet.” A subscription is created straight into this state — nothing ever moves INTO it from another state. It has exactly two ways out: it becomes ACTIVE if the payment settles, or CANCELLED if the payment fails, times out, or is later reversed (a chargeback).

INCOMPLETE_EXPIRED is terminal, and is where a subscription ends up when its first payment never completed. It exists to say something CANCELLED cannot: this subscription was never really bought. A cancellation is a customer leaving something they had; an expiry is a purchase that never happened. Keeping the two apart stops “never converted” being counted as churn, and — because it is terminal — takes the subscription out of the duplicate-product guard, so the customer is free to try that purchase again.

currencyenum
ISO 4217 currency codes.
descriptionstring or null
current_period_startdatetime
current_period_enddatetime
trial_startdatetime or null
trial_enddatetime or null
created_atdatetime
updated_atdatetime
itemslist of objects
customerobject
collection_methodenum
Allowed values:
payment_methodobject or null
Payment method API response model.
notestring or nullOptional

Free-text note attached to this subscription. Additive to description: read/written inline here as a convenience, and backed by the same /notes record (one note per object).

billing_intervalstring or nullOptional
billing_interval_countinteger or nullOptional
billing_anchor_dayinteger or nullOptional

Day of month (1-31) month and year periods renew on. A month without that day renews on its last day, and the next period returns to the anchor (Jan 31 -> Feb 28 -> Mar 31). Null: each period steps from the last end.

paused_atdatetime or nullOptional
resumes_atdatetime or nullOptional
pause_at_endboolean or nullOptional
cancel_at_period_endboolean or nullOptional
cancel_atdatetime or nullOptional
cancellation_refund_optionenum or nullOptional

Refund options when cancelling a subscription.

  • NONE: Cancel with no refund (current behavior)
  • FULL: Refund full current period amount
  • PRORATED: Refund unused portion of current period
  • CANCEL_UNPAID: Use dunning_end_behavior for unpaid invoices
Allowed values:
cancellation_detailsobject or nullOptional

Details about why a subscription was cancelled.

All fields are optional — callers can provide any combination. Stored as JSONB on the subscription entity.

net_dinteger or nullOptional
statement_descriptor_suffixstring or nullOptional
Statement descriptor suffix for this subscription.
statement_descriptor_overridesmap from strings to strings or maps from strings to strings or nullOptional

FULL statement descriptor override map, keyed by processor id (proc_…). When a charge runs on a keyed processor, its value is sent as the whole descriptor and takes precedence over the processor’s own statement descriptor and statement descriptor prefix. Two shapes are accepted. Flat: {“proc_…”: “DESCRIPTOR”} applies to every charge. By charge type: {“one_time”: {“proc_…”: ”…”}, “trial_conversion”: {…}, “recurring”: {…}} picks the descriptor by the kind of charge: one_time is a checkout charge that starts no subscription; trial_conversion is the first paid renewal of a subscription that had a trial, including its retries; recurring is every other subscription charge, including the first charge of a subscription with no trial. When the charge’s type has no entry for the processor, a trial_conversion charge uses the recurring entry, then the processor’s own statement descriptor; a one_time charge uses the processor’s own statement descriptor, else the prefix (the processor’s statement descriptor prefix, else the account prefix) plus the checkout’s suffix, and never the recurring entry. The two shapes cannot be mixed, and only one_time, trial_conversion and recurring are valid charge types (422 otherwise). Supported processors: Adyen, Checkout.com, Authorize.net, Airwallex and NMI. Stripe, PayPal, Braintree and other processors are not allowed as keys (422). Caveats: Authorize.net applies it only on TSYS/EVO-backed accounts; Airwallex applies it only after dynamic descriptors are enabled on the Airwallex account; NMI applies it only when custom descriptors are allowed on the processor. The processor receives at most 22 characters of each value.

total_billing_cyclesinteger or nullOptional
remaining_billing_cyclesinteger or nullOptional
contract_auto_renewboolean or nullOptional
discountobject or nullOptional
Response schema for discount data.
last_successful_processor_idstring or nullOptional

ID of the processor that last successfully charged this subscription. Historical record only — the next charge is routed by the payment method’s own processor attempt history, which may differ if the payment method has since changed.

processor_route_idstring or nullOptional

The processor route pinned to this subscription, or null when none is. While the account’s routing engine is on and the route is active, its card charges go through this route ahead of routing rules and the account default, except an invoice’s that has its own route (Invoice.processor_route_id). Set at create (processor_route_id) or with POST /subscriptions/{id}/route.

metadatamap from strings to any or nullOptional
split_from_subscriptionstring or nullOptional

ID of the subscription this was split from (cross-interval plan change).

split_to_subscriptionslist of strings or nullOptional

IDs of subscriptions created from this one (cross-interval plan change).

pending_plan_changeobject or nullOptional
Pending plan change scheduled for period end. Present when a deferred plan change is awaiting execution.
custom_fieldsmap from strings to any or nullOptional

Custom field values. Only included when expand=custom_fields is specified.

Errors

422
Unprocessable Entity Error