Skip to main content
POST
/
euclid.EuclidService
/
Evaluate
Evaluate an existing routing Rule
curl --request POST \
  --url https://api.example.com/euclid.EuclidService/Evaluate \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-profile-id: <x-profile-id>' \
  --header 'x-tenant-id: <x-tenant-id>' \
  --data '
{
  "algorithm_id": "routing_ec1ac351-7944-440f-bdc7-6a500df1116f",
  "parameters": {
    "payment_method": {
      "type": "enum_variant",
      "value": "card"
    },
    "amount": {
      "type": "number",
      "value": 2000
    }
  }
}
'
{
  "status": "success",
  "output": {
    "priority": {
      "connectors": [
        "stripe",
        "adyen"
      ]
    }
  },
  "evaluated_output": [
    "stripe"
  ],
  "eligible_connectors": []
}

Headers

x-tenant-id
string
required
x-profile-id
string
required
x-api-key
string
required

Body

application/json
algorithm_id
string
Example:

"routing_ec1ac351-7944-440f-bdc7-6a500df1116f"

parameters
object
Example:
{
"payment_method": { "type": "enum_variant", "value": "card" },
"amount": { "type": "number", "value": 1500 }
}

Response

Evaluation result

status
string
output
object
Example:
{ "connectors": ["stripe", "adyen"] }
evaluated_output
string[]
eligible_connectors
string[]