GET
/api/v1/customer/friend-list
This API will return a list of friends for the current logged in customer. You can retrieve team only, friends only or both in the result list.
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
type | STRING (team / friends / all) |
Sample Response
{
"status": true,
"items": [
{
"id": "nK8oWGj0zxqELP1A53ak",
"name": "Jody Foster",
"customer_description": "",
"friend_status": 1,
"team_store_count": 1,
"avatar": "http:\/\/controlcenter.ftx\/customer\/images\/default-avatars\/4?v=1532716929",
"total_balance": 0
},
{
"id": "QD59AxOJm2MenXb14Pw7",
"name": "Michelle Rivera",
"customer_description": "",
"friend_status": -1,
"team_store_count": 1,
"avatar": "http:\/\/controlcenter.ftx\/customer\/images\/avatar\/QD59AxOJm2MenXb14Pw7\/thumb?v=1532716929",
"total_balance": 0
}
]
}{
"status": false,
"errorCode": "NO_ITEMS",
"message": "There are currently no friends or team members for this member"
}{
"status": false,
"message": "Invalid customer in request"
}