Get Child Account List
Get a list of child accounts associated with the parent account using the User ID in the token
- cURL
- JavaScript
curl --location 'https://partner-apistg.ahamove.com/v3/accounts/childs' \
--header 'Authorization: Bearer <token>' \
const myHeaders = new Headers();
myHeaders.append('Authorization', 'Bearer <token>');
const requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow',
};
fetch('https://partner-apistg.ahamove.com/v3/accounts/childs', requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
HTTP Request
GET https://partner-apistg.ahamove.com/v3/accounts/childs
Headers
Parameter | Value | Required | Description |
---|---|---|---|
Authorization | Bearer <token> | Yes | Token of the parent account |
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": {},
"city_id": ["SGN"]
}
]
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
401 | NOT_AUTHORIZED | Invalid token |
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 |