Skip to main content

Remove Child Account

Remove child account out of parent account, the parent account needs to be enabled by the “partner” field

HTTP Request

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

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

Query Parameters

ParameterTypeRequiredDescription
tokenStringYesParent token.
child_idStringYesChild Account ID.

Response

JSON response example:

{}

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.
402Not allowedChild main balance < 0 or child has ongoing orders.
406Not Acceptablechild_id not valid (child_id not found in 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.