Skip to main content
POST
Legacy decision gateway

Authorizations

Authorization
string
header
required

JWT token obtained from /auth/login

Body

application/json
merchantId
string
required
Example:

"test_merchant"

paymentInfo
object
required
eligibleGatewayList
string[]
required
Example:
rankingAlgorithm
enum<string>
required
Available options:
SR_BASED_ROUTING,
PL_BASED_ROUTING,
NTW_BASED_ROUTING,
NTW_SR_HYBRID_ROUTING
Example:

"SR_BASED_ROUTING"

eliminationEnabled
boolean
default:false
enableMultiObjective
boolean

Per-request override for the multi-objective (cost-aware) post-step. true forces it on, false forces it off; omitted falls back to the merchant's multi_objective_routing_enabled feature flag.

Response

200 - application/json

Gateway decision result

decided_gateway
string
Example:

"stripe"

routing_approach
string

Routing approach used. SR_SELECTION_MULTI_OBJECTIVE indicates the multi-objective post-step promoted a cheaper gateway over the SR head.

Example:

"SR_SELECTION_V3_ROUTING"

gateway_priority_map
object
Example:
routing_dimension
string
routing_dimension_level
string
reset_approach
string
is_scheduled_outage
boolean
is_rust_based_decider
boolean
debit_routing_output
object
latency
number
multi_objective_info
object | null

Populated when the multi-objective post-step ran (multi_objective_routing_enabled feature flag or enableMultiObjective request field, outside hedging). Null otherwise.