Evaluate routing rule
Changed onEvaluate 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.
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/routing/evaluate
- Auth
- HTTP bearer
- or API key in header x-api-key
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"
}
]
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
the endpoint scheme security
BearerAuthwas added to the API
- info