# Update Several Providers' Visibility

Turns the named providers on or off in one request. **Only the providers you list are touched** — every other provider keeps whatever it had, which is what separates this from [Replace the Provider Allowlist](/reference/organizations/whitelabel/replace-provider-allowlist).

Idempotent, and turning a provider off keeps its instruction override.

<Note>
The whole request is validated before the first row is written: a repeated `provider_id` changes **nothing** rather than half of what you asked for.
</Note>

### Body

<ParamField body="providers" type="object[]" required>
  The providers whose visibility changes in this request. At most 500 entries, and each `provider_id` may appear at most once.
  <Expandable title="item">
    <ParamField body="provider_id" type="string" required>
      WHITELABEL catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive — normalized to upper case before the repeat check, so `stripe` and `STRIPE` count as the same entry.
    </ParamField>
    <ParamField body="visible" type="boolean" required>
      Whether your organization offers this provider. `visible: false` on a provider that is not on the allowlist is a no-op.
    </ParamField>
  </Expandable>
</ParamField>

### Response

The refreshed overlay, in the same shape as [List the White-label Provider Overlay](/reference/organizations/whitelabel/list-providers).

<ResponseField name="filtered" type="boolean">
  Whether your organization has at least one allowlist entry, after this change.
</ResponseField>
<ResponseField name="providers" type="object[]">
  The union of your allowlist, your instruction overrides, and your logo overrides.
</ResponseField>

<CodeGroup>
```bash cURL
curl -X PATCH 'https://api.whitelabel.com/v1/whitelabel/providers' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "providers": [
      { "provider_id": "STRIPE", "visible": true },
      { "provider_id": "DLOCAL", "visible": false }
    ]
  }'
```

```json 200 OK
{
  "filtered": true,
  "providers": [
    {
      "provider_id": "ADYEN",
      "allowed": true,
      "has_instruction_override": false
    },
    {
      "provider_id": "STRIPE",
      "allowed": true,
      "has_instruction_override": true,
      "more_info_url": "https://docs.example.com/stripe"
    }
  ]
}
```

```json 400 — repeated provider_id
{
  "title": "Bad Request",
  "status": 400,
  "detail": "provider_id must appear at most once per request; repeated: STRIPE"
}
```
</CodeGroup>

### Errors

<div className="code-nowrap-table dense-table">

| HTTP | Envelope | When |
|---|---|---|
| `400` | problem+json | A `provider_id` appears more than once, an id is not a valid catalogue id, more than 500 entries, or an unknown field. |
| `401` | `NOT_AUTHENTICATED` | Missing or invalid API keys. |
| `413` | — | Request body larger than 256 KB. |

</div>

**PATCH** `/whitelabel/providers`

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

Turns the named providers on or off in one request. Only the providers listed are touched — every other provider keeps whatever it had, which is what separates this from `PUT /v1/whitelabel/providers`.

Every id is normalized and checked for repeats before the first row is written, so a request carrying a repeated id changes nothing rather than half of what it asked for. Idempotent, and turning a provider off keeps its instruction override.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Body

Content type: `application/json`

- `providers` (object[], required)
  The providers whose visibility changes in this request. At most 500 entries, each provider_id at most once.
  - `provider_id` (string, required)
    WHITELABEL catalogue provider id, UPPER_SNAKE_CASE.
  - `visible` (boolean, required)
    Whether the organization offers this provider.

Example:

```json
{
  "providers": [
    {
      "provider_id": "STRIPE",
      "visible": true
    }
  ]
}
```

## Responses

### 200

The refreshed overlay.

- `filtered` (boolean)
  Whether the organization has at least one allowlist entry. Branch on this, never on the length of `providers` — the list is also non-empty when the only entries are instruction or logo overrides.
- `providers` (object[])
  The union of the allowlist, the instruction overrides, and the logo overrides. A provider can carry custom wording or a custom logo without being offered, in which case it appears with `allowed: false`.
  - `provider_id` (string)
    WHITELABEL catalogue provider id, UPPER_SNAKE_CASE.
  - `allowed` (boolean)
    Whether the organization offers this provider.
  - `has_instruction_override` (boolean)
    Whether any instruction override exists. A cheap badge flag, redundant with the content fields and not authoritative for rendering them.
  - `name` (string)
    Display name replacing the catalogue's, when overridden. Only WHITELABEL-owned providers can carry one.
  - `instructions` (object[])
    Connection steps replacing the catalogue's, when overridden. Absent means keep the catalogue's.
  - `setup_instructions` (object[])
    Grouped setup steps replacing the catalogue's, when overridden. Absent means keep the catalogue's.
  - `more_info_url` (string<uri>)
    Documentation link replacing the catalogue's, when overridden. Always https.
  - `logo_url` (string)
    Read-only and ephemeral: a presigned URL minted on this read and valid only for a short window. Never store it — read the provider again for a fresh one.

Example:

```json
{
  "filtered": true,
  "providers": [
    {
      "provider_id": "STRIPE",
      "allowed": true,
      "has_instruction_override": true,
      "name": "Acme Risk",
      "instructions": [
        {}
      ],
      "setup_instructions": [
        {}
      ],
      "more_info_url": "https://docs.example.com/stripe",
      "logo_url": "https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=..."
    }
  ]
}
```

### 400

Validation error — unknown field, an id that is not a valid catalogue id, or a repeated provider_id.

- `type` (string)
- `title` (string)
- `status` (integer)
- `detail` (string)

Example:

```json
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "detail": "provider_id must appear at most once per request; repeated: STRIPE"
}
```

### 401

Unauthorized — invalid or missing API keys.

- `code` (string)
- `messages` (string[])

Example:

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

### 413

Request body larger than 256 KB.

- `code` (string)
- `messages` (string[])

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "Request body is too large"
  ]
}
```