---
title: "Update debit routing flag"
method: POST
path: "/merchant-account/{merchantId}/debit-routing"
tags: ["Merchant Account"]
---

# Update debit routing flag

`POST /merchant-account/{merchantId}/debit-routing`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/merchant-account/{merchantId}/debit-routing`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Enable or disable runtime debit/network routing for a merchant.

## Path parameters

- `merchantId` string, required

## Request body

- DebitRoutingRequest
  - `enabled` boolean, required

## Response `200`

Debit routing flag updated

- DebitRoutingResponse
  - `merchant_id` string
  - `debit_routing_enabled` boolean

## Other responses

- `404`: Merchant not found

## Changes

- **2026-08-04** `36e7a0972ee6`: 1 warning, 2 info
  - removed the optional property `error` from the response with the `404` status
  - added the optional property `code` to the response with the `404` status
  - added the optional property `data` to the response with the `404` status
- **2026-04-25** `986e537b0455`: 1 info
  - endpoint added
- **2026-04-10** `9618544de91a`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/juspay/apis/decision-engine/changes/merchant-account/:merchantId/debit-routing/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.dev/juspay/apis/decision-engine/revisions/718ef5ac8634?raw)
