Create routing rule
Changed onCreate a new Euclid declarative routing rule for a merchant. Supports advanced (full Euclid DSL), priority (ordered gateway list), single (fixed gateway), volume_split (percentage-based distribution), ab_test, and volume_contract (volume-commitment contract document, stored in the dedicated algorithm_for: volume_commitment slot; not evaluable by /routing/evaluate) algorithm types.
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/routing/create
- Auth
- HTTP bearer
- or API key in header x-api-key
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"
}Changes
- info
added the new
volume_commitmentenum value to the request property - info
added the new
volume_contractenum value to the request property/
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
added the new
ab_testenum value to the request property/ - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning