Invoices
Received invoices of a period, open and closed, with the same amount Prezo's invoice listing shows: what the invoice declares, by VAT rate, plus the rounding adjustment. An invoice without its breakdown yet gives its header amounts. Module: invoices. - Amounts come **after the invoice discount**, which travels apart in discount. When the discount was moved to the delivery notes, it is null here and lives on them. - A **credit note** is an invoice with negative amounts. - reconciliationStatus tells whether what is declared squares with its delivery notes (balanced), does not (mismatch) or still has notes to link (missing_links). It is informative. - **Group invoices** belong to no restaurant: only a group token sees them, with restaurant: null and their company in company, and not when filtering by a restaurant. - A purchase from another restaurant of the business (transfer or central kitchen) comes with isInternal: true and, when it comes from a transfer, its transferId. - dueDate is the due date Prezo shows: the one written on the invoice or, when there is none, the one Treasury worked out. - The period filters by the invoice date, not the accounting one.
Parameters
From (inclusive); at most 12 months before dateTo.
To (inclusive).
Narrows to one restaurant.
true solo cerradas, false solo abiertas; sin él, todas. / true closed only, false open only; without it, all.
Page, from 1.
Items per page: 100 by default, up to 500.
Example request
import os
import requests
response = requests.get(
"https://api.prezo.es/public/v1/invoices?dateFrom=2026-09-01&dateTo=2026-09-30",
headers={
"Authorization": f"Bearer {os.environ['PREZO_API_KEY']}",
"Accept": "application/json",
},
)
print(response.json())Responses
Successful response.
{
"data": [
{
"id": 51230,
"number": "FAC-2026-0912",
"date": "2026-10-05",
"accountingDate": "2026-10-31",
"restaurant": {
"id": 1204,
"name": "Local Gràcia"
},
"company": null,
"provider": {
"id": 731,
"name": "Frutas Pepe"
},
"isInternal": false,
"transferId": null,
"netAmount": "412.50",
"vatBreakdown": [
{
"rate": "10.00",
"base": "350.00",
"amount": "35.00"
},
{
"rate": "21.00",
"base": "62.50",
"amount": "13.13"
}
],
"vatAmount": "48.13",
"irpfAmount": "0.00",
"roundingAmount": "0.01",
"totalAmount": "460.64",
"discount": {
"type": "percent",
"value": "5.00"
},
"reconciliationStatus": "balanced",
"isClosed": true,
"isPaid": false,
"paymentDate": null,
"dueDate": "2026-11-04",
"deliveryNoteIds": [
99120
]
}
],
"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"
}
}