Skip to main content
Version: 1.0.0

Activate Child Account

Activate child account to a parent account

HTTP Request

curl -X GET \
'https://apistg.ahamove.com/v1/partner/activate_child_account?token=<TOKE_STG>&child_id=84xxxxxxxxx&activation_code=1234' \
-H 'cache-control: no-cache'

GET https://apistg.ahamove.com/v1/partner/activate_child_account

Query Parameters

ParameterTypeRequiredDescription
tokenStringYesParent token.
child_idStringYesChild Account ID.
activation_codeStringYesActivation code was received when adding a child account to parent account.

Response

JSON response example:

{
"_id": "84xxxxxxxxx",
"name": "Minh Pham",
...
}

Status-Code: 200 OK

Errors

CodeTextDescription
404Not FoundToken not found, child_id not found.
401UnauthorizedParent account doesn’t have the “partner” field or child account belongs to another partner.
409ConflictParent existed, Sub-child accounts existed (The child account already has a parent or is already a parent of other accounts).
406Not AcceptableActivation code not valid.
500Internal Server ErrorWe had a problem with our server. Try again later.
503Service UnavailableWe're temporarily offline for maintenance. Please try again later.