Skip to main content
POST
/
account
/
{account_id}
/
business_profile
/
{profile_id}
/
dynamic_routing
/
elimination
/
create
Routing - Elimination
curl --request POST \
  --url https://sandbox.hyperswitch.io/account/{account_id}/business_profile/{profile_id}/dynamic_routing/elimination/create \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "params": [
    "PaymentMethod"
  ],
  "elimination_analyser_config": {
    "bucket_size": 1,
    "bucket_leak_interval_in_secs": 1
  },
  "decision_engine_configs": {
    "threshold": 123
  }
}'
{
  "id": "<string>",
  "profile_id": "<string>",
  "name": "<string>",
  "kind": "single",
  "description": "<string>",
  "created_at": 123,
  "modified_at": 123,
  "algorithm_for": "payment",
  "decision_engine_routing_id": "<string>"
}

Authorizations

api-key
string
header
required

Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.

Path Parameters

account_id
string
required

Merchant id

profile_id
string
required

Profile id under which Dynamic routing needs to be created

Query Parameters

enable
enum<string>
required

Feature to enable for elimination based routing

Available options:
metrics,
dynamic_connector_selection,
none

Body

application/json
decision_engine_configs
object
required
params
enum<string>[] | null
elimination_analyser_config
object

Response

Routing Algorithm created

id
string
required
profile_id
string
required
name
string
required
kind
enum<string>
required
Available options:
single,
priority,
volume_split,
advanced,
dynamic,
three_ds_decision_rule
description
string
required
created_at
integer
required
modified_at
integer
required
algorithm_for
enum<string>
Available options:
payment,
payout,
three_ds_authentication
decision_engine_routing_id
string | null