# Retry Subscription

Use this endpoint to manually retry the most recent failed payment of a subscription. This is useful when a customer updates their payment method or resolves a payment issue (e.g., insufficient funds, expired card) mid-billing cycle, since subscription updates only take effect starting from the next billing cycle. Calling this endpoint forces a new charge attempt for the current cycle using the latest subscription configuration.

* Only the **most recent payment** of the subscription can be retried.
* Multiple manual retries can be executed **only if** the previous retry attempt resulted in a DECLINED status.
* Manually triggering a retry **stops** the [smart retry scheme](/docs/retries) for the corresponding payment. The following payments of the subscription will follow the smart retry scheme if enabled in the creation.
* After the successful retry attempt, the system **continues** with the next scheduled subscription charge.
* If neither condition is met, an **INVALID_REQUEST** error is returned.

**POST** `/subscriptions/{subscription_id}/retry`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Retry Subscription

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string)
  The `account_id` found in your [WHITELABEL Dashboard](https://dashboard.whitelabel.com/developers) (UUID).

## Path parameters

- `subscription_id` (string, required)
  The unique identifier of the subscription, see [create subscription](/reference/create-subscription) (UUID).

## Responses

### 200

200

- `id` (string)
- `name` (string)
- `account_id` (string)
- `country` (string)
- `description` (string)
- `merchant_reference` (string)
- `status` (string)
- `amount` (object)
  - `currency` (string)
  - `value` (number)
- `frequency` (object)
  - `type` (string)
  - `value` (integer)
- `billing_cycles` (object)
  - `total` (integer)
  - `current` (integer)
  - `next_at` (string)
- `customer_payer` (object)
  - `id` (string)
- `payment_method` (object)
  - `type` (string)
  - `vaulted_token` (string)
- `availability` (object)
  - `start_at` (string)
  - `finish_at` (any)
- `retries` (object)
  - `retry_on_decline` (boolean)
  - `amount` (integer)
- `metadata` (any)
- `additional_data` (any)
- `trial_period` (object)
  - `billing_cycles` (integer)
  - `amount` (object)
    - `value` (number)
    - `currency` (string)
- `initial_payment_validation` (boolean)
- `created_at` (string)
- `updated_at` (string)

Example:

```json
{
  "id": "0054840f-bcd5-4d8e-b86c-c18ede81c556",
  "name": "Test Subscription",
  "account_id": "f7c5fe77-721b-49c2-84d3-957748df3c2c",
  "country": "CL",
  "description": "Subscription Test",
  "merchant_reference": "subscription-ref-merchant-AA01",
  "status": "ACTIVE",
  "amount": {
    "currency": "CLP",
    "value": 15000
  },
  "frequency": {
    "type": "MONTH",
    "value": 1
  },
  "billing_cycles": {
    "total": 12,
    "current": 2,
    "next_at": "2025-05-29T11:13:31.786421Z"
  },
  "customer_payer": {
    "id": "1c6d1a88-d8d5-4c09-b19c-852530d89f05"
  },
  "payment_method": {
    "type": "CARD",
    "vaulted_token": "743880c1-1bdb-4572-99a8-c4e5ce184895"
  },
  "availability": {
    "start_at": "2025-04-29T11:13:31.786421Z",
    "finish_at": null
  },
  "retries": {
    "retry_on_decline": false,
    "amount": 6
  },
  "metadata": null,
  "additional_data": null,
  "trial_period": {
    "billing_cycles": 1,
    "amount": {
      "value": 0,
      "currency": ""
    }
  },
  "initial_payment_validation": false,
  "created_at": "2025-04-29T11:13:31.786421Z",
  "updated_at": "2025-04-29T11:13:31.942325Z"
}
```

### 400

400

Example:

```json
{}
```