> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.sesametime.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List the hours compensation permit adjustments of an employee

> Lists the adjustments of the hours compensation permits of one employee of the company of the token, newest first: the ones created through `POST /overtime-policies/v1/permit-adjustments` (origin `api_public`) and the ones Sesame creates when the employee is unassigned from a permit (origin `unassign`).



## OpenAPI

````yaml GET /overtime-policies/v1/employees/{employeeId}/permit-adjustments
openapi: 3.0.0
info:
  description: ''
  version: 3.0.0
  title: Sesame Public API
servers:
  - url: https://api-{region}.sesametime.com
    variables:
      region:
        default: eu1
security: []
tags: []
paths:
  /overtime-policies/v1/employees/{employeeId}/permit-adjustments:
    get:
      tags:
        - Overtime Policies
      summary: List the hours compensation permit adjustments of an employee
      description: >-
        Lists the adjustments of the hours compensation permits of one employee
        of the company of the token, newest first: the ones created through
        `POST /overtime-policies/v1/permit-adjustments` (origin `api_public`)
        and the ones Sesame creates when the employee is unassigned from a
        permit (origin `unassign`).
      operationId: ListEmployeeHoursCompensationPermitAdjustments
      parameters:
        - name: employeeId
          in: path
          required: true
          description: The employee ID. It must belong to the company of the token.
          schema:
            type: string
            format: uuid
        - name: absenceTypeId
          in: query
          description: Only the adjustments of this hours compensation absence type.
          schema:
            type: string
            format: uuid
        - name: year
          in: query
          description: Only the adjustments of this year.
          schema:
            type: integer
            example: 2026
        - name: page
          in: query
          description: Page number (1-based).
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          description: Items per page.
          schema:
            type: integer
            default: 20
            maximum: 300
      responses:
        '200':
          description: >-
            Paginated list of the adjustments of the hours compensation permits
            of the employee, newest first (ordered by `createdAt` desc).
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - meta
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - adjustmentId
                        - employeeId
                        - absenceTypeId
                        - year
                        - amountSeconds
                        - externalReference
                        - note
                        - origin
                        - grantedAfterSeconds
                        - createdAt
                      properties:
                        adjustmentId:
                          type: string
                          format: uuid
                          description: ID of the adjustment
                          example: 6c1f2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                        employeeId:
                          type: string
                          format: uuid
                          description: The adjusted employee
                        absenceTypeId:
                          type: string
                          format: uuid
                          description: >-
                            Hours compensation absence type whose granted time
                            was adjusted
                        year:
                          type: integer
                          description: Year of the permit balance the adjustment applies to
                          example: 2026
                        amountSeconds:
                          type: integer
                          description: >-
                            Seconds added (positive) or subtracted (negative) to
                            the granted time of the permit
                          example: 8100
                        externalReference:
                          type: string
                          nullable: true
                          description: >-
                            Reference sent by the integrator. `null` only for
                            the adjustments Sesame creates itself when the
                            permit is unassigned (origin `unassign`).
                          example: EPS-2026-000123
                        note:
                          type: string
                          nullable: true
                          description: Free text stored with the adjustment
                          example: Tardes viernes 14/11
                        origin:
                          type: string
                          enum:
                            - api_public
                            - unassign
                          description: >-
                            `api_public`: created through this API. `unassign`:
                            created by Sesame when the employee was unassigned
                            from the permit, to leave its available time at 0
                            (what was added by adjustments is lost).
                        grantedAfterSeconds:
                          type: integer
                          description: >-
                            Granted time of the permit for that year right after
                            this adjustment, in seconds: the time compensated
                            from the overtime policy (never below 0 on its own)
                            plus every adjustment. It can be negative.
                          example: 11700
                        createdAt:
                          type: string
                          format: Y-m-dTH:i:sP
                          example: '2020-01-01T10:00:00+01:00'
                  meta:
                    type: object
                    properties:
                      currentPage:
                        type: integer
                        example: 1
                      lastPage:
                        type: integer
                        example: 1
                      total:
                        type: integer
                        example: 1
                      perPage:
                        type: integer
                        example: 1
              example:
                data:
                  - adjustmentId: 6c1f2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b
                    employeeId: 550e8400-e29b-41d4-a716-446655440000
                    absenceTypeId: 199932f8-c295-42b9-8588-b5ec181a3767
                    year: 2026
                    amountSeconds: 8100
                    externalReference: EPS-2026-000123
                    note: Tardes viernes 14/11
                    origin: api_public
                    grantedAfterSeconds: 11700
                    createdAt: '2026-11-17T10:30:00+00:00'
                meta:
                  currentPage: 1
                  lastPage: 1
                  total: 1
                  perPage: 20
        '401':
          description: >-
            Unauthorized - The `Authorization: Bearer` token is missing, unknown
            or disabled (`unauthorized`, UnauthorizedHttpException), or the API
            token has expired (`api_token_expired`,
            ApiConsumerSessionExpiredException).
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Error envelope produced by JsonApiResponseFactory for every
                  non-2xx response.
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - status
                      - message
                      - errors
                    properties:
                      status:
                        type: integer
                        description: HTTP status code, repeated in the body
                        example: 422
                      message:
                        type: string
                        description: >-
                          Error message. For domain and authentication errors it
                          is a stable error code; for request validation errors
                          it is `Unprocessable entity`.
                        example: employee_not_adjustable
                      errors:
                        description: >-
                          For domain and authentication errors, a stable error
                          code (string) to branch on. For request validation
                          errors, an object keyed by field name whose value is
                          the list of messages for that field (translated into
                          the request locale).
                        oneOf:
                          - type: string
                            example: employee_not_adjustable
                          - type: object
                            additionalProperties:
                              type: array
                              items:
                                type: string
                            example:
                              employeeId:
                                - validator.invalid_uuid
              examples:
                unauthorized:
                  summary: Missing, unknown or disabled token
                  value:
                    error:
                      status: 401
                      message: Unauthorized
                      errors: unauthorized
                api_token_expired:
                  summary: Expired API token
                  value:
                    error:
                      status: 401
                      message: api_token_expired
                      errors: api_token_expired
        '402':
          description: >-
            Payment Required - The subscription of the company of the token is
            cancelled (SubscriptionPseudoCancelledException).
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Error envelope produced by JsonApiResponseFactory for every
                  non-2xx response.
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - status
                      - message
                      - errors
                    properties:
                      status:
                        type: integer
                        description: HTTP status code, repeated in the body
                        example: 422
                      message:
                        type: string
                        description: >-
                          Error message. For domain and authentication errors it
                          is a stable error code; for request validation errors
                          it is `Unprocessable entity`.
                        example: employee_not_adjustable
                      errors:
                        description: >-
                          For domain and authentication errors, a stable error
                          code (string) to branch on. For request validation
                          errors, an object keyed by field name whose value is
                          the list of messages for that field (translated into
                          the request locale).
                        oneOf:
                          - type: string
                            example: employee_not_adjustable
                          - type: object
                            additionalProperties:
                              type: array
                              items:
                                type: string
                            example:
                              employeeId:
                                - validator.invalid_uuid
              examples:
                subscription_expired:
                  summary: Cancelled subscription
                  value:
                    error:
                      status: 402
                      message: subscription_expired
                      errors: subscription_expired
        '403':
          description: >-
            Forbidden - The token is not an API consumer token, the company has
            no access to the Public API, or the API consumer has no role over
            the affected entity (ForbiddenAccessPermissionException, raised by
            VerifyPublicAPIAddonIsEnabledMiddleware or by the permission check
            of the command / query).
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Error envelope produced by JsonApiResponseFactory for every
                  non-2xx response.
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - status
                      - message
                      - errors
                    properties:
                      status:
                        type: integer
                        description: HTTP status code, repeated in the body
                        example: 422
                      message:
                        type: string
                        description: >-
                          Error message. For domain and authentication errors it
                          is a stable error code; for request validation errors
                          it is `Unprocessable entity`.
                        example: employee_not_adjustable
                      errors:
                        description: >-
                          For domain and authentication errors, a stable error
                          code (string) to branch on. For request validation
                          errors, an object keyed by field name whose value is
                          the list of messages for that field (translated into
                          the request locale).
                        oneOf:
                          - type: string
                            example: employee_not_adjustable
                          - type: object
                            additionalProperties:
                              type: array
                              items:
                                type: string
                            example:
                              employeeId:
                                - validator.invalid_uuid
              examples:
                forbidden_access_permission:
                  summary: No access
                  value:
                    error:
                      status: 403
                      message: Forbidden Access Permission
                      errors: forbidden_access_permission
        '422':
          description: >-
            Unprocessable Entity - The query failed validation
            (FindEmployeePermitAdjustmentsForApiValidator; `errors` keyed by
            field): `employeeId` or `absenceTypeId` not a UUID, `year` not a
            number of 4 digits, `page` or `limit` not numeric.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Error envelope produced by JsonApiResponseFactory for every
                  non-2xx response.
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - status
                      - message
                      - errors
                    properties:
                      status:
                        type: integer
                        description: HTTP status code, repeated in the body
                        example: 422
                      message:
                        type: string
                        description: >-
                          Error message. For domain and authentication errors it
                          is a stable error code; for request validation errors
                          it is `Unprocessable entity`.
                        example: employee_not_adjustable
                      errors:
                        description: >-
                          For domain and authentication errors, a stable error
                          code (string) to branch on. For request validation
                          errors, an object keyed by field name whose value is
                          the list of messages for that field (translated into
                          the request locale).
                        oneOf:
                          - type: string
                            example: employee_not_adjustable
                          - type: object
                            additionalProperties:
                              type: array
                              items:
                                type: string
                            example:
                              employeeId:
                                - validator.invalid_uuid
              example:
                error:
                  status: 422
                  message: Unprocessable entity
                  errors:
                    year:
                      - validator.invalid_type
        '429':
          description: >-
            Too Many Requests - The company of the token exceeded the API
            consumer call limit (1000 calls per minute)
            (ApiConsumerSessionCallMaxExceededException).
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Error envelope produced by JsonApiResponseFactory for every
                  non-2xx response.
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - status
                      - message
                      - errors
                    properties:
                      status:
                        type: integer
                        description: HTTP status code, repeated in the body
                        example: 422
                      message:
                        type: string
                        description: >-
                          Error message. For domain and authentication errors it
                          is a stable error code; for request validation errors
                          it is `Unprocessable entity`.
                        example: employee_not_adjustable
                      errors:
                        description: >-
                          For domain and authentication errors, a stable error
                          code (string) to branch on. For request validation
                          errors, an object keyed by field name whose value is
                          the list of messages for that field (translated into
                          the request locale).
                        oneOf:
                          - type: string
                            example: employee_not_adjustable
                          - type: object
                            additionalProperties:
                              type: array
                              items:
                                type: string
                            example:
                              employeeId:
                                - validator.invalid_uuid
              examples:
                api_consumer_rate_limit_exceeded:
                  summary: Rate limit exceeded
                  value:
                    error:
                      status: 429
                      message: Api consumer rate limit exceeded
                      errors: api_consumer_rate_limit_exceeded
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.