Create a Routing
Routing
Create a Routing
Creates a routing for one (account_code, payment_method) pair. Always live on success.
POST
Create a Routing
Creates a routing for one
(account_code, payment_method) pair. Each routing references connections by their connection_id. Make sure your connections are created and ACTIVE for the requested payment_method before you call routing.
Body
The merchant account ID this routing rule applies to.
E.g.,
CARD, PIX, WALLET. Immutable per routing — to route a different method, create a new routing.Free-form label.
The route used when no
condition_sets[] matches.Optional. Ordered by
sort_number — first matching set wins.Response
Unique identifier for the routing.
Unique code for the account.
The payment method this routing applies to (e.g.,
CARD).Label for the routing.
The default routing logic.
Optional conditional logic.
ISO 8601 timestamp.
ISO 8601 timestamp.
Errors
| HTTP | code | When |
|---|---|---|
400 | ROUTING_VALIDATION_FAILED | Schema or rule violation. details names the offending field/path. |
400 | ROUTING_PROVIDER_NOT_AVAILABLE | A step references a (provider_id, connection_id) not active for the account on this payment_method. |
409 | ROUTING_ALREADY_EXISTS | A routing already exists for this (account, payment_method). Use PATCH to update it. |
403 | INSUFFICIENT_SCOPE | API key missing routing:write. |
Authorizations
Headers
Body
application/json
Response
Created
Example:
"r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f"
Example:
"acc-uuid"
Example:
"CARD"
Example:
"Card routing"
Example:
"2026-05-12T14:30:00Z"
Example:
"2026-05-12T14:30:00Z"
Example:
["MONITOR_REDISTRIBUTION_DEFERRED"]