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 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

provider_idsstring[]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. A save-everything admin screen therefore needs no special case for “the last provider was unticked”.

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.

Response

The refreshed overlay, in the same shape as List the White-label Provider Overlay.

filteredboolean

Whether your organization has at least one allowlist entry, after this change.

providersobject[]

The union of your allowlist, your instruction overrides, and your logo overrides.

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"] }'
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=..."
    }
  ]
}
400 Bad Request
{
  "title": "Bad Request",
  "status": 400,
  "detail": "provider_ids contains an invalid catalogue id"
}

Errors

HTTPEnvelopeWhen
400problem+jsonAn unknown field, more than 500 ids, or an id that is not a valid catalogue id.
401NOT_AUTHENTICATEDMissing or invalid API keys.
413—Request body larger than 256 KB.
PUT/whitelabel/providers

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.

Body application/json

provider_idsstring[]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.

Response

The refreshed overlay.

filteredboolean

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.

providersobject[]

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.

Show providers properties
provider_idstring

WHITELABEL catalogue provider id, UPPER_SNAKE_CASE.

allowedboolean

Whether the organization offers this provider.

has_instruction_overrideboolean

Whether any instruction override exists. A cheap badge flag, redundant with the content fields and not authoritative for rendering them.

namestring

Display name replacing the catalogue’s, when overridden. Only WHITELABEL-owned providers can carry one.

instructionsobject[]

Connection steps replacing the catalogue’s, when overridden. Absent means keep the catalogue’s.

setup_instructionsobject[]

Grouped setup steps replacing the catalogue’s, when overridden. Absent means keep the catalogue’s.

more_info_urlstring<uri>

Documentation link replacing the catalogue’s, when overridden. Always https.

logo_urlstring

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.

Validation error — unknown field, more than 500 ids, or an id that is not a valid catalogue id.

typestring
titlestring
statusinteger
detailstring

Unauthorized — invalid or missing API keys.

codestring
messagesstring[]

Request body larger than 256 KB.

codestring
messagesstring[]
Request
curl -X PUT "https://api-sandbox.whitelabel.com/v1/whitelabel/providers" \
  -H "Content-Type: application/json" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>" \
  -d '{
  "provider_ids": [
    "STRIPE",
    "ADYEN",
    "YUNO_3DS"
  ]
}'
Response
{
  "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=..."
    }
  ]
}