Restaurants
GET
https://api.prezo.es/public/v1/restaurants
The restaurants the token sees, with their fiscal data, unpaginated: its own for a restaurant token, every restaurant of the group for a group token. A restaurant whose subscription is not active comes with isSubscriptionActive: false; filtering by it answers 403 subscription_not_active. Use it to learn the restaurantId of the filters.
Parâmetros
Este endpoint não recebe parâmetros.
Exemplo de pedido
import os
import requests
response = requests.get(
"https://api.prezo.es/public/v1/restaurants",
headers={
"Authorization": f"Bearer {os.environ['PREZO_API_KEY']}",
"Accept": "application/json",
},
)
print(response.json())Respostas
Successful response.
{
"data": [
{
"id": 1204,
"name": "Local Gràcia",
"legalName": "Restauración Gràcia SL",
"taxId": "B12345678",
"countryCode": "ES",
"address": {
"street": "Carrer Gran de Gràcia 12",
"city": "Barcelona",
"postalCode": "08012"
},
"group": {
"id": 58,
"name": "Grupo Mediterráneo"
},
"company": {
"id": 9,
"name": "Mediterráneo Hostelería SL"
},
"companyTaxId": "B87654321",
"isSubscriptionActive": true
}
]
}