Delivery note lines
GET
https://api.prezo.es/public/v1/delivery-note-lines
Modulo richiesto:Delivery notes
Every line of the delivery notes of a period: products, charges and services. The lines of a note add up to its netAmount; a return is negative.
Parametri
Parametri di query
dateFrom
string (date)obbligatorio
From (inclusive); at most 12 months before dateTo.
dateTo
string (date)obbligatorio
To (inclusive).
restaurantId
integerfacoltativo
Narrows to one restaurant.
providerId
integerfacoltativo
page
integerfacoltativo
Page, from 1.
perPage
integerfacoltativo
Items per page: 100 by default, up to 500.
Esempio di richiesta
import os
import requests
response = requests.get(
"https://api.prezo.es/public/v1/delivery-note-lines?dateFrom=2026-09-01&dateTo=2026-09-30",
headers={
"Authorization": f"Bearer {os.environ['PREZO_API_KEY']}",
"Accept": "application/json",
},
)
print(response.json())Risposte
Successful response.
{
"data": [
{
"deliveryNote": {
"id": 99120,
"number": "ALB-2214"
},
"date": "2026-10-02",
"receivedAt": "2026-10-02T07:45:00Z",
"restaurant": {
"id": 1204,
"name": "Local Gràcia"
},
"provider": {
"id": 731,
"name": "Distribuciones Pérez"
},
"type": "product",
"chargeCode": null,
"providerProduct": {
"id": 88412,
"name": "Tomate pera caja 5 kg"
},
"reference": "TP-5",
"ean": "8412345678905",
"family": {
"id": 3101,
"name": "Verduras"
},
"description": "Tomate pera caja 5 kg",
"quantity": "12.00000",
"unit": "caja",
"unitPrice": "10.25000",
"discount": "0.00000",
"discountType": null,
"vatRate": "10.00",
"netAmount": "123.00",
"vatAmount": "12.30",
"isReturn": false,
"orderId": 48213
}
],
"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"
}
}