Get a single amount line of a receipt
Scoped to the given receipt — the amount must belong to it.
Availability: Full version only — a Clock instance answers 404 for this endpoint.
Request
curl --request GET \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/receipts/{id}/amounts/{amount_id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Path parameters
- Name
id- Type
- integer
- Description
The receipt ID
- Name
amount_id- Type
- integer
- Description
The amount ID
Response
{
"data": {
"id": 1,
"receipt_id": 1,
"tax": "19.0000",
"quantity": "1.00000",
"amount": "285.21",
"invoicing_share": "89.50",
"private_share": "string",
"is_amount_net": false,
"is_invoice_amount_net": false,
"employee_id": "max.mustermann"
}
}Response fields
- Name
id- Type
- integer
- Description
The receipt amount line’s unique identifier.
- Name
receipt_id- Type
- string
- Description
The parent receipt this amount line belongs to; a legacy column served as either a string or an integer.
- Name
tax- Type
- string
- Description
The tax percentage rate applied to this amount line, between 0 and 100.
- Name
quantity- Type
- string
- Description
How many units this amount line bills, e.g. the number of kilometres or nights.
- Name
amount- Type
- string
- Description
The line’s total amount; net or gross depending on the parent receipt’s is_amount_net.
- Name
invoicing_share- Type
- string
- Description
The amount of this line that is billable to the client — an amount, not a percentage share despite the name.
- Name
private_share- Type
- string
- Description
The amount of this line that is private and not billable — an amount, not a percentage share despite the name.
- Name
is_amount_net- Type
- boolean
- Description
Whether amount is net or gross, copied from the parent receipt rather than stored on this line.
- Name
is_invoice_amount_net- Type
- boolean
- Description
Whether the invoiceable amount is net or gross, copied from the parent receipt rather than stored on this line.
- Name
employee_id- Type
- string, nullable
- Description
The employee who submitted the parent receipt, copied from it rather than stored on this line.