Get Child Account List
Returns a list of child accounts of a parent account with parent token
HTTP Request
- cURL
 - JavaScript
 
curl -X GET \
'https://apistg.ahamove.com/v1/partner/get_child_list?token=<TOKEN_STG>' \
-H  'cache-control: no-cache'
var requestOptions = {
  method: 'GET',
  redirect: 'follow',
};
fetch(
  'https://apistg.ahamove.com/v1/partner/get_child_list?token=<TOKEN_STG>',
  requestOptions
)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.log('error', error));
GET https://apistg.ahamove.com/v1/partner/get_child_list
Query Parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| token | String | Yes | Parent token. | 
Response
JSON response example:
[
  {
    "_id": "84xxxxxxxxx",
    "name": "store test test test",
    "partner": "test_key",
    "email": null,
    "referral_code": "84xxxxxxxxx",
    "country_code": "VN",
    "currency": "VND",
    "account_status": "ACTIVATED",
    "create_time": 1551155326.708945,
    "parent_id": "84xxxxxxxxx",
    "home": {
      "address": "4 Nguyen Dinh Chieu,Da Kao,Quan 1,TPHCM",
      "lat": 10.7918246,
      "lng": 106.7022344
    },
    "city_id": ["SGN"]
  }
]
Status-Code: 200 OK
Errors
| Code | Text | Description | 
|---|---|---|
404 | Not Found | Token not found. | 
500 | Internal Server Error | We had a problem with our server. Try again later. | 
503 | Service Unavailable | We're temporarily offline for maintenance. Please try again later. |