Subscription Status

WHITELABEL lets you manage subscription status directly through the API, without needing additional websites or applications. You can create, pause, resume, and cancel subscriptions.

Workflow

In the following workflow, you can find the different subscription statuses and how they can be updated.

Subscription lifecycle: CREATED to TRIALING or ACTIVE, with PAUSED, PAST_DUE, COMPLETED and CANCELED, plus a transversal ERROR state

A subscription in the trial phase behaves like an active one: it can be paused, it enters PAST_DUE on a failed charge and returns to TRIALING when a later charge succeeds. Any non-terminal status can be canceled, and a subscription created with initial_payment_validation: true goes straight from CREATED to CANCELED if the first payment fails.

Subscription status

Subscriptions can have the status described in the table below.

StatusDescription
CREATEDTransitory status while the initial payment hasn’t been processed yet. Only occurs when the subscription is created with initial_payment_validation: true.
ACTIVEThe subscription has been created with an associated customer and is already active.
TRIALINGThe subscription is inside a plan’s leading trial phase. Transitions to ACTIVE automatically once the trial ends.
PAST_DUEA recurring charge failed and the subscription is awaiting recovery. It keeps billing: the next successful charge returns it to ACTIVE, or to TRIALING if the trial phase is still running. See Retries, or Pix Automático for the fixed ladder a PIX_AUTOMATIC subscription recovers on instead.
PAUSEDThe subscription has been paused and can be reactivated.
COMPLETEDThe subscription is completed because it reached the end date and time.
CANCELEDSubscription canceled. See cancellation_source for what triggered it.
ERRORAn error occurred in the process.

If your subscriptions never enter PAST_DUE, the status is not enabled for your account yet: a failed recurring charge leaves the subscription in ACTIVE while the retries run. Contact your WHITELABEL representative to have it enabled.

Status transition matrix

Each cell shows what moves a subscription from the status in the row to the status in the column. N/A means the transition does not exist. COMPLETED and CANCELED are terminal: nothing leaves them.

From \ ToTRIALINGACTIVEPAST_DUEPAUSEDCOMPLETEDCANCELED
CREATEDFirst payment confirmed and the plan starts with a trial phaseFirst payment confirmedN/AN/AN/AFirst payment fails under initial_payment_validation, or the subscription is canceled
TRIALINGN/AThe trial phase endsA recurring charge fails¹The subscription is pausedbilling_cycles.total is reached or the availability window endsCanceled by you, by a plan cancellation, or by retries.cancel_on_exhausted_retries
ACTIVEA plan change lands inside a trial phaseN/AA recurring charge fails¹The subscription is pausedbilling_cycles.total is reached or the availability window endsCanceled by you, by a plan cancellation, or by retries.cancel_on_exhausted_retries
PAST_DUEA later charge succeeds while the trial phase is still runningA later charge succeedsN/AN/AThe availability window endsCanceled by you, or retries end without a successful payment and retries.cancel_on_exhausted_retries is true
PAUSEDResumed while the trial phase is still runningResumed after the trial phaseN/AN/AN/AThe subscription is canceled

¹ Only where PAST_DUE is enabled for the account; otherwise the subscription stays in its current status while the retries run.

ERROR sits outside this flow: it is reserved for processing failures and is not part of the normal lifecycle above.

Canceling a subscription

You can cancel a subscription in CREATED, ACTIVE, TRIALING, PAST_DUE and PAUSED, both through Cancel Subscription and from the dashboard. COMPLETED and CANCELED are terminal — canceling from either returns 400 INVALID_STATE, which is also what a repeated cancel on an already-canceled subscription returns.

The same endpoint can also schedule the cancellation for a future date or billing cycle instead of applying it immediately — see Cancel Subscription.