Remove Child Account
Remove child account out of parent account, the parent account needs to be enabled by the “partner” field
HTTP Request
- cURL
- JavaScript
curl -X GET \
'https://apistg.ahamove.com/v1/partner/remove_child_account?token=<TOKEN_STG>&child_id=84xxxxxxxxx' \
-H 'cache-control: no-cache'
var requestOptions = {
method: 'GET',
redirect: 'follow',
};
fetch(
'https://apistg.ahamove.com/v1/partner/remove_child_account?token=<TOKEN_STG>&child_id=84xxxxxxxxx',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
GET https://apistg.ahamove.com/v1/partner/remove_child_account
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
token | String | Yes | Parent token. |
child_id | String | Yes | Child Account ID. |
Response
JSON response example:
{}
Status-Code: 200 OK
Errors
Code | Text | Description |
---|---|---|
404 | Not Found | Token not found, child_id not found. |
401 | Unauthorized | Parent account doesn’t have the “partner” field or child account belongs to another partner. |
402 | Not allowed | Child main balance < 0 or child has ongoing orders. |
406 | Not Acceptable | child_id not valid (child_id not found in parent account). |
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. |