---
title: "Get a leave by id"
method: GET
path: "/api/v3/leaves/{id}"
tags: ["Leaves"]
---

# Get a leave by id

`GET /api/v3/leaves/{id}`

Retrieve a single Leave by its unique identifier.

## Response `200`

OK

- object
  - `data` Leave
    - `id` string, required — Unique identifier for the Leave
    - `date` string, date, required — Date of the leave in ISO format `yyyy-mm-dd`
    - `isAm` boolean, required — Has the value `true` for morning or the value `false` for afternoon
    - `leaveAccountId` integer, required — Unique identifier for the attached LeaveAccount
    - `leaveAccount` LeaveAccount — **LeaveAccounts** are the type of absences that can be selected by the user ## Fields
      - `id` integer — Unique identifier for the LeaveAccount
      - `name` string — Name of the LeaveAccount
    - `leavePeriodId` integer, required — Unique identifier for the attached LeavePeriod
    - `leavePeriod` LeavePeriod
      - `id` number — Unique identifier for the LeavePeriod
      - `ownerId` number — Unique identifier for the user
      - `isConfirmed` boolean — Has the value `true` for approved LeavePeriod or the value `false` for LeavePeriod pending approval
      - `confirmationDate` string, date-time, nullable — Time at which the LeavePeriod was approved
      - `attachmentId` string, nullable — Unique identifier for the attached document
      - `leaves` object[]
      - `logs` LeavePeriodLog[]
        - `id` integer
        - `date` string, date-time
        - `comment` string
        - `status` 0 | 2 | 3 | 4 | 5 — - 0 = PENDING_APPROVAL - 2 = APPROVED - 3 = DENIED - 4 = CANCELLED - 5 = CANCELLATION_PENDING
    - `value` string, duration, nullable — Leave duration in hours
    - `creationDate` string, date-time — Time at which the object was created
    - `isActive` boolean — Has the value `true` when the Leave exists (for pending or confirmed LeavePeriods), or the value `false` when it has been deleted (for canceled or denied LeaveRequests).
    - `cancellationDate` string, date-time, nullable — Time at which the request was canceled
    - `cancellationUserId` integer, nullable — Unique identifier for the user who canceled the request
    - `comment` string — Comments

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
