Zum Inhalt springen

Absence Quota Transactions

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Valid Attributes

AttributeDescriptionDetails
absence_quota_idThe ID of the absence quota to which the transaction belongs.Cannot be set
absence_idThe ID of the absence to which the transaction belongs.Cannot be set
transaction_typeThe type of transaction.Cannot be set
amountThe amount of quota units in this transaction.Must be set, must be integer
noticeOptional note or description for the transaction.Optional

Relationships

RelationshipDescription
absenceThe absence record associated with this transaction

List

Example response:

{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "absence_quota_transaction",
"attributes": {
"absence_id": "b7f8d3a9-6c5e-4e5c-9d8f-7b6c96d4e3c2a",
"absence_quota_id": "5a9fc662-543b-4dbd-bc2d-e5bdf3505be9",
"transaction_type": "grant",
"amount": 25,
"notice": "Annual vacation quota granted"
}
},
{
...
}
]
}

This endpoint returns the transactions for an absence quota.

HTTP Request

GET /api/v1/absence_quotas/:absence_quota_id/absence_quota_transactions

URL Parameters

ParameterDescription
absence_quota_idThe ID of the absence quota from which to return transactions