---
title: "Deactivate routing rule"
method: POST
path: "/routing/deactivate"
tags: ["Routing Rules"]
---

# Deactivate routing rule

`POST /routing/deactivate`

Deactivate an active routing rule mapping by routing algorithm ID for a merchant. The call is idempotent: if the algorithm exists but is already inactive for the merchant, the API returns success.

## Request body

- DeactivateRoutingRuleRequest
  - `created_by` string, required
  - `routing_algorithm_id` string, required

## Response `200`

Rule deactivated. The response body is empty.

## Other responses

- `400` — Routing algorithm ID was not found.

## Changes

- **2026-08-04** `36e7a0972ee6` — 1 warning, 2 info
  - removed the optional property `error` from the response with the `400` status
  - added the optional property `code` to the response with the `400` status
  - added the optional property `data` to the response with the `400` status
- **2026-04-27** `c88bc05bf169` — 1 info
  - endpoint added
- **2026-04-10** `9618544de91a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/juspay/apis/decision-engine/changes/routing/deactivate/post.md)

---

[API](https://skmtc.dev/juspay/apis/decision-engine.md) · [All operations](https://skmtc.dev/juspay/apis/decision-engine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/juspay/decision-engine/revisions/a35ceeb59faf/schema)
