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
The providers whose visibility changes in this request. At most 500 entries, and each provider_id may appear at most once.
Response
The refreshed overlay, in the same shape as List the White-label Provider Overlay.
Whether your organization has at least one allowlist entry, after this change.
The union of your allowlist, your instruction overrides, and your logo overrides.
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 }
]
}'{
"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"
}
]
}{
"title": "Bad Request",
"status": 400,
"detail": "provider_id must appear at most once per request; repeated: STRIPE"
}Errors
| 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. |
/whitelabel/providersTurns 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
The providers whose visibility changes in this request. At most 500 entries, each provider_id at most once.
Response
The refreshed overlay.
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.
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.
Validation error — unknown field, an id that is not a valid catalogue id, or a repeated provider_id.
Unauthorized — invalid or missing API keys.
Request body larger than 256 KB.