GET
/v1/receipts
Permesso richiesto receipts.read
Elenca gli scontrini
Gli scontrini dell'officina, dal più recente. Filtra per cliente con
q e per periodo con from / to.
A differenza degli altri elenchi questo non è paginato: restituisce
tutti gli scontrini del periodo e has_more è sempre false.
Risposte
- 200
- Una pagina di scontrini.
- 401
- Chiave API mancante, non valida, revocata o scaduta.
- 500
- Errore imprevisto del server. Il dettaglio finisce nei log, non nella risposta.
Richiesta
curl https://api.officina.it/v1/receipts \ -H "Authorization: Bearer ofk_live_LA_TUA_CHIAVE" \ -H "X-API-Version: 2026-07-20"
Risposta
{
"object": "list",
"data": [
{
"object": "receipt",
"id": "3d7f1b95-6c28-4a04-9e51-8b2f7a3c6d19",
"type": "issued",
"status": "sale",
"seq_number": 58,
"title": "Tagliando 60.000 km",
"customer_id": "4c911f08-7713-4e83-bdf6-a0692a1b43fd",
"customer_name": "Mario Rossi",
"vehicle_id": "8821f0ac-5d2b-41e7-9a10-6c3f2b7d4e55",
"vehicle_name": "Fiat Panda",
"vehicle_license": "AB123CD",
"worksheet_id": "a5d21e64-8f37-4b90-ae12-3c7d6b048f95",
"sezionale_id": "c81f4a26-7d09-4e35-b6a1-2f8c5d3e9047",
"sezionale_code": "B",
"payment_method": "MP01",
"total_before_tax": 233.9,
"total_tax": 51.46,
"total_after_tax": 285.36,
"total_payments": 285.36,
"outstanding_payments": 0,
"electronic_receipts_enabled": false,
"e_receipt_status": null,
"issued_at": "2026-07-17T08:20:00Z",
"voided_at": null,
"created_at": "2026-07-17T08:00:00Z",
"updated_at": "2026-07-17T08:20:00Z"
}
],
"has_more": true,
"next_starting_after": "eyJvIjoyMH0",
"url": "/v1/receipts",
"date_filter": {
"object": "date_filter",
"preset": "year",
"from": "2026-01-01",
"to": "2026-12-31"
}
}