GET
/api/v1/customer/team-requests
This API method will retrieve a list of active team requests. You can retrieve all records, incoming or outgoing team requests by passing an additional type param.
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
type | STRING (all / incoming / outgoing) | false |
Sample Response
{
"status": true,
"items": [
{
"id": "NZXOYVd4E0qre9Dxy0Bp",
"customer_description": "",
"total_balance": 2000,
"name": "Brian Thompson",
"avatar": "http:\/\/controlcenter.ftx\/images\/avatars\/128x128\/14.jpg?v=1530654555",
"created_at": "2019-01-13 10:13:43",
"sent_request": 1,
"store_id": "l6yYk1WOeo7e2b78dD4j",
"store_name": "Bobs Warehouse"
}
]
}{
"status": false,
"errorCode": "NO_ITEMS",
"message": "No Team Requests Found"
}