# Replace the Provider Allowlist

Replaces the whole set of providers your organization offers with the ids in the body.

**A provider the body omits stops being offered.** This is a replace, not a merge — use [Update Several Providers' Visibility](/reference/organizations/whitelabel/update-providers-visibility) to change some providers without restating the rest.

Removing a provider **keeps** its instruction override, so toggling it off and on again does not lose your wording.

### Body

<ParamField body="provider_ids" type="string[]" required>
  The complete set of provider ids your organization offers. UPPER_SNAKE_CASE catalogue ids (`[A-Z0-9_]`), at most 100 characters each, at most 500 entries. Case-insensitive — normalized to upper case.

  An **empty array is a legal request** and clears the allowlist, the same end state as [Clear the Provider Allowlist](/reference/organizations/whitelabel/clear-provider-allowlist). A save-everything admin screen therefore needs no special case for "the last provider was unticked".
</ParamField>

<Warning>
Under the opt-in rule, an empty `provider_ids` leaves your organization with no allowlist entries at all — it is **not** a "show everything" switch. Send the ids you want to offer rather than clearing the list to widen it.
</Warning>

### 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 PUT '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 '{ "provider_ids": ["STRIPE", "ADYEN", "YUNO_3DS"] }'
```

```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"
    },
    {
      "provider_id": "YUNO_3DS",
      "allowed": true,
      "has_instruction_override": false,
      "logo_url": "https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=..."
    }
  ]
}
```

```json 400 Bad Request
{
  "title": "Bad Request",
  "status": 400,
  "detail": "provider_ids contains an invalid catalogue id"
}
```
</CodeGroup>

### Errors

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

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

</div>

**PUT** `/whitelabel/providers`

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

Replaces the whole set of providers your organization offers with the ids in the body. A provider the body omits stops being offered — this is a replace, not a merge; use `PATCH /v1/whitelabel/providers` to change some providers without restating the rest.

An empty `provider_ids` is a legal request and clears the allowlist, the same end state as `DELETE /v1/whitelabel/providers`, so a save-everything admin screen needs no special case for "the last provider was unticked".

Removing a provider keeps its instruction override, so toggling it off and on again does not lose your wording.

## Authorization

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

## Body

Content type: `application/json`

- `provider_ids` (string[], required)
  The complete set of provider ids the organization offers. UPPER_SNAKE_CASE catalogue ids (`[A-Z0-9_]`), at most 100 characters each, at most 500 entries.

Example:

```json
{
  "provider_ids": [
    "STRIPE",
    "ADYEN",
    "YUNO_3DS"
  ]
}
```

## 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, more than 500 ids, or an id that is not a valid catalogue id.

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

Example:

```json
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "detail": "provider_ids contains an invalid catalogue id"
}
```

### 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"
  ]
}
```