Routing - Rule Evaluate
Endpoint: POST /routing/rule/evaluate
cURL example
curl --request POST \
--url https://sandbox.hyperswitch.io/routing/rule/evaluate \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"created_by": "<string>",
"parameters": {},
"fallback_output": [
{
"gateway_name": "authipay",
"gateway_id": "<string>"
}
]
}
'Successful response (200)
Authorizations
api-key (string, header, required)
Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Keep your API key secret. Do not embed it in client-side applications or public repositories.
Request Body (application/json)
created_by (string, required)
parameters (object, required) Parameters that can be used in the routing evaluate request. Example structure:
fallback_output (object[], required) Array of fallback outputs. Example element:
Response (200 application/json)
Routing rules evaluated successfully.
status (string, required)
output (any, required)
evaluated_output (object[], required) — evaluated routing outputs
eligible_connectors (object[], required) — connectors considered eligible
Each object in evaluated_output / eligible_connectors may contain fields like:
connector
merchant_connector_id
Was this page helpful?
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/routing/routing--rule-evaluate.mdx
Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/routing/routing--rule-evaluate
Related:
Routing - Feedback: https://api-reference.hyperswitch.io/v1/routing/routing--feedback
Relay - Create: https://api-reference.hyperswitch.io/v1/relay/relay