Neue API-Version v7.4.2 wurde veröffentlicht! 🎉
REST Dokumentation
GET Belege

Alle Belege abrufen

Mit diesem Endpunkt können Sie eine paginierte Liste aller Belege abrufen.

Request

GET /api/v1/receipts
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/receipts' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Response

{
	"data": [
		{
			"id": 1,
			"employee_id": "max.mustermann",
			"date": "2024-11-15",
			"receipt_type_id": "Fahrkarte",
			"currency": "EUR",
			"invoice_amount_currency": null,
			"note": "Berlin -> Hamburg (Deutsche Bahn)",
			"payment_method": "privat",
			"breakfast": 0,
			"lunch_or_dinner": 0,
			"location": null,
			"is_amount_net": false,
			"is_invoice_amount_net": false,
			"billing_status": null,
			"performance_date": "2024-11-15",
			"client_id": null,
			"created": "2024-11-15T10:30:00.000000Z",
			"modified": "2024-11-15T10:30:00.000000Z",
			"invoice_item_id": null,
			"project_id": 456,
			"project_task_id": null,
			"ticket_id": null,
			"subtask_id": null,
			"filename": "beleg_2024_11_15.pdf"
		},
		{
			"id": 2,
			"employee_id": "maria.schmidt",
			"date": "2024-11-14",
			"receipt_type_id": "Übernachtung",
			"currency": "EUR",
			"invoice_amount_currency": null,
			"note": "Geschäftsreise Unterkunft - Hamburg",
			"payment_method": "Firma",
			"breakfast": 1,
			"lunch_or_dinner": 0,
			"location": "D",
			"is_amount_net": false,
			"is_invoice_amount_net": false,
			"billing_status": null,
			"performance_date": "2024-11-14",
			"client_id": null,
			"created": "2024-11-14T18:45:00.000000Z",
			"modified": "2024-11-14T18:45:00.000000Z",
			"invoice_item_id": null,
			"project_id": 456,
			"project_task_id": 789,
			"ticket_id": null,
			"subtask_id": null,
			"filename": "hotelrechnung_hamburg.pdf"
		},
		{
			"id": 3,
			"employee_id": "thomas.mueller",
			"date": "2024-11-13",
			"receipt_type_id": "Material",
			"currency": "EUR",
			"invoice_amount_currency": null,
			"note": "Büromaterial - Druckerpatronen",
			"payment_method": "privat",
			"breakfast": 0,
			"lunch_or_dinner": 0,
			"location": null,
			"is_amount_net": true,
			"is_invoice_amount_net": true,
			"billing_status": null,
			"performance_date": "2024-11-13",
			"client_id": null,
			"created": "2024-11-13T14:20:00.000000Z",
			"modified": "2024-11-13T14:20:00.000000Z",
			"invoice_item_id": null,
			"project_id": 123,
			"project_task_id": null,
			"ticket_id": 5678,
			"subtask_id": null,
			"filename": null
		}
	]
}

Optionale Parameter

  • Name
    start_date
    Type
    date | Y-m-d
    Description

    Erster Tag des abzufragenden Zeitraums. Die Angabe ist inklusiv, d.h. der als start_date angegebene Tag wird auch in den Ergebnissen berücksichtigt.

  • Name
    end_date
    Type
    date | Y-m-d
    Description

    Letzter Tag des abzufragenden Zeitraums. Er ist inklusiv, d. h. der als end_date angegebene Tag wird in den Ergebnissen ebenfalls berücksichtigt.

  • Name
    limit
    Type
    integer
    Description

    Attribut zur Begrenzung der Einträge pro Seite