New API version v7.4.2 has been released! 🎉
REST Documentation
GET Receipts

Get All Receipts

You can use this endpoint to call up a paginated list of all receipts.

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": "john.doe",
			"date": "2024-11-15",
			"receipt_type_id": "Train Ticket",
			"currency": "EUR",
			"invoice_amount_currency": null,
			"note": "Berlin -> Hamburg (Deutsche Bahn)",
			"payment_method": "private",
			"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": "receipt_2024_11_15.pdf"
		},
		{
			"id": 2,
			"employee_id": "jane.smith",
			"date": "2024-11-14",
			"receipt_type_id": "Hotel",
			"currency": "EUR",
			"invoice_amount_currency": null,
			"note": "Business trip accommodation - Hamburg",
			"payment_method": "company",
			"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": "hotel_invoice_hamburg.pdf"
		},
		{
			"id": 3,
			"employee_id": "max.mueller",
			"date": "2024-11-13",
			"receipt_type_id": "Material",
			"currency": "EUR",
			"invoice_amount_currency": null,
			"note": "Office supplies - printer cartridges",
			"payment_method": "private",
			"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
		}
	]
}

Optional Parameters

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

    First day of the period to be queried. It is inclusive, so the day specified as start_date will also be considered on the results

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

    Last day of the period to be queried. It is inclusive, so the day specified as end_date will also be considered on the results.

  • Name
    limit
    Type
    integer
    Description

    Attribute for limiting the number of entries per page