Skip to main content
POST
Legacy decision gateway

Authorizations

Authorization
string
header
required

JWT token obtained from /auth/login

Body

application/json

Legacy decider payload built from full internal transaction objects. This is NOT the /decide-gateway shape - posting that body here is rejected with a 400. orderMetadata, txnDetail and txnCardInfo must each carry a partitionKey key (value may be null).

orderReference
object
required

Full internal order object. merchantId inside it identifies the merchant. udfs is an ARRAY of strings, not an object, and id is an integer.

orderMetadata
object
required

Full internal order-metadata object. Required. Note: partitionKey must be PRESENT in this object (it may be null). It is an Option field with a custom deserialize_with and no serde(default), so serde requires the key even though the value is nullable.

txnDetail
object
required

Full internal transaction object. Note: partitionKey must be PRESENT in this object (it may be null). It is an Option field with a custom deserialize_with and no serde(default), so serde requires the key even though the value is nullable.

txnCardInfo
object
required

Full internal card/payment-method object. Note: partitionKey must be PRESENT in this object (it may be null). It is an Option field with a custom deserialize_with and no serde(default), so serde requires the key even though the value is nullable.

merchantAccount
object
required

Full internal merchant account object. gatewaySuccessRateBasedDeciderInput is a required string - null is rejected.

txnOfferDetails
object[] | null
cardToken
string | null
txnType
string | null
shouldCreateMandate
boolean | null
enforceGatewayList
string[] | null
Example:
priorityLogicOutput
object | null
priorityLogicScript
string | null
isEdccApplied
boolean | null
shouldConsumeResult
boolean | null

Response

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.

fallback_gateways
string[]
Example:
filter_wise_gateways
object | null
priority_logic_tag
string | null
priority_logic_output
object | null
gateway_mga_id_map
object | null
is_dynamic_mga_enabled
boolean
gateway_before_evaluation
string | null

Gateway the SR head selected before the multi-objective / debit-routing post-step replaced it.