Skip to content

List Establishments

The List Establishments endpoint retrieves a list of all available establishments.

Endpoint

GET https://your-org-uuid.canteenweb.com/api/v1/admin/establishments

Example Request

bash
curl -X GET "https://your-org-uuid.canteenweb.com/api/v1/admin/establishments" \
  -H "Authorization: Bearer your-access-token"

Response Structure

The API returns an array of establishment objects with their details.

Example Response:

json
{
  "success": true,
  "message": "Request was successful.",
  "data": [
    {
      "uuid": "9e11ee05-32a4-4898-8735-5a7f88003409",
      "name": "Sede 1",
      "allowed_order_pickup_time_type": "anytime",
      "allowed_order_pickup_time_interval": ["09:30", "10:30", "11:30"],
      "working_days": [1, 2, 3, 4, 5],
      "order_closing_time": "18:00:00",
      "menu_closing_time": null,
      "daily_order_closure": 1,
      "status": {
        "label": "Activado",
        "value": "enabled"
      },
      "created_at": "2025-01-27T17:20:49.000000Z",
      "updated_at": "2025-01-27T17:20:49.000000Z"
    },
    {
      "uuid": "9e11ee05-399b-4ab5-a714-2a0d50816527",
      "name": "Sede 2",
      "allowed_order_pickup_time_type": "anytime",
      "allowed_order_pickup_time_interval": [],
      "working_days": [1, 2, 3, 4, 5],
      "order_closing_time": "18:00:00",
      "menu_closing_time": null,
      "daily_order_closure": 0,
      "status": {
        "label": "Activado",
        "value": "enabled"
      },
      "created_at": "2025-01-27T17:20:49.000000Z",
      "updated_at": "2025-01-27T17:20:49.000000Z"
    }
  ]
}

Response Fields

Establishment Fields

FieldTypeDescription
uuidstringUnique identifier of the establishment.
namestringName of the establishment.
allowed_order_pickup_time_typestringDefines order pickup time type (anytime or restricted time slots).
allowed_order_pickup_time_intervalarrayList of allowed pickup times (if restricted).
working_daysarrayDays of the week the establishment operates (1 = Monday, 7 = Sunday).
order_closing_timestringThe time at which orders close for the day (HH:MM:SS).
menu_closing_timestring/nullThe time at which the menu closes (if applicable).
daily_order_closureintegerWhether orders close automatically at the end of the day (1 = Yes, 0 = No).
statusobjectThe status of the establishment (contains label and value).
created_atstringTimestamp when the establishment was created (YYYY-MM-DDTHH:MM:SS.ssssssZ / ISO 8601 format).
updated_atstringTimestamp when the establishment was last updated (YYYY-MM-DDTHH:MM:SS.ssssssZ / ISO 8601 format).

This is a private API. All rights reserved.