Legacy decision gateway
Changed onLegacy compatibility route. New integrations should use /decide-gateway.
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/decision_gateway
- Auth
- HTTP bearer
- or API key in header x-api-key
Request body
Example request
{
"enforceGatewayList": [
"stripe",
"adyen"
]
}Response
Gateway decision result
Example response
{
"decided_gateway": "stripe",
"fallback_gateways": [
"adyen"
],
"gateway_priority_map": {
"stripe": 0.94,
"adyen": 0.87
},
"routing_approach": "SR_SELECTION_V3_ROUTING",
"debit_routing_output": {
"co_badged_card_networks_info": [
{
"network": "NYCE",
"saving_percentage": 1.2
}
],
"issuer_country": "US",
"card_type": "Debit"
},
"reset_approach": "NO_RESET",
"multi_objective_info": {
"outcome": "COST_WON",
"reason": "Promoted 'adyen' over 'stripe' on expected value — saves 80.00 bps for 3.00pp auth.",
"srHead": {
"psp": "adyen",
"authRate": 0.91,
"costBps": 100
},
"chosen": {
"psp": "adyen",
"authRate": 0.91,
"costBps": 100
},
"costSavedBps": 80,
"qualifiedCount": 3,
"margin": 0.2,
"evGapTop2": 0.00182
}
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
added
subschema #2to theresponse propertyoneOflist for the response status - breaking
added
subschema #2to theresponse propertyoneOflist for the response status - breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromnumbertointegernull, and format from no format toint64for status - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
ELIMINATION_RESETenum value to theresponse property for the response status - warning
added the new
NO_RESETenum value to theresponse property for the response status - warning
added the new
SRV2_ELIMINATION_RESETenum value to theresponse property for the response status - warning
added the new
SRV2_RESETenum value to theresponse property for the response status - warning
added the new
SRV3_ELIMINATION_RESETenum value to theresponse property for the response status - warning
added the new
SRV3_RESETenum value to theresponse property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
removed from the
response propertyallOflist for the response status
- breaking
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info