Body
application/json
Example:
"Test Routing Rule"
Example:
{
  "globals": {},
  "default_selection": {
    "priority": { "connectors": ["stripe", "checkout"] }
  },
  "rules": [
    {
      "name": "High Amount Card",
      "routing_type": "priority",
      "output": { "priority": { "connectors": ["adyen"] } },
      "statements": [
        {
          "condition": [
            {
              "lhs": "payment_method",
              "comparison": "equal",
              "value": "card",
              "metadata": {}
            },
            {
              "lhs": "amount",
              "comparison": "greater_than",
              "value": 1000,
              "metadata": {}
            }
          ]
        }
      ]
    }
  ],
  "metadata": {}
}Response
Successful creation
Algorithm Id for the routing rule
Example:
"routing_ec1ac351-7944-440f-bdc7-6a500df1116f"
name of the routing rule
Example:
"test routing rule"
Timestamp for creation of routing rule
Example:
"2025-04-09 8:03:44.85588"
Timestamp for modification of routing rule
Example:
"2025-04-09 8:03:44.85588"