---
title: "Update Sub-Account"
method: PUT
path: "/merchants/subaccount/{id}"
---

# Update Sub-Account

`PUT /merchants/subaccount/{id}`

The following endpoint updates subaccount's informations

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string — Name of the sub account
  - `ref_id` string — The unique identifier of Subaccount from the merchant
  - `is_enabled` boolean — Enable/Disable the respective subaccount

## Response `200`

200

## Other responses

- `500` — 500

---

[API](https://skmtc.net/durianpay/apis/durianpay-api.md) · [All operations](https://skmtc.net/durianpay/apis/durianpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/durianpay/durianpay-api/versions/ffc0e7e8a227/schema)
