| title | Evaluate Routing Algorithm |
|---|---|
| description | Curl example for /routing/evaluate. |
/routing/evaluate evaluates the active routing algorithm for a payment context. It does not update SR scores.
curl --location "$BASE_URL/routing/evaluate" \
--header "$AUTH_HEADER" \
--header "Content-Type: application/json" \
--data '{
"merchantId": "merchant_demo",
"paymentInfo": {
"paymentId": "eval_001",
"amount": 1000,
"currency": "USD",
"paymentType": "ORDER_PAYMENT",
"paymentMethodType": "CARD",
"paymentMethod": "CREDIT",
"authType": "THREE_DS"
}
}'{
"priority": [
{ "gateway_name": "stripe", "gateway_id": "mca_111" },
{ "gateway_name": "adyen", "gateway_id": "mca_112" }
]
}