Returns all payment routing rules configured for a store, including the primary gateway type and fallback gateway types assigned to each rule.
Endpoint
plain text
GET /public/v1/payment/routing/rules/gatewayRequest Headers
Sample cURL Request
Shell
curl--location'https://xstak-pay-stg.xstak.com/public/v1/payment/routing/rules/gateway' \
--header'x-api-key: your_xpay_api_key' \
--header'x-account-id: account_id'Response
Returns an array of routing rule objects.
Response Fields
Sample Response
JSON
[
{
"rule_id": "rule_01",
"enabled": true,
"gatewayType": "bank-alfalah",
"fallback_gateway": [
{
"gateway_type": "meezan-paypro"
}
],
"rule_attributes": [
"Commercial"
]
},
{
"rule_id": "rule_02",
"enabled": false,
"gatewayType": "pay-fast",
"fallback_gateway": [
{
"gateway_type": "meezan-paypro"
}
],
"rule_attributes": [
"Residential"
]
}
]