---
title: "Pause or resume a subscription"
method: PATCH
path: "/v1/subscriptions/{id}"
tags: ["Monitoring subscriptions"]
---

# Pause or resume a subscription

`PATCH /v1/subscriptions/{id}`

## Request

- Base URL: `https://api.vatnode.dev`
- URL: `https://api.vatnode.dev/v1/subscriptions/{id}`
- Auth: one of:
  - API key in cookie `better-auth.session_token`
  - HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `status` 'active' | 'paused', required

## Response `200`

The updated subscription.

- Subscription
  - `id` string, required
  - `vatId` string, required
  - `countryCode` string, required
  - `status` 'active' | 'paused' | 'cancelled', required
  - `lastCheckedAt` string, date-time, nullable, required
  - `lastCompanyName` string, nullable, required
  - `lastCompanyAddress` string, nullable, required
  - `lastValid` boolean, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: The request body, query string or path parameters failed structural validation (wrong type, missing required field, out-of-range length, malformed enum, etc.). Returns the standard error envelope with code `INVALID_REQUEST`. This is distinct from a semantically well-formed request that is rejected later (e.g. `INVALID_FORMAT` for a VAT ID that parses but is not a valid VAT number).
- `401`: No valid session (`UNAUTHORIZED`), or the account has been deleted (`ACCOUNT_DELETED`).
- `404`: The addressed resource does not exist, or is not owned by the authenticated caller. Returns the standard error envelope with code `NOT_FOUND`. Ownership and existence are deliberately not distinguished, so a resource belonging to another account is reported as missing rather than forbidden.
- `500`: An unexpected server error occurred. Returns the standard error envelope with code `INTERNAL_ERROR` and a `requestId` for support correlation. The failing request had no side effects the caller can rely on; retry is safe for idempotent operations.
- `503`: The database is temporarily unavailable (`DB_UNAVAILABLE`).

---

[API](https://skmtc.dev/vatnode/apis/vatnode-api.md) · [All operations](https://skmtc.dev/vatnode/apis/vatnode-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vatnode/apis/vatnode-api/revisions/c65828db2037?raw)
