Skip to main content
Version: 3.0.0

Activate Child Account

Activate a child account and confirm its link with the parent account

curl --location 'https://partner-apistg.ahamove.com/v3/accounts/childs/<child_id>/activate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"activation_code": "1234"
}'

HTTP Request

POST https://partner-apistg.ahamove.com/v3/accounts/childs/849xxxxxxxx/activate

Headers

ParameterValueRequiredDescription
Content-Typeapplication/jsonYes
AuthorizationBearer <token>YesToken of the parent account

Query Parameters

ParameterTypeRequiredDescription
child_idStringYesPhone number of the child account
activation_codeStringYesActivation code sent to the child account for verification

Response

JSON response example:

{
"_id": "849xxxxxxxx",
"name": "Nguyễn Văn A",
"partner": "ahamove",
"parent_id": "84912345678",
...
}

Status-Code: 200 OK

Errors

CodeTextDescription
404NOT_FOUND- Token not found
- child_id not found
401NOT_AUTHORIZED- The parent account is not linked with a partner
- The parent account is already a child account of another parent
406INVALID_ACTIVATION_CODEInvalid activation code
409PARENT_ACCOUNT_EXISTEDThe child account already has a parent account
500INTERNAL_SERVER_ERRORWe had a problem with our server. Try again later
503SERVICE_UNAVAILABLEWe're temporarily offline for maintenance. Please try again later