# The Subscription Object

## Attributes

This object represents a subscription that can be associated with a customer.

<Note>
**Fields WHITELABEL computes**

`billing_cycles.scheduling_date`, `retries.stopped`, `retries.attempts_made`, `retries.outcome` and `retries.next_retry_at` are computed by WHITELABEL from the subscription's own state. They are read-only: sending them is ignored on [Create Subscription](/reference/subscriptions/create-subscription) and on [Update Subscription](/reference/subscriptions/update-subscription), and the values you read back are always WHITELABEL's.
</Note>

<ParamField body="id" type="string">
  The unique identifier of the subscription (MAX 64 ; MIN 36).

  Example: 7304911d-5df9-429e-8488-ad41abea1a4c
</ParamField>

<ParamField body="name" type="string">
  The subscription name (MAX 255; MIN 3).

  Example: sub_001
</ParamField>

<ParamField body="description" type="string">
  The subscription description (MAX 255; MIN 3).

  Example: Servicio de streaming
</ParamField>

<ParamField body="account_id" type="string">
  The unique identifier of the account that will have the subscription plan available to use (MAX 64 ; MIN 36).

  Example: 2404911d-5df9-429e-8488-ad41abea1a4b
</ParamField>

<ParamField body="merchant_reference" type="string">
  Identification of the subscription plan (MAX 255; MIN 3).

  Example: 001_marzo_23
</ParamField>

<ParamField body="soft_descriptor" type="string">
  Statement descriptor shown on the cardholder's bank statement (MAX 255). When set, it is propagated to every rebill payment generated by the subscription engine. Length and formatting limits vary by provider; see [Statement descriptor on recurring payments](/docs/payment-features/subscriptions/soft-descriptor).

  Example: ACME SUBSCRIPTION
</ParamField>

<ParamField body="country" type="string">
  The subscription's country.

  Example: CO
</ParamField>

<ParamField body="status" type="enum">
  Status of the subscription.

  Possible values:
  - `CREATED` = Transitory status while the initial payment hasn't been processed yet. Only occurs when the subscription is created with `initial_payment_validation: true`; it transitions to `ACTIVE` once the first payment succeeds (or to `CANCELED` if it fails and retries are exhausted).
  - `ACTIVE` = The subscription has been created with an associated customer and is already active.
  - `TRIALING` = The subscription is inside a plan's leading trial phase (see `plan_id`/`current_phase`). Transitions to `ACTIVE` automatically once the trial ends — this is webhooked like any other status change.
  - `PAST_DUE` = A recurring charge failed and the subscription is awaiting recovery. It keeps billing and can still be canceled; the next successful charge returns it to `ACTIVE` — or to `TRIALING` if the trial phase is still running — and each transition is webhooked. If the status is not enabled for your account, a failed charge leaves the subscription in `ACTIVE` while the retries run instead. See [Retries](/docs/payment-features/subscriptions/retries).
  - `PAUSED` = The subscription has been paused and can be reactivated.
  - `COMPLETED` = The subscription is completed because it reached the end date and time.
  - `CANCELED` = Subscription canceled. See `cancellation_source` for what triggered it.
</ParamField>

<ParamField body="cancellation_source" type="enum">
  What caused the subscription to be canceled. Only set once the subscription reaches `CANCELED`; `null` otherwise.

  Possible values:
  - `MERCHANT` = You canceled the subscription, through [Cancel Subscription](/reference/subscriptions/cancel-subscription) or the dashboard.
  - `SYSTEM` = WHITELABEL canceled the subscription automatically. This includes a subscription created with `initial_payment_validation: true` whose first payment did not succeed.
  - `PLAN_CHANGE` = The subscription was replaced as part of a [plan change](/reference/subscriptions/change-subscription-plan). A new subscription continues the customer's billing under the new plan.
  - `RETRIES_EXHAUSTED` = Retries for a billing cycle ended without a successful payment while the subscription had `retries.cancel_on_exhausted_retries` set to `true`. See [Retries](/docs/payment-features/subscriptions/retries#canceling-a-subscription-when-retries-run-out).

  <Note>
  Treat this field as open-ended. New values can be introduced as WHITELABEL adds cancellation behaviors, so handle an unrecognized value gracefully rather than switching exhaustively over the list above. `RETRIES_EXHAUSTED` is the most recent addition.
  </Note>
</ParamField>

<ParamField body="plan_id" type="string">
  The unique identifier of the [plan](/reference/plans/the-plan-object) this subscription was created from, if any (MAX 64; MIN 36). Only present when the subscription is linked to a plan — absent (not `null`) for subscriptions created with a raw `amount`/`frequency` instead of a `plan_id`.

  Example: 00000000-0000-4000-8000-000000000001
</ParamField>

<ParamField body="plan_assigned_at" type="Timestamp">
  When the subscription is linked to a plan, the moment the plan was attached — at creation from a plan, migration onto a plan, or a plan change. Only present on plan-linked subscriptions.
</ParamField>

<ParamField body="previous_subscription_id" type="string">
  When this subscription was created by a [plan change](/reference/subscriptions/change-subscription-plan) (switching an existing subscription to a different plan), this is the `id` of the subscription it replaced. Only present in that case.

  Scheduled changes made with the `plan_change` object on [Update Subscription](/reference/subscriptions/update-subscription) apply in place and never set this field.
</ParamField>

<ParamField body="phases" type="array of objects">
  The linked plan's phase definitions, exactly as the plan declares them. Only present on plan-linked subscriptions whose plan has phases.

  This is the plan's ladder, not this subscriber's. Unlike `billing_phases` it includes the terminal `REGULAR` phase, and it is read from the plan rather than snapshotted at creation, so it reflects the plan as it stands today. On the `REGULAR` row `duration`, `frequency` and `amount` are all `null` — that phase runs until the subscription ends and its price resolves from the plan at every billing.

  Use `billing_phases` for what this subscription will actually be charged, and `phases` to describe the plan behind it.

  <Expandable title="properties">
    <ParamField body="order" type="int" />
    <ParamField body="name" type="string" />
    <ParamField body="type" type="enum">
      `TRIAL` or `REGULAR`.
    </ParamField>
    <ParamField body="duration" type="object">
      How long the phase lasts, as `type` and `value`. `null` on the `REGULAR` phase.
    </ParamField>
    <ParamField body="frequency" type="object">
      How often the phase bills, as `type` and `value`. `null` on the `REGULAR` phase.
    </ParamField>
    <ParamField body="amount" type="object">
      The phase price, as `currency` and `value`. `null` on the `REGULAR` phase.
    </ParamField>
    <ParamField body="total_payments" type="int">
      How many charges the phase covers. `null` on the `REGULAR` phase.
    </ParamField>
    <ParamField body="country_prices" type="array of objects">
      Per-country overrides of the phase price, each with a `country` and an `amount`. Empty when the phase has none.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="current_phase" type="enum">
  Which phase of the linked plan's trial ladder the subscription is currently in. Only present on plan-linked subscriptions. Absent as well when the subscription was created by a [plan change](/reference/subscriptions/change-subscription-plan) with `skip_trial: true` — that subscription is plan-linked and its plan has phases, but it never enters the ladder.

  Possible values: `TRIAL`, `REGULAR`.
</ParamField>

<ParamField body="current_phase_end" type="Timestamp">
  When the phase named by `current_phase` hands over to the next one — for a subscription in its trial, the moment it switches to the regular price. It is the end of the last billing period the phase covers, so on the final period of a trial it equals `current_period_end`.

  `null` on subscriptions that are not inside a phase: those with no plan, and plan-linked ones that already left the ladder and are on the plan's regular price.

  Example: 2023-03-16T20:00:00.786342Z
</ParamField>

<ParamField body="billing_phases" type="array of objects">
  The plan's leading TRIAL phases, snapshotted for this subscriber's country at creation time. Only present on plan-linked subscriptions whose plan has phases. Absent as well when the subscription was created by a [plan change](/reference/subscriptions/change-subscription-plan) with `skip_trial: true` — that subscription is plan-linked and its plan has phases, but it never enters the ladder.

  <Warning>**The terminal REGULAR phase is never included here.** Its price isn't pinned at creation — it resolves from the plan at every billing, so plan price edits reach running subscriptions. When `current_phase` is `REGULAR`, the ladder is exhausted and the subscription bills the plan's regular price; there's no corresponding row in this array for that.</Warning>

  <Expandable title="properties">
    <ParamField body="order" type="int" />
    <ParamField body="type" type="enum">
      Always `TRIAL` — see the note above.
    </ParamField>
    <ParamField body="name" type="string">
      Mirrors the phase's own required `name`.
    </ParamField>
    <ParamField body="amount" type="object">
      <Expandable title="properties">
        <ParamField body="currency" type="string" />
        <ParamField body="value" type="number" />
      </Expandable>
    </ParamField>
    <ParamField body="frequency" type="object">
      <Expandable title="properties">
        <ParamField body="type" type="enum">
          `DAY`, `WEEK`, `MONTH`, or `YEAR`.
        </ParamField>
        <ParamField body="value" type="int" />
      </Expandable>
    </ParamField>
    <ParamField body="start_cycle" type="int" />
    <ParamField body="end_cycle" type="int" />
  </Expandable>
</ParamField>

<ParamField body="amount" type="object">
  Specifies the subscription amount object, with the value and currency.

  <Expandable title="properties">
    <ParamField body="currency" type="enum">
      The currency used to make the payment (MAX 3; MIN 3; <a href="/reference/country-reference">ISO 4217</a>).

      Possible enum values: Check the <a href="/reference/country-reference">Country reference</a>.
    </ParamField>

    <ParamField body="value" type="number">
      The payment amount (multiple of 0.0001).

      Example: 12100.00
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="frequency" type="object">
  The frequency defined for the payment subscription. If not set, defaults are MONTH for type and 1 for value.

  <Expandable title="properties">
    <ParamField body="type" type="enum">
      The type of interval the subscription will have in time. If not set, always MONTH by default.

      Possible enum values: `DAY`, `WEEK`, `MONTH`, or `YEAR`.

      On a subscription whose `payment_method.type` is `PIX_AUTOMATIC`, only `WEEK`, `MONTH` and `YEAR` with `value` `1` are accepted — every other combination is rejected with `400 INVALID_PARAMETERS`. See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#accepted-billing-cadences).
    </ParamField>

    <ParamField body="value" type="int">
      The value between each interval the subscription will have in time. If not set, always 1 by default.

      Example: 1
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="billing_cycles" type="object">
  Specifies the billing_cycles object.

  <Expandable title="properties">
    <ParamField body="total" type="number">
      Total amount of billing cycles.

      Example: 10
    </ParamField>

    <ParamField body="current" type="number">
      The **next** billing cycle to be charged — not the cycle currently in progress.

      Subscriptions are billed in advance: the charge for a cycle fires at the start of the period it pays for, and the counter moves on as soon as that charge is dispatched. While the subscriber is inside the period paid for by cycle N, this field therefore already reads `N + 1`. The cycle in progress is `current - 1`. One exception: the counter stops on the last cycle. Once `current` reaches `billing_cycles.total` — or `availability.finish_at` passes — the subscription is marked `COMPLETED` and `current` is frozen at `total` for the whole of that final period, so there the cycle in progress is `current`, not `current - 1`.

      A subscription created with a two-cycle trial reads `current: 2` for the whole of the first trial period, and `current: 3` during the second — the trial is still running even though `current` has passed the trial cycle count. `current_period_start` and `current_period_end` tell you *when* the current period runs; they do not tell you whether the subscription is still in its trial. To locate the trial, compare the cycle in progress (`current - 1`) against `trial_period.billing_cycles` — legacy `trial_period` subscriptions stay `ACTIVE` and carry no `current_phase` while trialing.

      Because the counter advances when a charge is dispatched rather than when it succeeds, a failed cycle never rolls it back — `current` has already moved on before the first retry runs, and it stays there whether or not the retries eventually collect.

      The first cycle is the other exception: when `initial_payment_validation` is `true`, its counter moves only once that first charge succeeds. While the charge is pending or being retried, `current` stays `1`; if it is never collected the subscription is cancelled with `current` still `1`. From the second cycle onward the dispatch-time rule applies.

      Example: 2
    </ParamField>

    <ParamField body="next_at" type="Timestamp">
      The date of the next payment for the subscription. Always present. When `current_period_end` is returned it is this same instant.

      Example: 2023-02-16T20:00:00.786342Z
    </ParamField>

    <ParamField body="scheduling_date" type="Timestamp">
      When the debit instruction is handed to the Pix rail — exactly `next_at` minus four days. Present only on `PIX_AUTOMATIC` subscriptions that WHITELABEL executes, and only for organizations the four-day scheduling lead is enabled for; absent — not `null` — everywhere else. Returned by [Retrieve Subscription](/reference/subscriptions/retrieve-subscription), on [List Subscriptions](/reference/subscriptions/list-subscriptions) items, and on subscription webhook payloads. See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).

      Example: 2026-11-27T00:00:00Z
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="current_period_start" type="Timestamp">
  The start of the billing period currently in progress: one billing cadence before `current_period_end`. It is derived from the schedule, not from payments, so a subscription reports its window from the moment it is created, before any charge has been attempted.

  The cadence used is the one that scheduled the window. Inside a plan phase — a trial, an introductory price, any phase of a [plan](/reference/plans/the-plan-object) — that is the phase's own step, so a 14-day trial reports 14-day periods even when the plan bills monthly. On the first cycle after a phase ends the window still measures the cadence of the phase that scheduled it.

  It never falls before `availability.start_at`: the first period of a subscription starts when the subscription does.

  Returned on [Retrieve Subscription](/reference/subscriptions/retrieve-subscription), on [List Subscriptions](/reference/subscriptions/list-subscriptions) and on subscription webhook payloads.

  Terminal subscriptions report their final billing period rather than going `null` — a `CANCELED` or `COMPLETED` subscription keeps the window it last had, the same way `PAUSED` freezes its window instead of advancing it. `null`, together with `current_period_end`, only when the subscription has no recurring cadence at all. On REST responses the keys may be omitted entirely instead of sent as `null` — treat null and missing as the same thing.

  Example: 2023-01-16T20:00:00.912480Z
</ParamField>

<ParamField body="current_period_end" type="Timestamp">
  The end of the billing period currently in progress, which is also when the next charge is scheduled. Always equal to `billing_cycles.next_at`.

  This pair describes the period the subscription is **scheduled** into, not one that is necessarily paid for: if a cycle's charge failed and its retries are still running, the window has already moved to the period that charge was meant to open. A `PAUSED` subscription keeps the window it was paused inside rather than advancing it, and a `CANCELED` or `COMPLETED` subscription keeps its final window rather than clearing it — in both cases `current_period_end` can be well in the past, so check `status` before reading it as an upcoming date.

  `null` under the same conditions as `current_period_start`; the two are always returned together.

  Example: 2023-02-16T20:00:00.786342Z
</ParamField>

<ParamField body="billing_date" type="object">
  [Optional] Specifies the billing_date object. Mutually exclusive with the frequency object.

  <Expandable title="properties">
    <ParamField body="type" type="string">
      The type of billing_date the subscription will have in time. PREPAID, POSTDATE, DAY. If not set, the creation date for the plan will be set by default.

      Example: DAY
    </ParamField>

    <ParamField body="day" type="number">
      The day of the month to charge the subscription if the type is set to DAY. Always 1 by default.

      Example: 2
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="customer_payer" type="object">
  Specifies the customer_payer object.

  <Expandable title="properties">
    <ParamField body="id*" type="string">
      The unique identifier of the customer (MAX 255; MIN 3).

      Example: 3t04911d-5df9-429e-8488-ad41abea1a2c
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="payment_method" type="object">
  Specifies the payment_method object.

  <Expandable title="properties">
    <ParamField body="type" type="enum">
      Type of the payment method.

      Possible enum values: `CARD`, `PAYPAL_ENROLLMENT`, `PIX_AUTOMATIC`

      `PIX_AUTOMATIC` bills a Brazilian Pix Automático mandate, is matched case-insensitively, and accepts only the cadences the mandate can express — see [Pix Automático](/docs/payment-features/subscriptions/pix-automatico).
    </ParamField>

    <ParamField body="token" type="string">
      The one-time use payment method token provided by WHITELABEL SDK (MAX 64; MIN 36).

      Example: 9104911d-5df9-429e-8488-ad41abea1a4b
    </ParamField>

    <ParamField body="vaulted_token" type="string">
      The vaulted token of the stored payment method (MAX: 64; MIN: 36).

      Example: 6104911d-5df9-429e-8488-ad41abea1a4b
    </ParamField>

    <ParamField body="card" type="object">
      Specifies the card object.

      <Expandable title="properties">
        <ParamField body="verify" type="boolean">
          Using amount = 0 and verify = true, you can verify the user's card without authorizing a real amount.

          Possible values: `true` or `false`.
        </ParamField>

        <ParamField body="card_data" type="object">
          Specifies the card_data object.

          <Expandable title="properties">
            <ParamField body="number" type="string">
              Card's number without any separators (MAX 19; MIN 8) - only available for PCI certified merchants.

              Example: 4507990000000010
            </ParamField>

            <ParamField body="expiration_month" type="number">
              Card's expiration month - MM (MAX 2; MIN 2) - only available for PCI certified merchants.

              Example: 10
            </ParamField>

            <ParamField body="expiration_year" type="number">
              Card's expiration year - YYYY (MAX 4; MIN 4) - only available for PCI certified merchants.

              Example: 2025
            </ParamField>

            <ParamField body="security_code" type="number">
              Card's security code (MAX 4; MIN 3) - only available for PCI certified merchants.

              Example: 123
            </ParamField>

            <ParamField body="holder_name" type="string">
              Cardholder's full name as it appears on the card (MAX 26; MIN 3) - only available for PCI certified merchants.

              Example: JOHN DOE
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="trial_period" type="object">
  Specifies the trial_period object.

  <Expandable title="properties">
    <ParamField body="billing_cycles" type="number">
      Total amount of billing cycles the free_trial should apply to.

      Example: 1
    </ParamField>

    <ParamField body="amount" type="object">
      Amount to be discounted for the trial period.

      <Expandable title="properties">
        <ParamField body="currency" type="string">
          The currency used to make the trial period. (ISO 4217 MAX 3; MIN 3).

          Example: COP
        </ParamField>

        <ParamField body="value" type="number">
          The trial period amount value (multiple of 0.0001).

          Example: 10
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="availability" type="object">
  Specifies the availability object. The dates that the subscription will be available. If null the start date will be the day of the creation and it will not have a finish date.

  <Expandable title="properties">
    <ParamField body="start_at" type="Timestamp">
      The start date that the subscription will be available to use.

      Example: 2024-01-16T00:00:00.786342Z
    </ParamField>

    <ParamField body="finish_at" type="Timestamp">
      The end date until the subscription will be available to use.

      Example: 2024-05-26T20:00:00.786342Z
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="retries" type="object">
  Specifies the retries object. If we need to retry declined transactions in WHITELABEL and the amount if necessary.

  <Expandable title="properties">
    <ParamField body="retry_on_decline" type="bool">
      If we should retry a payment or not after a first decline. False by default.

      Example: true
    </ParamField>

    <ParamField body="amount" type="number">
      The number of retries that the subscription plan will have to completion. The maximum equals your environment's configured retry schedule length (6 in production). A value above the cap is rejected with `400` (`Max retries attempts exceeded`). Max: 6

      Example: 4
    </ParamField>

    <ParamField body="strategy" type="string">
      How the timing of each retry is decided. One of:

      - `DEFAULT` — the fixed retry schedule.
      - `SMART` — machine-learning-based retry timing, applied from the second retry onward. Available to all accounts.
      - `CUSTOM_SCHEDULE` — the per-attempt `schedule` array you provide.

      Treat this field as open-ended. New values can be introduced as WHITELABEL adds retry behaviors, so handle an unrecognized value gracefully rather than switching exhaustively over the list above. `SMART` is the most recent addition.

      Example: `SMART`
    </ParamField>

    <ParamField body="stop_on_hard_decline" type="bool">
      When true and a hard decline is detected, retries stop for the current billing cycle only. On its own, the subscription stays ACTIVE and billing advances to the next cycle. If `cancel_on_exhausted_retries` is also true, the subscription is canceled instead.

      Example: true
    </ParamField>

    <ParamField body="cancel_on_exhausted_retries" type="bool">
      When true, the subscription is canceled once retries for a billing cycle end without a successful payment, instead of advancing to the next cycle. `cancellation_source` is set to `RETRIES_EXHAUSTED` and a single `SUBSCRIPTION.CANCEL` webhook is emitted. Defaults to false. Create-only: it cannot be changed later — [Update Subscription](/reference/subscriptions/update-subscription) rejects a different value with `400`. The cancellation itself is final — see [Retries](/docs/payment-features/subscriptions/retries#canceling-a-subscription-when-retries-run-out).

      Example: true
    </ParamField>

    <ParamField body="stopped" type="bool">
      Whether retries for the current cycle have stopped. Present only while the subscription is `PAST_DUE` or has `cancel_scheduled` pending; omitted otherwise.

      <Note>
        Whether this field (and `attempts_made`, `outcome`, `next_retry_at` below) keeps reporting the last cycle's retry snapshot once the subscription reaches `CANCELED`, or is omitted at that point, is pending product confirmation — verify against a live response before depending on it.
      </Note>
    </ParamField>

    <ParamField body="attempts_made" type="int">
      Retry attempts made for the current cycle so far. Present only while the subscription is `PAST_DUE` or has `cancel_scheduled` pending; omitted otherwise.
    </ParamField>

    <ParamField body="outcome" type="enum">
      How the current cycle's retries resolved. One of `RECOVERED`, `EXHAUSTED`, or `ABANDONED` (retries stopped by a cancellation before exhausting on their own). Present only while the subscription is `PAST_DUE` or has `cancel_scheduled` pending; omitted otherwise.
    </ParamField>

    <ParamField body="next_retry_at" type="Timestamp">
      When the next retry is scheduled. Present only while the subscription is `PAST_DUE` with retries still running; omitted otherwise.
    </ParamField>

    <ParamField body="profile" type="enum">
      The fixed retry ladder the subscription follows instead of the configurable schedule. Always `PIX_AUTOMATIC`. Present only on `PIX_AUTOMATIC` subscriptions that WHITELABEL executes; absent — not `null` — on every other payment method, together with `max_attempts`, `min_gap_hours` and `until` below. See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
    </ParamField>

    <ParamField body="max_attempts" type="int">
      How many retries the Pix ladder runs. Always `3`, matching the `amount` reported for these subscriptions.
    </ParamField>

    <ParamField body="min_gap_hours" type="int">
      Always `24` — the gap between the ladder's **debit dates**, not between dispatch attempts. The ladder's debit dates are `D`, `D+1`, `D+2` and `D+3`; when a debit is refused synchronously the next instruction can be dispatched moments later, so compare debit dates rather than send times.
    </ParamField>

    <ParamField body="until" type="Timestamp">
      When the ladder stops — `billing_cycles.next_at` plus 7 days. It tracks the cycle, so it moves with `next_at` at every renewal.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="cancel_scheduled" type="object">
  The cancellation scheduled for this subscription, or `null` when none is pending. Schedule one with the `schedule` block on `POST /v1/subscriptions/{id}/cancel`; undo it with `"schedule": null`. See [Cancel Subscription](/reference/subscriptions/cancel-subscription).

  <Expandable title="properties">
    <ParamField body="mode" type="enum">
      `AFTER_CYCLES` or `AT_DATE`, matching whichever of `after_cycles`/`at` was sent when the schedule was created.
    </ParamField>

    <ParamField body="after_cycles" type="int">
      The number of billing cycles that were requested, when `mode` is `AFTER_CYCLES`. `null` when `mode` is `AT_DATE`.
    </ParamField>

    <ParamField body="at" type="Timestamp">
      The resolved date and time the cancellation will fire.
    </ParamField>

    <ParamField body="requested_at" type="Timestamp">
      When the cancellation was scheduled.
    </ParamField>

    <ParamField body="past_due_behavior" type="enum">
      `EXHAUST_RETRIES` (default) or `SKIP_RETRIES` — what the schedule does if the subscription is `PAST_DUE` when it would otherwise fire. See [Cancel Subscription](/reference/subscriptions/cancel-subscription#behavior-while-retries-are-running).

      <Note>
        This echo is pending product confirmation as a stable external contract — see the note on [Cancel Subscription](/reference/subscriptions/cancel-subscription#behavior-while-retries-are-running).
      </Note>
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="unpaid_cycle" type="object">
  The current billing cycle, when it is `PAST_DUE` and has not settled. Omitted — not `null` — for every other state.

  <Note>
    Whether this field keeps reporting the unsettled cycle once the subscription reaches `CANCELED`, or is omitted at that point, is pending product confirmation — verify against a live response before depending on it.
  </Note>

  <Expandable title="properties">
    <ParamField body="cycle_number" type="int">
      The billing cycle that is unpaid, matching `billing_cycles.current` at the time it was computed.
    </ParamField>

    <ParamField body="amount" type="object">
      The amount due for the unpaid cycle. Same shape as the subscription-level `amount`.
    </ParamField>

    <ParamField body="attempts" type="int">
      Total charge attempts made for this cycle so far, including the original attempt.
    </ParamField>

    <ParamField body="last_failure_code" type="string">
      The decline/failure code from the most recent attempt. `null` if unavailable.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="refund" type="object">
  The refund quote from the last immediate cancellation, or `null`/omitted when none was ever
  computed. Requested with the `refund` mode on `POST /v1/subscriptions/{id}/cancel` — see
  [Cancel Subscription](/reference/subscriptions/cancel-subscription#refund-on-immediate-cancel).
  Once computed, it persists and keeps appearing on every later read of the subscription.

  <Expandable title="properties">
    <ParamField body="mode" type="enum">
      `PRORATED`, `FULL`, or `CUSTOM` — echoes what was requested.
    </ParamField>

    <ParamField body="amount" type="object">
      The computed (or `CUSTOM`-echoed) refund amount. Same shape as the subscription-level
      `amount`.
    </ParamField>

    <ParamField body="unused_days" type="int">
      Days of the billing cycle treated as unused. For `FULL`, equals `period_days` — the whole
      cycle counts as unused.
    </ParamField>

    <ParamField body="period_days" type="int">
      The billing cycle's total length in days.
    </ParamField>

    <ParamField body="basis" type="object">
      What the refund was computed against.

      <Expandable title="properties">
        <ParamField body="billing_cycle" type="int">
          The billing cycle the refund was computed against.
        </ParamField>

        <ParamField body="charged_amount" type="object">
          The amount actually charged for that cycle — the refund's ceiling.
        </ParamField>

        <ParamField body="payment_id" type="string">
          The captured payment's own id. `null` for a `$0`-phase quote with no payment to
          reference.
        </ParamField>

        <ParamField body="charged_at" type="Timestamp">
          When that payment was captured. `null` for a `$0`-phase quote with no payment to
          reference.
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="execution" type="string">
      Always `"MERCHANT"` — WHITELABEL computes the quote, you execute the refund.
    </ParamField>

    <ParamField body="quoted_at" type="Timestamp">
      When this quote was computed.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="initial_payment_validation" type="bool">
  Flag to identify if the subscription should wait for the first payment in order to continue. False by default.

  Example: false
</ParamField>

<ParamField body="pending_plan_change" type="object">
  The plan change scheduled for the next billing cycle, or `null` when none is pending. Schedule one with the `plan_change` block on `PATCH /v1/subscriptions/{id}`; undo it with `"plan_change": null`.

  A scheduled change is applied to this same subscription — no new subscription is created, and neither `previous_subscription_id` nor `cancellation_source: PLAN_CHANGE` is set.

  <Expandable title="properties">
    <ParamField body="plan_id" type="string">
      The identifier of the target plan.
    </ParamField>

    <ParamField body="plan_name" type="string">
      The name of the target plan.
    </ParamField>

    <ParamField body="direction" type="string">
      `UPGRADE` or `DOWNGRADE`. A longer billing frequency is an upgrade; on the same frequency, a higher resolved price is an upgrade. Informational only.
    </ParamField>

    <ParamField body="effective" type="string">
      When the change applies. Always `NEXT_BILLING_CYCLE` — only scheduled changes appear here. An `IMMEDIATE` plan change (see [Update Subscription](/reference/subscriptions/update-subscription)) is applied in place and never becomes pending.
    </ParamField>

    <ParamField body="phases_behavior" type="string">
      What happens when the target plan has phases. `START_FROM_REGULAR` (default) enters the regular phase directly; `HONOR_PHASES` enters through the target plan's phase schedule — which sets `status` to `TRIALING`, `current_phase` to `TRIAL`, and repopulates `billing_phases`.
    </ParamField>

    <ParamField body="applies_at" type="Timestamp">
      The billing event the change will take effect on — the subscription's next billing date.
    </ParamField>

    <ParamField body="requested_at" type="Timestamp">
      When the change was scheduled.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="metadata" type="array of objects">
  Specifies the metadata array.

  <Expandable title="properties">
    <ParamField body="key" type="string">
      This value serves as a name or identifier for the metadata. Use a descriptive term. (MAX 48; MIN 1).

      Example: sub_ext_id
    </ParamField>

    <ParamField body="value" type="string">
      The information you wish to store within the metadata. (MAX 512; MIN 1).

      Example: AA001
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="subscription_agreement_id" type="string">
  Links this subscription to the initial payment created with the same agreement ID. Used for tracking, reconciliation, and chargeback handling (MAX 255).

  The value must exactly match the `subscription_agreement_id` sent in `payment_method.detail.card.stored_credentials.subscription_agreement_id` on the originating payment (`payment_method.detail.wallet.stored_credentials.subscription_agreement_id` when the originating payment is a wallet CIT).

  Example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
</ParamField>

<ParamField body="payments" type="Array of strings">
  Specifies the payments array.

  <Note>
    This array is currently always empty in webhook payloads. Subscribe to `payment.*` webhooks to track charges. For the subscription's full charge history (amounts, provider, phase context), use [List Subscription Payments](/reference/subscriptions/list-subscription-payments) instead of this field.
  </Note>

  Example: ["5104911d-5df9-229e-8468-bd41abea1a4s"]
</ParamField>

<ParamField body="renewal_notification_days" type="int">
  Number of days before the next billing date at which the `subscription.close_to_renewal` webhook is sent. `null` means no renewal notification is sent for this subscription.

  Example: 3
</ParamField>

<ParamField body="reason" type="string">
  Free-form reason for the subscription's current status, when one was recorded. `null` for subscriptions whose status changed without one.

  Example: "merchant request"
</ParamField>

<ParamField body="cancellation_time" type="Timestamp">
  When the subscription was canceled (<a href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a>). Only set once the subscription reaches `CANCELED`; `null` otherwise. See `cancellation_source` for what triggered it.

  Example: 2023-12-16T20:46:54.786342Z
</ParamField>

<ParamField body="ending_time" type="Timestamp">
  When the subscription completed or expired (<a href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a>). Only set once the subscription reaches `COMPLETED`; `null` otherwise.

  Example: 2024-12-16T20:46:54.786342Z
</ParamField>

<ParamField body="created_at" type="Timestamp">
  Subscription creation date and time (<a href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a> MAX 27; MIN 27).

  Example: 2023-12-16T20:46:54.786342Z
</ParamField>

<ParamField body="updated_at" type="Timestamp">
  Subscription last updated date and time (<a href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a> MAX 27; MIN 27).

  Example: 2023-12-16T21:00:54.786342Z
</ParamField>

<ParamField body="additional_data" type="object">
  Specifies the additional_data object. This object is not mandatory. However, if you send this information, the payment experience will be enhanced for your user.

  <Expandable title="properties">
    <ParamField body="order" type="object">
      Specifies the order object.

      <Expandable title="properties">
        <ParamField body="items" type="array of object">
          Specifies the item's object.

          <Expandable title="properties">
            <ParamField body="id" type="string">
              The unique identifier of the item (MAX 255; MIN 3).

              Example: 3214
            </ParamField>

            <ParamField body="name" type="string">
              The name of the item (MAX 255; MIN 3).

              Example: iPhone 12 Pro Max
            </ParamField>

            <ParamField body="quantity" type="int">
              The quantity of the item (MAX 999; MIN 1).

              Example: 1
            </ParamField>

            <ParamField body="unit_amount" type="float">
              The unit amount of the item (multiple of 0.0001).

              Example: 550
            </ParamField>

            <ParamField body="category" type="string">
              The category of the item (MAX 255; MIN 3).

              Possible values: Check the <a href="/reference/items-category-list">Item category list</a>.
            </ParamField>

            <ParamField body="brand" type="string">
              The brand of the item (MAX 255; MIN 3).

              Example: Apple
            </ParamField>

            <ParamField body="sku_code" type="string">
              The stock keeping unit (SKU) of the item (MAX 255; MIN 3).

              Example: A2342
            </ParamField>

            <ParamField body="manufacture_part_number" type="string">
              The manufacture part number of the item (MAX 255; MIN 3).

              Example: 345621234
            </ParamField>
          </Expandable>
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>