Skip to main content
PATCH
Update a Routing
Replaces the routing’s full configuration. The body has the same shape as Create a Routing — the new default_route and condition_sets[] entirely supersede the previous live state. There is no field-level merge. account_code and payment_method are sticky to the routing_id — they’re set at creation and cannot be changed by PATCH.

Path Parameters

string
required
The id returned by Create a Routing.

Response

string
Unique identifier for the routing.
string
Unique code for the account.
enum
The payment method this routing applies to (e.g., CARD).
string
Label for the routing.
object
The default routing logic.
object[]
Optional conditional logic.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.

Errors

Authorizations

PUBLIC-API-KEY
string
header
default:<Your PUBLIC-API-KEY>
required
PRIVATE-SECRET-KEY
string
header
default:<Your PRIVATE-SECRET-KEY>
required

Headers

X-Idempotency-Key
string<uuid>
required

Path Parameters

routing_id
string<uuid>
required

Body

application/json
name
string
Example:

"Updated Card routing"

default_route
object
condition_sets
object[]

Response

OK

id
string
Example:

"r_8f2c1d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f"

account_code
string
Example:

"acc-uuid"

payment_method
string
Example:

"CARD"

name
string
Example:

"Updated Card routing v2"

default_route
object
condition_sets
object[]
created_at
string<date-time>
Example:

"2026-05-12T14:30:00Z"

updated_at
string<date-time>
Example:

"2026-05-12T14:30:00Z"