Dark Mode

Register Sub Account API


The following endpoint registers a sub account under your master account.

The settlement account details are optional while registering sub accounts but are required to settle the payments to sub accounts.

/merchants/submerchant

Request Attributes

name

String
Mandatory

Name of the sub account

email

String
Mandatory

Email of the sub account

ref_id

String
Optional

Reference ID of the sub account

settlement_account_number

String
Optional

Settlement account number of the sub account for settling balance

settlement_account_bank_code

String
Optional

Settlement account bank code of the sub account for settling balance

Example Request to Register Sub Account

Example
# for registering sub accounts
curl -X POST \
  https://api.durianpay.id/v1/merchants/submerchant \
  -H 'authorization: [Base64({Your_Secret_Key}:)]' \
  -H 'content-type: application/json' \
  -d '{
    "name": "Awesome Sub Organization 001",
    "email": "organization_001@masterorg.biz",
    "ref_id": "organization_001",
    "settlement_account_number": "1234567890",
    "settlement_account_bank_code": "bca"
  }'

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
{
  "data": {
      "id": "mer_abc123def456",
      "name": "Awesome Sub Organization 001",
      "email": "organization_001@masterorg.biz",
      "ref_id": "organization_001",
      "settlement_account_number": "1234567890",
      "settlement_account_bank_code": "bca",
      "master_account_id": "mer_zyx987wvu654",
  }
}