Routing Rules
Create routing rule
Create a new Euclid declarative routing rule for a merchant. Supports advanced (full Euclid DSL), priority (ordered gateway list), single (fixed gateway), and volume_split (percentage-based distribution) algorithm types.
post/routing/create
Request body
Example request
{
"name": "default-priority",
"created_by": "test_merchant",
"algorithm": {
"type": "priority"
}
}Response
Routing rule created
Example response
{
"rule_id": "routing_e641380c-6f24-4405-8454-5ae6cbceb7a0",
"name": "priority rule",
"algorithm_for": "payment",
"created_at": "2026-04-26 10:00:00.000000",
"modified_at": "2026-04-26 10:00:00.000000"
}