Routing - Deactivate
Deactivate a routing configuration.
Endpoint
POST https://sandbox.hyperswitch.io/routing/deactivate
cURL
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": "authipay",
"merchant_connector_id": "<string>"
}
},
"profile_id": "<string>",
"transaction_type": "payment"
}
'Authorization
Header: api-key (string) — 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.
Request (application/json)
Fields:
name — string | null
description — string | null
algorithm — object
(This object has child attributes; see expandable section below.)
profile_id — string | null
transaction_type — enum Available options:
payment,payout,three_ds_authentication
Response (200 — application/json)
Successfully deactivated routing config. Example response:
Response fields:
id — string (required)
profile_id — string (required)
name — string (required)
kind — enum (required) Available options:
single,priority,volume_split,advanced,dynamic,three_ds_decision_ruledescription — string (required)
created_at — integer (required)
modified_at — integer (required)
algorithm_for — enum Available options:
payment,payout,three_ds_authenticationdecision_engine_routing_id — string | null
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v1/routing/routing--deactivate.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v1/routing/routing--deactivate