List accounts
Returns a list of accounts, paginated according to the pagination parameters. Only available to Garmat administrators.
GET /api/accounts
curl \
-X GET http://localhost:4000/api/accounts
Response examples (200)
{
"data": [
{
"name": "Test Account",
"type": "customer",
"users": 5,
"booths": 2,
"status": "active"
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (200)
{
"data": [
{
"name": "Test Account",
"type": "customer",
"users": 5,
"booths": 2,
"status": "active"
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}