Routing Rules
Hybrid routing evaluation
Changed onEvaluate hybrid routing using the active routing rule plus runtime payment context.
post/routing/hybrid
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/routing/hybrid
- Auth
- HTTP bearer
- or API key in header x-api-key
Request body
Example request
{
"static_routing_request": {
"created_by": "merchant_demo",
"payment_id": "rule_decision_001",
"fallback_output": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
],
"parameters": {
"payment_method_type": {
"type": "enum_variant",
"value": "credit"
},
"amount": {
"type": "number",
"value": 1000
}
}
},
"dynamic_routing_request": {
"merchantId": "test_merchant",
"paymentInfo": {
"paymentId": "pay_001",
"amount": 1000,
"currency": "USD",
"paymentType": "ORDER_PAYMENT",
"paymentMethodType": "CREDIT",
"paymentMethod": "CARD",
"country": "US",
"customerId": "cust_123",
"authType": "THREE_DS",
"cardIsin": "411111",
"cardType": "CREDIT"
},
"eligibleGatewayList": [
"stripe",
"paypal",
"adyen"
],
"rankingAlgorithm": "SR_BASED_ROUTING"
}
}Response
OK
Example response
{
"static_routing": {
"status": "success",
"evaluated_output": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
],
"eligible_connectors": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
]
},
"evaluated_connectors": [
{
"gateway_name": "stripe",
"gateway_id": "mca_111"
}
]
}Changes
- warning
removed the request property
////// - info
added the new optional request property
//////
- warning
- info
added the new optional request property
- info
added the new optional request property
- 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