# Cancel the subscription

`DELETE /api/v1/billing/subscription`

Stop the subscription renewing at the end of the period already paid for.

It never takes effect at once. Full access stays to the last day that was paid for, the billing object then carries ends_at, and nothing the account holds is removed after that day: the free ceilings simply refuse additions again.

Until that day the cancellation can be taken back, at no charge, with the endpoint below.

## Returns

Nothing. 422 when there is no subscription to cancel, or when it is already ending.

## Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in `X-RateLimit-Remaining`.

## Request

```sh
curl https://my.monicahq.com/api/v1/billing/subscription \
  -X DELETE \
  -H "Authorization: Bearer $MONICA_TOKEN"
```

```javascript
const response = await fetch('https://my.monicahq.com/api/v1/billing/subscription', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${token}` },
})
```

```php
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/billing/subscription');
```

## Response

`204`, with no body.
