- Login: obtén un token.
- Enviar pedido: usa el token Bearer obtenido en login.
- Catálogo (categorías, productos): no requiere token.
Introducción
API para integradores que quieran consultar carta, crear pedidos en tiempo real y realizar reservas.
Flujo básico
Cabeceras comunes
- AuthorizationBearer <token> solo en endpoints protegidos.
- Sitehttps://dev2.foodeodev.com para indicar el local.
- Content-Typeapplication/json en peticiones con body JSON.
- Clientweb_sales si el endpoint lo requiere.
- Accept-Languagees para respuestas localizadas.
Los ejemplos de cada endpoint omiten estas cabeceras comunes para evitar repetición.
Utilidades
Entornos
Base URLs
| Nombre | URL | Notas |
|---|---|---|
| Sandbox | https://foodeodev.com/api/ | Entorno de pruebas |
| Producción | x | Solicitar a soporte una vez finalizada la integración |
HTTP Responses
The API returns standard HTTP response codes (RFC 7231) on each request to indicate the success or otherwise of API requests.
Códigos y significado
| Código | Resumen |
|---|---|
200 OK | The request was successful. |
204 No Content | The request was successful, but there is no content to send. |
400 Bad Request | Bad request, probably due to a syntax error. |
401 Unauthorized | Authentication required. |
403 Forbidden | The API key doesn't have permissions. |
404 Not Found | The resource doesn't exist. |
405 Method Not Allowed | The request method is known by the server but isn't supported by the target resource. |
500, 502, 503, 504 Server Errors | An error occurred with our API. |
Errores
Formato de error
El campo message puede ser texto plano o un objeto con clave=campo y valor=lista de mensajes. data es un array (vacío en error). complete puede ser true o false por compatibilidad.
{
"complete": true,
"message": { "table": ["La mesa (QR: X99) enviada no existe"] },
"data": []
}
{
"complete": true,
"message": { "name": ["Disculpe, no se pueden realizar pedidos de la categoría Cafés en estos momentos. Pruebe a realizar otro pedido o espere unos minutos. Gracias por la paciencia."] },
"data": []
}
Códigos habituales: 400 401 403 404 409 5xx
Autenticación
POST /auth/register/
Crear un usuario de integración.
Body
| Campo | Tipo | Obligatorio | Notas |
|---|---|---|---|
| string | sí | ||
| phone | string | no | |
| password | string | sí | |
| first_name | string | no | |
| last_name | string | no |
Ejemplo (cURL)
curl -X POST "https://foodeodev.com/api/v1/auth/register" -H "Content-Type: application/json" -d '{
"email": "test_user@foodeo.es",
"phone": "",
"password": "1234",
"first_name": "",
"last_name": ""
}'
Respuesta (200)
{
"complete": true,
"message": "Usuario Registrado",
"data": true
}
POST /auth/login/
Autenticación por email y contraseña.
Body
| Campo | Tipo | Obligatorio |
|---|---|---|
| string | sí | |
| password | string | sí |
Respuesta (200)
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzU4NDQzMTQ4LCJpYXQiOjE3NTU4NTExNDgsImp0aSI6ImZhZGY4ZDlhNGYyNDRjMjA5NWE0MDk4NmQ3MTY2OTlkIiwiaWQiOjIxLCJuYW1lIjpudWxsLCJsb2NhbCI6ImRldjIifQ.VRYgr5hgKyorkgzLO0x4iJw3dp0CpIxNQv_e5y8IfYA",
"first_name": "dev2",
"last_name": "test user",
"email": "dev2@foodeo.es",
"user_id": 21,
"role": "Dependiente",
"phone": "654654654",
"group_name": [
"Dependiente"
],
"group_type": [
"Dependiente"
],
"local": "dev2",
"domain": "https://dev2.foodeodev.com",
"modules": [
"rrhh",
"settings",
"reports",
"shifts",
"commands",
"awards",
"allergens",
"tpv",
"bars_hours",
"cashiers",
"payments",
"units",
"orders",
"zones",
"ingredients",
"screens",
"requests_tables",
"addresses",
"token_blacklist",
"reservations",
"clients",
"auth_system",
"printers",
"categories",
"tables",
"products",
"families",
"stocks",
"logs_traces",
"stk",
"offers"
],
"complete": true
}
Carta
GET /categories
Obtiene categorías activas. No requiere token.
Parámetros
Usa el query q en Base64. Se pueden enviar los parámetros excludes, filters, offset, order y sort.
{
"excludes": {
"is_subcategory": true
},
"filters": {
"is_active": true,
"customer_active": true
},
"offset": 0,
"order": "asc",
"sort": ["order", "name", "apply_order"]
}
Ejemplo (cURL)
curl -G "https://foodeodev.com/api/v3/categories" --data-urlencode "q=eyJleGNsdWRlcyI6eyJpc19zdWJjYXRlZ29yeSI6dHJ1ZX0sImZpbHRlcnMiOnsiaXNfYWN0aXZlIjp0cnVlLCJjdXN0b21lcl9hY3RpdmUiOnRydWV9LCJvZmZzZXQiOjAsIm9yZGVyIjoiYXNjIiwic29ydCI6WyJvcmRlciIsIm5hbWUiLCJhcHBseV9vcmRlciJdfQ=="
Respuesta (200)
{
"complete": true,
"message": "Todas las categorías",
"data": {
"results": [
{
"id": 2,
"name": "Bebida",
"color": null,
"app_text": "Refrescos",
"image": "https://sfo3.digitaloceanspaces.com/foodeo-space/media/dev2/categories/3017830099.jpg",
"is_subcategory": false,
"customer_active": true,
"is_active": true,
"is_available": true,
"order": 2,
"categories": [],
"subcategories": [
{
"id": 519,
"name": "Refrescos",
"app_text": "",
"color": null,
"image": "https://sfo3.digitaloceanspaces.com/foodeo-space/media/dev2/categories/3221722679.jpg",
"is_active": true,
"category": 17,
"parent": 2,
"is_subcategory": true
},
{
"id": 518,
"name": "Cubos",
"app_text": "Cubos",
"color": "#DB6767",
"image": null,
"is_active": true,
"category": 8,
"parent": 2,
"is_subcategory": true
}
],
"name_fr": null,
"name_ca": "Refresc",
"name_it": "Bebedini",
"name_en": "Drinks",
"name_es": "Bebida"
}
],
"total": 10
}
}
GET /products
Obtiene productos por categoría. No requiere token.
Parámetro q (Base64)
{
"filters": {"is_offer": false, "category": 230},
"limit": 1000,
"offset": 0,
"order": "asc",
"sort": ["category_name", "name"]
}
Ejemplo (cURL)
curl -G "https://foodeodev.com/api/v1/products" --data-urlencode "q=eyJmaWx0ZXJzIjp7ImlzX29mZmVyIjpmYWxzZSwiY2F0ZWdvcnkiOjIzMH0sImxpbWl0IjoxMDAwLCJvZmZzZXQiOjAsInNvcnQiOlsib3JkZXJfbnVtYmVyIiwibmFtZSIsImFwcGx5X29yZGVyIl19=="
Respuesta (200)
{
"complete": true,
"message": "Todos los productos",
"data": {
"results": [
{
"name": "Bombon",
"price": "15.00",
"image": "https://sfo3.digitaloceanspaces.com/foodeo-space/media/dev2/products/2769651671.jpg",
"category_name": "1Bebidas",
"is_available": true,
"category": 230,
"id": 1060,
"qty_existence": null,
"is_there_existence": true,
"serial": "P0001060",
"purchase_price": "0.00",
"units_list": [
{
"id": 369,
"name": "ud",
"value": null,
"unit_reference_name": null,
"basic": true,
"type": "quantity",
"principal": false,
"price": "0.000000",
"product": 1060,
"unit": 37
}
],
"stk_uuid": "610dca9e-7131-4aab-bbf1-20bd244f3ee2",
"min_stock": "0.00",
"unit": 37,
"qty": 1,
"description": "",
"allergens": [
5
],
"order": 4,
"has_modifiers": false,
"required_modifiers": false,
"iva": "10.00",
"modifiers": []
}
],
"total": 5
}
}
GET /products/get_product_order/{id}
Obtiene el detalle de un producto el cual se pasa el id.
Ejemplo (cURL)
curl -X GET "https://foodeodev.com/api/v1/products/get_product_order/1176"
Respuesta (200)
{
"complete": true,
"message": "Producto obtenido",
"data": {
"id": 1176,
"name": "Ensalada cesar",
"price": "12.00",
"qty": 1,
"category": 220,
"order": null,
"qty_existence": null,
"has_modifiers": true,
"required_modifiers": false,
"modifiers": [
{
"id": 283,
"name": "Extras ensaladas",
"image": null,
"is_quantifiable": true,
"options": [
{
"id": 1978,
"name": "Pollo",
"is_quantifiable": true,
"image": null,
"modifiers": [],
"max_value": 9,
"min_value": 1,
"price": 1.0
},
{
"id": 1979,
"name": "Cebolla",
"is_quantifiable": true,
"image": null,
"modifiers": [],
"max_value": 9,
"min_value": 1,
"price": 0.0
},
{
"id": 1980,
"name": "Queso",
"is_quantifiable": true,
"image": null,
"modifiers": [],
"max_value": 9,
"min_value": 1,
"price": 0.0
}
],
"max_value": 99,
"min_value": 0
}
],
"zones": [],
"allergens": []
}
}
Pedidos
POST /requests/local/
Crear pedido para una mesa del local.
Body
| Campo | Tipo | Obligatorio | Ejemplo |
|---|---|---|---|
| qr | string | sí | "Salon-2" |
| products[] | array | sí | Ver ejemplo |
| details | string|null | no | |
| status | string | sí | "solicitado" |
| from_client | string | sí | "web_sales" |
| tip_amount | number | no | 0 |
| tip_option | string | no | "no_tip" |
| credit_card | boolean | sí | false |
Ejemplo (cURL)
curl -X POST "https://foodeodev.com/api/v1/requests/local" -H "Content-Type: application/json" -d '{
"qr": "Salon-2",
"products": [
{
"id": 1289,
"name": "Agua",
"details": "",
"price": 2,
"qty": 1,
"is_offer": 0,
"items": [],
"modifiers": [],
"is_discounted": false
}
],
"details": null,
"status": "solicitado",
"from_client": "web_sales",
"tip_amount": 0,
"tip_option": "no_tip",
"credit_card": false
}'
Respuesta (200)
{
"complete": true,
"message": "Pedido agregado correctamente",
"data": {
"id": 22027,
"command_id": 18227
}
}
POST /requests/pickup/
Crear pedido para recoger en local en un turno/horario.
Campos extra
| Campo | Tipo | Obligatorio |
|---|---|---|
| delivery_date | string (YYYY-MM-DD) | sí |
| shift_time | string (HH:mm) | sí |
Respuesta (200)
{
"complete": true,
"message": "Pedido agregado correctamente",
"data": {
"id": 22027,
"command_id": 18227
}
}
POST /requests/domicile/
Crear pedido a domicilio.
Campos extras
| Campo | Tipo | Obligatorio |
|---|---|---|
| address | number | sí |
| delivery_date | string | sí |
| shift_time | string | sí |
Respuesta (200)
{
"complete": true,
"message": "Pedido agregado correctamente",
"data": {
"id": 22027,
"command_id": 18227
}
}
GET /bars_hours/domicile_pickup/shifts_times/
Obtiene los turnos disponibles para pedidos a recoger y a domicilio.
Parámetro q (Base64)
{
"type": "domicilio",
"products": [],
"delivery_date": "2026-06-03",
"time_zone": "Europe/Madrid"
}
Ejemplo (cURL)
curl -G "https://foodeodev.com/api/v1/bars_hours/domicile_pickup/shifts_times/" --data-urlencode "q=eyJ0eXBlIjoiZG9taWNpbGlvIiwicHJvZHVjdHMiOltdLCJkZWxpdmVyeV9kYXRlIjoiMjAyNi0wNi0wMyIsInRpbWVfem9uZSI6IkV1cm9wZS9NYWRyaWQifQ=="
Respuesta (200)
{
"complete": true,
"message": "Turnos disponibles",
"data": {
"shifts_times": [
{
"key": "soon",
"value": "16:20"
},
{
"key": "16:40",
"value": "16:40"
},
{
"key": "17:00",
"value": "17:00"
},
{
"key": "17:20",
"value": "17:20"
}
]
}
}
POST /requests/barra/
Crear pedido en barra.
Nota: Este tipo de pedido se cierra automáticamente por lo que se debe indicar si está pagado con tarjeta o en efectivo con el campo credit_card.
Body
| Campo | Tipo | Obligatorio | Ejemplo |
|---|---|---|---|
| products[] | array | sí | Ver ejemplo |
| all_discounted | boolean | no | true |
| discount | array | sí | Ver ejemplo |
| details | string|null | no | Salsa a parte |
| status | string | sí | "solicitado" |
| process_status | string | sí | "solicited" |
| from_client | string | sí | "web_sales" |
| credit_card | boolean | sí | false |
Ejemplo (cURL)
curl -X POST "https://foodeodev.com/api/v1/requests/barra/" -H "Content-Type: application/json" -d '{
"products": [
{
"id": 1176,
"qty": 1,
"name": "Ensalada cesar",
"price": "12.00",
"modifiers": [],
"order": null,
"details": "",
"is_discounted": false
}
],
"all_discounted": true,
"details": "salsa a parte",
"discount": {
"value": 10,
"type": "percent"
},
"status": "solicitado",
"process_status": "solicited",
"from_client": "web_sales",
"credit_card": false
}'
Respuesta (200)
{
"complete": true,
"message": "Pedido agregado correctamente",
"data": {
"id": 22027,
"command_id": 18227
}
}
GET /tables/get_active_tables_by_zone/
Obtiene mesas activas agrupadas por zona.
Ejemplo (cURL)
curl -G "https://foodeodev.com/api/v2/tables/get_active_tables_by_zone" --data-urlencode "q=eyJmaWx0ZXJzIjp7fX0="
Respuesta (200)
{
"complete": true,
"message": "Mesas activas",
"data": [
{
"zone": 164,
"zone_name": "Salón",
"tables": [
{
"qr": "Salón-8",
"name": "Salón-08",
"id": 735,
"order": 1,
"style": {
"type": "circle",
"height": 86.5,
"width": 86.5,
"left": 681.19,
"top": 0.0,
"scaleX": 1.0,
"scaleY": 1.0
}
}
]
}
]
}
Reservas
GET /settings/reservation/
Obtiene la configuración de reservas (contacto, reglas y límites).
Ejemplo (cURL)
curl -X GET "https://foodeodev.com/api/v1/settings/reservation"
Notas
min_clientsindica la cantidad mínima de clientes permitida en una reserva.max_clientsindica la cantidad máxima de clientes permitida en una reserva.
Respuesta (200)
{
"complete": true,
"message": "Settings obtenido",
"data": {
"updated_at": "2025-01-22T22:42:41.666624Z",
"created_at": "2023-11-16T22:21:15.006074Z",
"is_active": true,
"email": "correo-para-notificaciones@foodeo.es",
"phone": "+34 623 344 192",
"min_clients": 1,
"max_clients": 12,
"mean_duration": 60,
"interval": 30
}
}
GET /zones_reservations/shifts/
Obtiene los horarios de reserva disponibles por zona para un día y número de personas.
Parámetro q (Base64)
{
"filters": {
"number_of_persons": 4,
"day": "2026-06-12"
}
}
Notas
availableindica si el turno está disponible para reservar.payment_requirementsaparece cuando ese turno requiere pago previo.
Ejemplo (cURL)
curl -G "https://foodeodev.com/api/v1/zones_reservations/shifts/" --data-urlencode "q=eyJmaWx0ZXJzIjp7Im51bWJlcl9vZl9wZXJzb25zIjo0LCJkYXkiOiIyMDI2LTA2LTEyIn19"
Respuesta (200)
{
"complete": true,
"message": "Turnos de reserva obtenidos satisfactoriamente",
"data": [
{
"zone_id": 28,
"zone_name": "Salon",
"times": [
{
"time": "20:00:00",
"available": true,
"payment_requirements": {
"type": "fixed",
"amount": 5.0
}
},
{
"time": "20:15:00",
"available": true,
"payment_requirements": {
"type": "fixed",
"amount": 5.0
}
}
]
},
{
"zone_id": 26,
"zone_name": "Barra",
"times": [
{
"time": "00:00:00",
"available": true
},
{
"time": "00:15:00",
"available": true
}
]
},
{
"zone_id": 33,
"zone_name": "Terraza",
"times": [
{
"time": "02:05:00",
"available": true
},
{
"time": "04:05:00",
"available": true,
"payment_requirements": {
"type": "fixed",
"amount": 11.0
}
}
]
}
]
}
GET /zones_reservations/reservations/
Obtiene la lista de reservas por zonas para el rango de fechas seleccionado.
Parámetro q (Base64)
{
"filters": {
"start_at": "2026-06-25",
"end_at": "2026-06-25"
},
"limit": 1000,
"offset": 0,
"sort": []
}
Ejemplo (cURL)
curl -G "https://foodeodev.com/api/v1/zones_reservations/reservations/" --data-urlencode "q=eyJmaWx0ZXJzIjp7InN0YXJ0X2F0IjoiMjAyNi0wNi0yNSIsImVuZF9hdCI6IjIwMjYtMDYtMjUiLCJsaW1pdCI6MTAwMCwib2Zmc2V0IjowLCJzb3J0IjpbXX0="
Respuesta (200)
{
"complete": true,
"message": "Lista de reservas por zonas obtenidas exitosamente",
"data": {
"results": [
{
"id": 629,
"date": "2026-06-23",
"client": 52,
"qty_person": 2,
"status": "denied",
"from_client": "web_sales",
"observations": "",
"time": "20:15:00",
"zone_id": 28,
"zone_name": "Salon",
"table": {
"id": 74,
"name": "Salon-5",
"qr": "5on-5",
"min_capacity": 2,
"max_capacity": 2
},
"client_fields_data": {
"first_name": "testcartilla",
"last_name": null,
"phone": "5354384797"
},
"options": null
}
],
"total": 1
}
}
GET /zones_reservations/reservations/{id}/
Obtiene el detalle de una reserva por su ID.
Ejemplo (cURL)
curl -X GET "https://foodeodev.com/api/v1/zones_reservations/reservations/636/"
Respuesta (200)
{
"complete": true,
"message": "Reserva 636 recuperada con éxito",
"data": {
"id": 636,
"zone_id": 50,
"client": 62,
"zone_name": "terraza",
"date": "2026-06-28",
"time": "14:00:00",
"status": "payed",
"qty_person": 2,
"observations": "",
"client_fields_data": {
"first_name": "dev_user_name dev_user_lastname",
"last_name": null,
"phone": "654654654"
},
"options": null,
"table": {
"id": 134,
"name": "Test2-3",
"qr": "Test2-3",
"min_capacity": 1,
"max_capacity": 4
}
}
}
POST /reservations/
Crear una reserva.
Body
| Campo | Tipo | Obligatorio | Ejemplo |
|---|---|---|---|
| date | string (YYYY-MM-DD) | sí | "2025-05-02" |
| qty_person | number | sí | 2 |
| shift | number | sí | 2438 |
| client | number | sí | 2 |
Ejemplo (cURL)
curl -X POST "https://foodeodev.com/api/v2/reservations" -H "Content-Type: application/json" -d '{
"date": "2025-05-02",
"qty_person": 2,
"shift": 2438,
"client": 2
}'
DELETE /reservations/{id}/
Eliminar una reserva por ID.
Ejemplo (cURL)
curl -X DELETE "https://foodeodev.com/api/v2/reservations/4664"
Informes
POST /reports/
Genera un reporte aplicando los filtros enviados en el cuerpo de la petición.
POST /reports/box_closures/
Historial de cierres de caja.
Ejemplo (cURL)
curl -X POST "https://foodeodev.com/api/v1/reports/box_closures/" -H "Content-Type: application/json" -d '{"filters":{"close_type":"all","from":"2026-06-21","to":"2026-06-28"},"excludes":{},"limit":10,"offset":0,"sort":[]}'
Contacto
Soporte técnico: info@foodeo.es