Back to Hyperswitch

Deactivate Routing Algorithm

api-reference/decision-engine-api-reference/api-reference/guides/configure-routing/routing-algorithm-deactivate.mdx

2026.08.07.01.2 KB
Original Source

Deactivate Routing Algorithm

Use /routing/deactivate to remove the active mapping for a merchant-scoped routing algorithm without deleting the algorithm itself.

Request

bash
curl --location "$BASE_URL/routing/deactivate" \
  --header "$AUTH_HEADER" \
  --header "Content-Type: application/json" \
  --data '{
    "created_by": "merchant_demo",
    "routing_algorithm_id": "routing_e641380c-6f24-4405-8454-5ae6cbceb7a0"
  }'

Response

Success returns HTTP 200 with an empty response body.

Behavior

  • If the routing algorithm exists and is active for the merchant, the active mapping is deleted.
  • If the routing algorithm exists but is already inactive, the request still succeeds.
  • If the routing algorithm ID does not exist, the request fails with 400.