Skip to main content
POST
/
routing
/
deactivate
Routing - Deactivate
curl --request POST \
  --url https://sandbox.hyperswitch.io/routing/deactivate \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "algorithm": {
    "type": "single",
    "data": {
      "connector": "<any>",
      "merchant_connector_id": "<any>"
    }
  },
  "profile_id": "<string>",
  "transaction_type": "payment"
}'
{
  "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.

Body

application/json
name
string | null
description
string | null
algorithm
object
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
profile_id
string | null
transaction_type
enum<string>
Available options:
payment,
payout,
three_ds_authentication

Response

Successfully deactivated routing config

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