---
title: "Revive subscription"
method: POST
path: "/subscriptions/{subscriptionId}/revive"
---

# Revive subscription

`POST /subscriptions/{subscriptionId}/revive`

This endpoint is used to revive terminated [externally-managed subscriptions](https://developers.cleeng.com/docs/externally-managed-subscriptions) (EMS) - subscriptions whose life cycle is managed outside of Cleeng. <br><br> A terminated externally managed subscription is revived  by creating a new subscription based on the terminated one. <br><br> The data is copied from the terminated subscription (e.g. original purchase date, payment details), however, the old expiration date will be overriden if a new one is provided.<br><br>  **Note:** You can only revive **terminated** subscriptions. <br><br> For subscription revival [subscription resource payload](https://developers.cleeng.com/reference/create-subscription#response-description) should be returned in response with non-empty `replacedBy` property.

## Path parameters

- `subscriptionId` integer, required

## Headers

- `Content-Type` string
- `X-Publisher-Token` string, required

## Request body

- object
  - `expirationDate` integer, required — Expiration time in UNIX timestamp format.
  - `paymentId` integer — The identifier of Cleeng payment.

## Response `200`

200

- object
  - `subscriptionId` integer
  - `paymentDetailsId` integer
  - `publisherId` integer
  - `customerId` integer
  - `status` string
  - `dateFrom` integer
  - `dateTo` integer
  - `nextPaymentAction` string
  - `nextPaymentActionDate` integer
  - `subscriptionExternalId` string
  - `offerId` string
  - `paymentCountry` string
  - `ipAddress` unknown
  - `inTrial` boolean
  - `couponCode` unknown
  - `pendingSwitchId` string
  - `externalProperties` object
  - `paymentMethodId` integer
  - `isExternallyManaged` boolean
  - `replacedBy` object
    - `subscriptionId` integer
    - `reason` string
    - `date` integer
  - `originatedFrom` object
    - `subscriptionId` integer
    - `reason` string
    - `date` integer
  - `source` string
  - `renewalCycle` object
    - `completed` integer
    - `unit` string
    - `amount` integer
  - `terminationType` unknown

## Other responses

- `400` — 400
- `403` — 403
- `404` — 404
- `422` — 422

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/versions/00cbfe7998a4/schema)
