> For the complete documentation index, see [llms.txt](https://docs.conscent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.conscent.ai/integrating-with-apis/cancel-active-subscriptions.md).

# Cancel Active Subscriptions

## The client can cancel the active subscriptions for a user

<mark style="color:green;">`POST`</mark> `{API_URL}/client/cancel-subscriptions/{userId}`

Auth required: YES

Please pass your API key as the username and API secret as the password as basic auth to access the endpoint.

{% tabs %}
{% tab title="200: OK " %}
{ "message": "Subscriptions Cancelled Successfully" }
{% endtab %}
{% endtabs %}

```json
{
    "userAccountId": "6242c8f195dcaf49ddc9afbd",
    "purchases": [
        {
            "id": "65dd8927ae60c411df51b902",
            "subscriptionId": "6188d151e018990cee9630ad",
            "tierId": "6188d151e018990cee9630af",
            "subscriptionDetails": {
                "duration": 1,
                "inrPrice": 999
            },
            "subscriptionType": {
                "physical": false,
                "digital": true,
                "adFree": false
            },
	    "price": 999,
	    "priceDetails": {
	    "currency": "INR",
	    "price": 999
		}}
    ],
    "message": "Subscriptions Cancelled Successfully"
}
```
