Evaluate routing rules
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.
Request to decide the optimal gateway for routing a payment
Payment information used for routing decision-making
Profile ID of the merchant
"pro_aMoPnEkgCVnh2WVsFe32"
List of eligible gateways for routing consideration
"[\"stripe:mca_123\", \"adyen:mca_456\"]"
SR_BASED_ROUTING, PL_BASED_ROUTING, NTW_BASED_ROUTING Whether elimination logic is enabled for filtering gateways
true
Routing rules evaluated successfully
The gateway decided by the routing engine
"stripe:mca1"
Map of gateways with their priority scores
{ "adyen:mca2": 1, "stripe:mca1": 1 }Gateways organized by filter criteria
Tag identifying the priority logic used
The routing approach used for decision making
"SR_SELECTION_V3_ROUTING"
The gateway that was evaluated before the final decision
"adyen:mca2"
The reset approach applied during routing
"NO_RESET"
Dimensions used for routing decision (payment type, method, etc.)
"ORDER_PAYMENT, UPI, upi"
Level at which routing dimension is evaluated
"PM_LEVEL"
Indicates if routing decision was affected by scheduled outage
false
Indicates if dynamic merchant gateway account is enabled
false
Map of gateways to their MGA IDs