Skip to main content
Version: 3.0.0

Add Child Account

  • Add a child account to a parent account. The parent account is already linked with a partner
  • After calling the API to add a child account, an SMS will be sent to the child account to verify the account link
curl --location 'https://partner-apistg.ahamove.com/v3/accounts/childs' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"child_id": "849xxxxxxxx"
}'

HTTP Request

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

Headers

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

Query Parameters

ParameterTypeRequiredDescription
child_idStringYesPhone number of the child account

Response

JSON response example:

{}

Status-Code: 200 OK

Errors

CodeTextDescription
401NOT_AUTHORIZED- The parent account is not linked with a partner
- The parent account is already a child account of another parent
404NOT_FOUNDAccount not found
406ACCOUNT_NOT_SAME_PARTNERThe child account is not associated with the same partner as the parent account
406INVALID_PHONE_NUMBERInvalid phone number
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