---
title: "Switch subscription"
method: POST
path: "/customers/{customerId}/subscription_switches/{offerId}"
---

# Switch subscription

`POST /customers/{customerId}/subscription_switches/{offerId}`

## Request

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

This endpoint is used to upgrade or downgrade a subscription to another subscription plan.

**Note:** In-app subscription upgrades are NOT supported through this endpoint.

## Path parameters

- `customerId` string, required
- `offerId` string, required

## Request body

- object
  - `toOfferId` string, required: ID of the subscription offer to which a customer wants to upgrade
  - `switchDirection` string, required: Supported: `upgrade`, `downgrade`, `unspecified`

## Response `200`

200

## 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/subscription_switches/:offerId/post.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)
