Connections & Routing Overview
Connections are how you bring your existing payment-provider accounts (Stripe, Adyen, dLocal, PayU, …) into WHITELABEL’s orchestration. Once a connection exists, you can reference it from a routing rule to send payments through that provider.
A routing tells WHITELABEL, for one payment_method on one account, which connection to use — and lets you branch by buyer attributes (country, currency, amount, card brand, custom metadata, …).
Common contract
Base URL
https://api.whitelabel.comAuthentication & headers
| Header | Required | Notes |
|---|---|---|
public-api-key | yes | Your merchant public API key. The account this key belongs to determines which account the request operates on. |
private-secret-key | yes | Your merchant private secret key. |
X-Idempotency-Key | on POST and PATCH | UUID, 24-hour scope. Re-sending the same key + body returns the cached response; same key with a different body returns a 409. |
Content-Type: application/json | yes |
Use an account key or an organization key. Dashboard Developers → Customized API keys are rejected on every /v1/routing* and /v1/connections* endpoint today.
Conventions
- Field names are
snake_caseeverywhere — request, response, errors. The one exception is insideparams[]on the provider catalog response, where individualparam_idvalues are passed through with their native casing (merchantAccount,HMAC_KEY,apple-merchant-id, etc.) — you must echo these verbatim when creating a connection. - Error envelope is the same across all endpoints:
{
"type": "validation_error",
"code": "MISSING_REQUIRED_PARAM",
"message": "Required param 'merchantAccount' is missing for provider 'ADYEN'",
"details": { "provider_id": "ADYEN", "param_id": "merchantAccount" }
}Stable code values are listed per endpoint.
API Reference › Organizations › Connections