Get Downlines Information of client
POST /public/v1/users/downlines
Request Body
| Key | Type | Required | Rule | Description |
|---|---|---|---|---|
| user_id | string | Optional | fixed(8) | unique id of user |
string | Optional | email | email of user |
Expected HTTP status code
- 200
Response
| Name | Type | Description |
|---|---|---|
| id | string | user unique id in CRM |
string | user's email | |
| phone | object | user's phone object |
| phone.country_code | string | user's phone country code |
| phone.number | string | user's phone number |
| downlines | array | users's direct downlines |
| downlines[].email | array | users's email |
| downlines[].phone | array | users's phone object |
| downlines[].phone.country_code | array | user's phone country code |
| downlines[].phone.number | array | user's phone number |
| downlines[].downlines | array | users's direct downlines |
Error
| Code | Type | Description |
|---|---|---|
400 | user_not_found | Cannot find user from user_id or email |