Skip to main content
Version: 3.0.0

Remove Child Account

Remove a child account from the parent account, which is already linked with a partner Conditions for successfully removing a child account:

  • The child account does not have any ongoing orders.
  • The child account must settle any outstanding balance (if applicable)
curl --location --request DELETE 'https://partner-apistg.ahamove.com/v3/accounts/childs/<child_id>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \

HTTP Request

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

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": "success"
}

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
402NOT_ALLOWED- Child account has ongoing orders
- Child account has unsettled balance
404NOT_FOUND- Token not found
- child_id not found
406INVALID_PHONE_NUMBERInvalid phone number
500INTERNAL_SERVER_ERRORWe had a problem with our server. Try again later
503SERVICE_UNAVAILABLEWe're temporarily offline for maintenance. Please try again later