Daily sales

GET
https://api.prezo.es/public/v1/daily-sales
所需模块:销售

One item per restaurant and day with sales. Ticket figures are the POS totals; netAmount is the base of the sold lines, the figure Prezo's profitability report adds up.

参数

查询参数
dateFrom
string (date)必填

From (inclusive); at most 12 months before dateTo.

dateTo
string (date)必填

To (inclusive).

restaurantId
integer可选

Narrows to one restaurant.

page
integer可选

Page, from 1.

perPage
integer可选

Items per page: 100 by default, up to 500.

请求示例

import os

import requests

response = requests.get(
    "https://api.prezo.es/public/v1/daily-sales?dateFrom=2026-09-01&dateTo=2026-09-30",
    headers={
        "Authorization": f"Bearer {os.environ['PREZO_API_KEY']}",
        "Accept": "application/json",
    },
)

print(response.json())

响应

Successful response.

{
  "data": [
    {
      "date": "2026-10-04",
      "restaurant": {
        "id": 1204,
        "name": "Local Gràcia"
      },
      "tickets": 214,
      "guests": 388,
      "ticketsNetAmount": "6120.40",
      "ticketsVatAmount": "612.04",
      "ticketsTotalAmount": "6732.44",
      "netAmount": "6098.10",
      "foodNetAmount": "4210.60",
      "drinkNetAmount": "1802.30",
      "otherNetAmount": "85.20"
    }
  ],
  "meta": {
    "currentPage": 1,
    "perPage": 100,
    "total": 1,
    "lastPage": 1
  },
  "links": {
    "first": "https://api.prezo.es/public/v1/...?page=1",
    "prev": null,
    "next": null,
    "last": "https://api.prezo.es/public/v1/...?page=1"
  }
}