# POST /api/v1/subscriptions/restore

> Restore a dismissed recurring transaction

- **Tag:** subscriptions
- **Operation ID:** `restore_subscription_api_v1_subscriptions_restore_post`

## Description

Undo a previous dismissal so the recurring transaction appears again.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Request body

Schema: `RestoreRequest`

- `counterparty_key` (string · required) — Normalized counterparty name to restore

## Responses

### 201 — Successful Response

### 400 — Bad Request - Invalid input

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X POST 'https://api.ondayzero.com/api/v1/subscriptions/restore' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "counterparty_key": "string"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/subscriptions/restore', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "counterparty_key": "string"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {
  "counterparty_key": "string"
}

response = httpx.post("https://api.ondayzero.com/api/v1/subscriptions/restore", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/subscriptions/restore-subscription
- OpenAPI slice: https://www.ondayzero.com/docs/reference/subscriptions/restore-subscription/openapi.json
- Other endpoints in **subscriptions**: https://www.ondayzero.com/docs/reference/subscriptions
