Delivery notes

GET
https://api.prezo.es/public/v1/delivery-notes
所需模块:送货单

Delivery note headers of a period with their totals, the same Prezo shows. Transfers between restaurants are excluded. Module: delivery notes.

参数

查询参数
dateFrom
string (date)必填

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

dateTo
string (date)必填

To (inclusive).

restaurantId
integer可选

Narrows to one restaurant.

providerId
integer可选

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/delivery-notes?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": [
    {
      "id": 99120,
      "number": "ALB-2214",
      "date": "2026-10-02",
      "accountingDate": null,
      "restaurant": {
        "id": 1204,
        "name": "Local Gràcia"
      },
      "provider": {
        "id": 731,
        "name": "Distribuciones Pérez"
      },
      "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",
      "surchargeAmount": "0.00",
      "irpfAmount": "0.00",
      "roundingAmount": "0.00",
      "totalAmount": "460.63",
      "orderId": 48213,
      "invoiceId": null
    }
  ],
  "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"
  }
}