Update customer's subscription
Changed onUse /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.
patch/customers/{customerId}/subscriptions
Request
- Base URLhttps://mediastoreapi-sandbox.cleeng.com
- URLhttps://mediastoreapi-sandbox.cleeng.com/customers/{customerId}/subscriptions
- AuthAPI key in header Authorization
Path parameters
customerIdstring required
Customer identifier at Cleeng
Request body
Response
200
Example response
{
"responseData": {
"offerId": "S582933670_ZW",
"status": "cancelled",
"expiresAt": 1587035728
}
}Changes
- info
endpoint added
- info