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.

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

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.

Body

providersobject[]required

The providers whose visibility changes in this request. At most 500 entries, and each provider_id may appear at most once.

Hide item
provider_idstringrequired

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.

visiblebooleanrequired

Whether your organization offers this provider. visible: false on a provider that is not on the allowlist is a no-op.

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 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 }
    ]
  }'
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"
    }
  ]
}
400 — repeated provider_id
{
  "title": "Bad Request",
  "status": 400,
  "detail": "provider_id must appear at most once per request; repeated: STRIPE"
}

Errors

HTTPEnvelopeWhen
400problem+jsonA provider_id appears more than once, an id is not a valid catalogue id, more than 500 entries, or an unknown field.
401NOT_AUTHENTICATEDMissing or invalid API keys.
413—Request body larger than 256 KB.
PATCH/whitelabel/providers

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.

Body application/json

providersobject[]required

The providers whose visibility changes in this request. At most 500 entries, each provider_id at most once.

Show providers properties
provider_idstringrequired

WHITELABEL catalogue provider id, UPPER_SNAKE_CASE.

visiblebooleanrequired

Whether the organization offers this provider.

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, an id that is not a valid catalogue id, or a repeated provider_id.

typestring
titlestring
statusinteger
detailstring

Unauthorized — invalid or missing API keys.

codestring
messagesstring[]

Request body larger than 256 KB.

codestring
messagesstring[]
Request
curl -X PATCH "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 '{
  "providers": [
    {
      "provider_id": "STRIPE",
      "visible": true
    }
  ]
}'
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=..."
    }
  ]
}