Dark Mode

Fetch Subaccount Fees API


The following endpoint retrieves fees of a single subaccount

/merchants/subaccount/fee/:id

Path Attributes

id

String
Mandatory

Unique identifier of the subaccount, which can be taken from the response of Register subaccount API or Fetch Subaccount API

Example Request to get fee sub account

Example
curl -X GET \
  https://api.durianpay.id/v1/merchants/subaccount/fee/mer_123 \
  -H 'authorization: [Base64({Your_Secret_Key}:)]' \
  -H 'content-type: application/json'

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  "data": {
        "id": "mer_123",
          "payment_fees": [
        {
            "payment_method_id": "GOPAY",
            "fixed_fee": "500",
            "percentage_fee": "3"
        },
        {
            "payment_method_id": "DANA",
            "fixed_fee": "1000",
            "percentage_fee": "3"
        }
    ],
    "disbursement_fees": {
        "type": "percentage",
        "fee": "30"
    }
}
}

500 - Internal server error