Get an account
Get an account's details by its ID in the system. Only available to Garmat administrators and for other users' own account.
Path parameters
-
the ID of the account to retrieve
GET /api/accounts/{id}
curl \
-X GET http://localhost:4000/api/accounts/{id}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test Account",
"type": "customer",
"users": 5,
"booths": 2,
"status": "active",
"facilities": 2
}
Response examples (200)
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test Account",
"type": "customer",
"users": 5,
"booths": 2,
"status": "active",
"facilities": 2
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (404)
{
"error": "Error Reason"
}
Response examples (404)
{
"error": "Error Reason"
}