---
title: "Update customer's subscription"
method: PATCH
path: "/customers/{customerId}/subscriptions"
---

# Update customer's subscription

`PATCH /customers/{customerId}/subscriptions`

## Request

- Base URL: `https://mediastoreapi-sandbox.cleeng.com`
- URL: `https://mediastoreapi-sandbox.cleeng.com/customers/{customerId}/subscriptions`
- Auth: API key in header `Authorization`

Use `/customers/:customerId/subscriptions` endpoint to update customer's subscription. With this endpoint, customers can unsubscribe plans with cancellation reasons or resubscribe plans. Resubscribe is possible if the billing period is pending. In case of unsubscribing with cancellation reason you will see them in the subscribers report in Cleeng Dashboard.

## Path parameters

- `customerId` string, required

## Request body

- object
  - `offerId` string, required: ID of subscription to update, e.g. S123123123_US
  - `status` string, required: New subscription status. One of: active, cancelled, terminated
  - `cancellationReason` string: Customer cancellation reason (value depends on your implementation). Max 100 characters. In case of subscription is being terminated reason will be stored in the subscribers report

## Response `200`

200

- object
  - `responseData` object
    - `offerId` string
    - `status` string
    - `expiresAt` integer
  - `errors` unknown[]
    - unknown

## Other responses

- `422`: 422

## Changes

- **2026-11-03** `b4b65aa4f14c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cleeng/apis/mediastore-api/changes/customers/:customerId/subscriptions/patch.md)

---

[API](https://skmtc.dev/cleeng/apis/mediastore-api.md) - [All operations](https://skmtc.dev/cleeng/apis/mediastore-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/mediastore-api/revisions/b4b65aa4f14c?raw)
