# Disable Destination

Turns a destination off without removing it. The record and its audit history are kept, but the [forward proxy](/reference/pci-proxy/invoke-forward-proxy) rejects it with `403 DESTINATION_NOT_ALLOWED` until it is enabled again. Useful for temporarily suspending a destination without losing its configuration. See the [Destination Allowlist guide](/docs/security-and-compliance/pci-proxy/allowlist).

**POST** `/pci-proxy/destinations/{id}/disable`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Turns a destination off without removing it — the record and its audit history are kept, but the forward path rejects it with `403 DESTINATION_NOT_ALLOWED` until it is enabled again.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Header parameters

- `X-Account-Code` (string)
  Required if the destination was registered with an `account_id`: pass that same `account_id`. Without it, an account-scoped destination is treated as not found.

## Path parameters

- `id` (string, required)
  The `id` (UUID) of the destination to disable.

## Responses

### 200

The destination was disabled; the updated object is returned.

- `id` (string<uuid>)
  Unique identifier of the destination. Use it to remove the destination.
- `account_id` (string)
  The account this destination is scoped to, or `null` when it applies to the whole organization.
- `hostname` (string)
  The registered hostname.
- `status` ("ENABLED" | "DISABLED")
  Whether the destination is active. Only ENABLED destinations are used by the forward path.
- `purpose` (string)
  The label you provided when registering the destination.
- `created_at` (string<date-time>)
  When the destination was registered.
- `updated_at` (string<date-time>)
  When the destination was last changed.

Example:

```json
{
  "id": "d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4",
  "account_id": null,
  "hostname": "api.example-processor.com",
  "status": "ENABLED",
  "purpose": "Direct acquiring — Processor X",
  "created_at": "2026-07-09T13:05:36Z",
  "updated_at": "2026-07-09T13:05:36Z"
}
```

### 400

The `id` path parameter is not a valid UUID.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```

### 401

Authentication failed. Missing or invalid API credentials.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```

### 404

No destination with that `id` is registered for your scope.

- `code` ("NOT_AUTHENTICATED" | "AuthenticationFail" | "INVALID_REQUEST" | "INVALID_HOSTNAME" | "INVALID_ACCOUNT_ID" | "DESTINATION_EXISTS" | "NOT_FOUND" | "INTERNAL_ERROR")
  Machine-readable error code.
- `messages` (string[])

Example:

```json
{
  "code": "NOT_AUTHENTICATED",
  "messages": [
    "string"
  ]
}
```