Fetch Sub-Account

This following endpoint retrieves the details of all created subaccounts

get/merchants/subaccount

Request

  • Base URL
    https://api.durianpay.id/v1
  • URL
    https://api.durianpay.id/v1/merchants/subaccount
  • Auth
    HTTP basic

Query parameters

skipinteger

The number of subaccount to be skipped. The default value is 0. This can be used for pagination. in combination with count

limitinteger

Number of subaccount to be fetch. This can be used for pagination. in combination with the skip parameter

Response

200

Example response

{
  "data": {
    "subaccounts": [
      {
        "id": "mer_6VFgScbAcL7612",
        "name": "Demo Sub Mercahnt",
        "is_enabled": true,
        "subaccount_ref_id": "reference_demo_001"
      }
    ],
    "total_count": 2
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.