Dark Mode

Register Sub Account API


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

/merchants/subaccount

Request Attributes

name

String
Mandatory

Name of the sub account

email

String
Mandatory

Email of the sub account

ref_id

String
Optional

The unique identifier of Subaccount from the merchant

Example Request to Register Sub Account

Example
curl -X POST \
  https://api.durianpay.id/v1/merchants/subaccount \
  -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"    
  }'

Response Code

200 - Success

1
2
3
4
5
6
7
8
{
  "data": {
      "id": "mer_abc123def456",
      "name": "Awesome Sub Organization 001",
      "email": "organization_001@masterorg.biz",
      "ref_id": "organization_001"
  }
}

400 - Invalid Request

401 - invalid credential

500 - Internal server error