Skip to content

Absence Quota Transactions

Attribute Description Details
absence_quota_id The ID of the absence quota to which the transaction belongs. Cannot be set
absence_id The ID of the absence to which the transaction belongs. Cannot be set
transaction_type The type of transaction. Cannot be set
amount The amount of quota units in this transaction. Must be set, must be integer
notice Optional note or description for the transaction. Optional

Relationships

Relationship Description
absence The absence record associated with this transaction

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.

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

Parameter Description
absence_quota_id The ID of the absence quota from which to return transactions