> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.hyperswitch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Deactivate Routing Algorithm

> Curl example for deactivating a routing algorithm.

# Deactivate Routing Algorithm

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

## Request

```bash theme={null}
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`.

## Related

* [Create Routing Algorithm](/decision-engine-api-reference/api-reference/guides/configure-routing/routing-algorithm-create)
* [Activate Routing Algorithm](/decision-engine-api-reference/api-reference/guides/configure-routing/routing-algorithm-activate)
* [List Active Routing Algorithms](/decision-engine-api-reference/api-reference/guides/configure-routing/routing-algorithm-list-active)
