Get facility details
Allows you to retrieve the details of a facility you have access to, given its ID.
Path parameters
-
The ID of the facility to retrieve
GET /api/facilities/{id}
curl \
-X GET http://localhost:4000/api/facilities/{id}
Response examples (200)
{
"id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf3",
"tz": "America/Denver",
"city": "Boulder",
"name": "Test Facility",
"type": "auto_body_shop",
"state": "CO",
"status": "active",
"zipcode": "12345",
"region_id": "392098bb-ac91-010c-aaa1-9032b19b8cf4",
"square_ft": 12000.0,
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4",
"region_name": "Test Region",
"account_name": "New account",
"store_number": "Test Facility 01",
"working_hours": [
{
"day": "monday",
"stop": "17:00:00",
"start": "09:00:00",
"enabled": true
},
{
"day": "sunday",
"enabled": false
}
],
"address_line_1": "Test Road 123",
"address_line_2": "Suite 1000",
"distributor_id": "753f191b-f2e6-4dde-bcab-00b10fdb8cb0",
"climate_control": "both",
"distributor_name": "New distributor"
}
Response examples (200)
{
"id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf3",
"tz": "America/Denver",
"city": "Boulder",
"name": "Test Facility",
"type": "auto_body_shop",
"state": "CO",
"status": "active",
"zipcode": "12345",
"region_id": "392098bb-ac91-010c-aaa1-9032b19b8cf4",
"square_ft": 12000.0,
"account_id": "293f191b-f2e6-4dde-bcab-00b10fdb8cf4",
"region_name": "Test Region",
"account_name": "New account",
"store_number": "Test Facility 01",
"working_hours": [
{
"day": "monday",
"stop": "17:00:00",
"start": "09:00:00",
"enabled": true
},
{
"day": "sunday",
"enabled": false
}
],
"address_line_1": "Test Road 123",
"address_line_2": "Suite 1000",
"distributor_id": "753f191b-f2e6-4dde-bcab-00b10fdb8cb0",
"climate_control": "both",
"distributor_name": "New distributor"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (404)
{
"error": "Error Reason"
}
Response examples (404)
{
"error": "Error Reason"
}