Fetch Subaccount API
This following endpoint retrieves the details of all created subaccounts
/merchants/subaccount
Query Attributes
skip
Integer
Optional
The number of subaccount to be skipped. The default value is 0. This can be used for pagination. in combination with count
limit
Integer
Optional
Number of subaccount to be fetch. This can be used for pagination. in combination with the skip parameter
Example Request to Fetch Subaccount API
Example
curl -X GET \
https://api.durianpay.id/v1/merchants/subaccount?limit=10&skip=0 \
-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
{ "data": { "subaccounts": [ { "id": "mer_6VFgScbAcL7612", "name": "Demo Sub Mercahnt", "is_enabled": true, "subaccount_ref_id": "reference_demo_001" }, { "id": "mer_x6EzWyIeVX3831", "name": "Subaccount - Nobel", "is_enabled": false, "subaccount_ref_id": "Nobel - Subaccount" } ], "total_count": 2 } }
401 - Invalid Limit
500 - Internal server error