v11

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-08-014635124.5 KB
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

namestring required
descriptionstring
created_bystring required
algorithm_for'payment' | 'payout' | 'three_ds_authentication'

Example request

{
  "name": "default-priority",
  "created_by": "test_merchant",
  "algorithm": {
    "type": "priority"
  }
}

Response

Routing rule created

rule_idstring nullable
namestring
descriptionstring
created_bystring
algorithm_forstring

Example response

{
  "rule_id": "rule_abc123",
  "created_by": "test_merchant",
  "algorithm": {
    "type": "priority"
  }
}