Routing Rules
Evaluate routing rule
Evaluate the active routing rule for a merchant against a payment context. Returns the ordered list of gateways selected by the rule without consuming SR data.
post/routing/evaluate
Request body
Example request
{
"created_by": "merchant_demo",
"payment_id": "rule_decision_001",
"fallback_output": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
],
"parameters": {
"payment_method_type": {
"type": "enum_variant",
"value": "credit"
},
"amount": {
"type": "number",
"value": 1000
}
}
}Response
Evaluation result with ordered gateway list
Example response
{
"status": "success",
"evaluated_output": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
],
"eligible_connectors": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
]
}