---
title: "Update Sub-Account Fees"
method: POST
path: "/merchants/subaccount/fee"
---

# Update Sub-Account Fees

`POST /merchants/subaccount/fee`

This following endpoint allows master accounts to manage fees for subaccounts

## Request body

- object
  - `id` string, required — Unique identifier of the subaccount, which can be taken from the response of Register subaccount API or Fetch Subaccount API
  - `payment_fees` object[] — Details on which payment method will be assigned with the fee, including the fee configuration. Either fixed_fee or percentage_fee is mandatory; you must provide one of them, but providing both is not required, If both fee presents, The fee is calculated by accumulating percentage fee (applied to the total amount before the fee) to the fixed fee.
    - `payment_method_id` string, required — Payment method which will be updated with the new fee. Possible values: BCA, BNI For the complete list of the supported payment methods and its payment_method_id (code) please refer here: Supported Payment Method
    - `fixed_fee` string — Amount of the fixed fee. Example: "1000"
    - `percentage_fee` string — Amount of the percentage fee. Example: "10"
  - `disbursement_fees` object, required — Details on the configuration of disbursement fees.
    - `type` string, required — Fee type, possible values: flat, percentage
    - `fee` string, required — Amount of respective fee type

## Response `200`

200

- object
  - `message` string
  - `data` object
    - `id` string
    - `payment_fees` object[]
      - `payment_method_id` string
      - `fixed_fee` string
      - `percentage_fee` string
    - `disbursement_fees` object
      - `type` string
      - `fee` string

## Other responses

- `400` — 400
- `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/revisions/ffc0e7e8a227/schema)
