List Routings

Lists the routings configured on an account. Each item returns the routing’s current live configuration, with the same shape as Retrieve a Routing.

Pass payment_method to list only the routings for that payment method, and omit it to list all of them.

Query Parameters

account_idstringrequired

The account to list routings for. Must belong to the organization your API credentials are scoped to.

payment_methodenum

Optional filter by payment method (e.g., CARD, PIX). Same values as the payment_method field in routing responses.

Response

The routings configured on the account, or an empty array if it has none. Each routing contains:

idstring

Unique identifier for the routing.

account_idstring

Unique identifier for the account.

payment_methodenum

The payment method this routing applies to (e.g., CARD).

namestring

Label for the routing.

default_routeobject

The default routing logic.

condition_setsobject[]

Optional conditional logic.

created_atstring

ISO 8601 timestamp.

updated_atstring

ISO 8601 timestamp.

warningsstring[]

Optional list of non-blocking orchestration warnings (e.g., MONITOR_REDISTRIBUTION_DEFERRED).

cURL
curl -X GET 'https://api.whitelabel.com/v1/routing?account_id=7825fc5e-e50a-4248-9ae8-5d3786afb0be&payment_method=CARD' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>'
200 OK
[
  {
    "id": "r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "account_id": "acc-uuid",
    "payment_method": "CARD",
    "name": "Card routing — Stripe primary, Adyen fallback",
    "default_route": {
      "steps": [
        {
          "index": 1,
          "provider_id": "STRIPE",
          "connection_id": "f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e",
          "output": [
            { "status": "DECLINE_GROUP", "next": 2 },
            { "status": "TIMEOUT",        "next": 2 }
          ]
        },
        { "index": 2, "provider_id": "ADYEN", "connection_id": "b2c4d5e6-..." }
      ]
    },
    "created_at": "2026-05-12T14:30:00Z",
    "updated_at": "2026-05-12T14:30:00Z"
  }
]
400 Bad Request — Missing account_id
{
  "code": "ROUTING_VALIDATION_FAILED",
  "messages": ["account_id is required."]
}
400 Bad Request — Invalid account_id
{
  "code": "INVALID_ACCOUNT_ID",
  "messages": ["account_id 'acc-uuid' does not belong to your organization."]
}

Errors

HTTPcodeWhen
400ROUTING_VALIDATION_FAILEDMissing account_id query parameter.
400INVALID_ACCOUNT_IDaccount_id belongs to an organization your API key doesn’t own.
401NOT_AUTHENTICATEDMissing public-api-key or private-secret-key header.
401INVALID_CREDENTIALSWrong key pair, or a Dashboard Customized API key was used. Use an account key or organization key instead.
GET/routing

Lists all routings of an account, optionally filtered by payment method. Each item has the same shape as Retrieve a Routing.

Query Parameters

account_idstringrequired

Account to list routings for. Must belong to the organization of your API credentials.

payment_methodstring

Filter by payment method (e.g., CARD, PIX).

Response

The routings configured on the account, or an empty array if it has none.

idstring
account_idstring
payment_methodstring
namestring
default_routeobject
Show default_route properties
stepsobject[]
Show steps properties
indexinteger
provider_idstring
connection_idstring
condition_setsobject[]
Show condition_sets properties
sort_numberinteger
namestring
conditionsobject[]
routeobject
created_atstring<date-time>
updated_atstring<date-time>

Bad Request. ROUTING_VALIDATION_FAILED when account_id is missing, INVALID_ACCOUNT_ID when it belongs to a different organization.

codestring
messagesstring[]

Unauthorized

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/routing?account_id=<account_id>&payment_method=<payment_method>" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>"
Response
[
  {
    "id": "r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "account_id": "acc-uuid",
    "payment_method": "CARD",
    "name": "Card routing — Stripe primary, Adyen fallback",
    "default_route": {
      "steps": [
        {
          "index": 1,
          "provider_id": "STRIPE",
          "connection_id": "f1a3c4d5-..."
        }
      ]
    },
    "condition_sets": [
      {
        "sort_number": 1,
        "name": "High Value US",
        "conditions": [
          {}
        ],
        "route": {}
      }
    ],
    "created_at": "2026-05-12T14:30:00Z",
    "updated_at": "2026-05-12T14:30:00Z"
  }
]