# Resume Subscription

Calling this endpoint will reactivate a subscription. It will change a subscription with PAUSED `status` to ACTIVE once again.

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

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

Resume Subscription

## Authorization

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

## Path parameters

- `subscription_id` (string, required)
  The unique identifier of a subscription.

## Responses

### 200

200

- `id` (string)
- `name` (string)
- `description` (string)
- `account_id` (string)
- `merchant_reference` (string)
- `status` (string)
- `subscription_plan_id` (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)
  The payment method the subscription charges. A single object, not a list.
  - `type` (string)
  - `token` (string)
  - `vaulted_token` (string)
  - `card` (object)
    - `verify` (boolean)
    - `card_data` (object)
      - `number` (string)
      - `expiration_month` (integer)
      - `expiration_year` (integer)
      - `security_code` (integer)
      - `holder_name` (string)
- `availability` (object)
  - `start_at` (string)
  - `finish_at` (string)
- `metadata` (object)
  - `key` (string)
  - `value` (string)
- `payments` (string[])
- `created_at` (string)
- `updated_at` (string)

Example:

```json
{
  "id": "7304911d-5df9-429e-8488-ad41abea1a4c",
  "name": "sub_001",
  "description": "streaming service",
  "account_id": "2404911d-5df9-429e-8488-ad41abea1a4b",
  "merchant_reference": "001_marzo_23",
  "status": "ACTIVE",
  "subscription_plan_id": "1904911d-5df9-429e-8488-ad41abea1a4d",
  "amount": {
    "currency": "USD",
    "value": 12100
  },
  "frequency": {
    "type": "MONTH",
    "value": 1
  },
  "billing_cycles": {
    "total": 10,
    "current": 2,
    "next_at": "2023-02-16T20:00:00.786342Z"
  },
  "customer_payer": {
    "id": "3t04911d-5df9-429e-8488-ad41abea1a2c"
  },
  "payment_method": {
    "type": "CARD",
    "token": "9104911d-5df9-429e-8488-ad41abea1a4b",
    "vaulted_token": "6104911d-5df9-429e-8488-ad41abea1a4b",
    "card": {
      "verify": false,
      "card_data": {
        "number": "4507990000000010",
        "expiration_month": 10,
        "expiration_year": 2025,
        "security_code": 123,
        "holder_name": "JOHN DOE"
      }
    }
  },
  "availability": {
    "start_at": "2024-01-16T00:00:00.786342Z",
    "finish_at": "2024-05-26T20:00:00.786342Z"
  },
  "metadata": {
    "key": "sub_ext_id",
    "value": "AA001"
  },
  "payments": [
    "5104911d-5df9-229e-8468-bd41abea1a4s"
  ],
  "created_at": "2023-12-16T20:46:54.786342Z",
  "updated_at": "2023-12-16T21:00:54.786342Z"
}
```

### 400

400