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
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.
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 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"] }'{
"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=..."
}
]
}{
"title": "Bad Request",
"status": 400,
"detail": "provider_ids contains an invalid catalogue id"
}Errors
| 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. |
/whitelabel/providersReplaces 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
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.
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, more than 500 ids, or an id that is not a valid catalogue id.
Unauthorized — invalid or missing API keys.
Request body larger than 256 KB.