API de FlavosoReferencia de la APIConexión
Conexión
La conexión entre tu app y un negocio. GET /me es la primera llamada de toda integración: qué negocio, qué permisos, prueba o real (livemode), qué plan. DELETE /connection termina la conexión desde tu lado.
Endpoints
Retrieve the connection, its app and its restaurant
get/me
- Permiso:
- cualquier token válido
- Plan:
- todos los planes
Works with any valid access token, also while the restaurant's subscription is inactive. The first call of every integration: it answers which restaurant this token belongs to, whether it is a test restaurant (livemode: false), which permissions the connection has and which plan the restaurant is on (reservations need Pro).
Respuesta200
OK
objectstringobligatorioAlways
connection.Valores:
"connection"idstring (uuid)obligatorioThe connection, also
connection_idin events.livemodebooleanobligatoriofalse for a developer's test restaurant: no guests, no payments, no e-mails, text messages or push notifications.
appobjectobligatorioYour app.
Campos anidados (2)
client_idstringobligatorioThe OAuth client id.
namestringobligatorioThe app's name.
tenantobjectobligatorioThe restaurant this token belongs to.
Campos anidados (6)
idstring (uuid)obligatorioThe restaurant's id (
tenant_idin events).namestringobligatorioThe restaurant's name.
slugstringobligatorioIts address:
<slug>.flavoso.com.timezonestringobligatorioIANA time zone, e.g. Europe/Berlin. Local dates and hours are in it.
currencystringobligatorioISO 4217 currency of all amounts, e.g. EUR.
countrystringobligatoriopuede ser nullISO 3166-1 alpha-2 country as Flavoso uses it for VAT (from the tax settings, else the address, else the time zone); null when unknown.
scopesstring[]obligatorioWhat this token may do (a narrowed token may have fewer than the connection).
Valores:
"orders:read""orders:write""menu:read""menu:write""store:read""store:write""reservations:read""reservations:write""reports:read"planstringobligatorioThe restaurant's plan. Reservations need pro or premium; ordering at the table needs pro.
Valores:
"starter""pro""premium"rate_limitobjectobligatorioThe rate limit of this connection.
Campos anidados (2)
limitintegerobligatorioRequests per window.
window_secondsintegerobligatorioWindow length in seconds.
created_atstring (date-time)obligatorioWhen the restaurant connected the app. ISO 8601 in UTC (
Z).
Errores
400invalid_request: a parameter or the body is wrong, or it contains a query parameter or field the operation does not know.paramnames the field.401unauthorized: missing, malformed, expired or revoked access token, or the app was disconnected or suspended.429rate_limited: more than 120 requests per minute on this connection. WaitRetry-Afterseconds.500server_error. Safe to retry with the same Idempotency-Key.
curl "https://api.flavoso.com/v1/me" \
-H "Authorization: Bearer $ACCESS_TOKEN"{
"object": "connection",
"id": "c41d7e2a-9b3f-4e8c-a015-6d2f8b4e7c19",
"livemode": true,
"app": {
"client_id": "flv_app_9QpR2sT4uV6wX8yZ0aB1cD3e",
"name": "Kasse Nord"
},
"tenant": {
"id": "8a3e5c7d-2f14-4b9e-a6d1-0c4b7e9f2a35",
"name": "Trattoria Bella Rosa",
"slug": "bella-rosa",
"timezone": "Europe/Berlin",
"currency": "EUR",
"country": "DE"
},
"scopes": [
"orders:write",
"menu:write",
"store:write"
],
"plan": "pro",
"rate_limit": {
"limit": 120,
"window_seconds": 60
},
"created_at": "2026-10-01T09:15:42.118Z"
}Disconnect your app from the restaurant
delete/connection
- Permiso:
- cualquier token válido
- Plan:
- todos los planes
Ends the connection: every token of it is revoked, including the one used for this request, the restaurant's owners are notified by e-mail and your app receives app.disconnected (reason app). To use the restaurant again, the owner has to connect the app again.
Respuesta200
OK
objectstringobligatorioAlways
connection.Valores:
"connection"idstring (uuid)obligatorioThe connection that ended.
revokedbooleanobligatorioAlways true.
Valores:
true
Errores
400invalid_request: a parameter or the body is wrong, or it contains a query parameter or field the operation does not know.paramnames the field.401unauthorized: missing, malformed, expired or revoked access token, or the app was disconnected or suspended.429rate_limited: more than 120 requests per minute on this connection. WaitRetry-Afterseconds.500server_error. Safe to retry with the same Idempotency-Key.
curl -X DELETE "https://api.flavoso.com/v1/connection" \
-H "Authorization: Bearer $ACCESS_TOKEN"{
"object": "connection",
"id": "c41d7e2a-9b3f-4e8c-a015-6d2f8b4e7c19",
"revoked": true
}¿Algo no ha quedado claro? Escribe a support@flavoso.com e indica el identificador de X-Request-Id. Así podremos encontrar tu solicitud en el registro.