Switch subscription

Changed on

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.

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

Path parameters

customerIdstring required

Cleeng ID of a customer

offerIdstring required

Offer ID of a customer’s subscription that will be upgraded

Request body

toOfferIdstring required

ID of the subscription offer to which a customer wants to upgrade

switchDirectionstring required

Supported: upgrade, downgrade, unspecified

Response

200

Changes