---
title: "Create a new approval."
method: POST
path: "/approval_center/create"
tags: ["Miscellaneous|Approval"]
---

# Create a new approval.

`POST /approval_center/create`

This endpoint allows you to create a new approval. You can create a new approval for an employee with
`absenceData`, `stampData` or `accountingData`. If you provide stampData, an application for a new stamp will be
created. If you provide `absenceData`, an approval for an absence will be created. This can be used to create a
vacation application for an employee. If you provide accountingData, an application for bookings will be created.
For example, 'accountingData' could be an allowance with a corresponding wage type, such as set-up time.

## Request body

- StandardApprovalCenterCreateRequest
  - `employeeId` integer — The applying employee's internal ID. This Parameter is required.
  - `applicationData` ApprovalCenterCreateRequestApplicationDataItem
    - `type` string — The application type. This Parameter is required.
    - `priority` string — The priority of the application. Default: NORMAL. | Value | Description | |----------------------|--------------------| | HIGH | High | | NORMAL | Normal | | LOW | LOW |
    - `absenceData` ApprovalCenterCreateRequestApplicationAbsenceEntryDataItem
      - `absenceTypeId` integer — The internal absence type ID.
      - `absenceTypeExternalId` string — The external id of the absence type (Used if absenceTypeId not provided).
      - `durationType` string — Duration type. This Parameter is required. | Value | Description | |---------------------|---------------------| | WHOLE_DAY | Whole Days | | HALF_DAY | Half Days | | HOURS | Hours |
      - `dateFrom` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
      - `dateTo` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
      - `duration` integer — Absence time per day in seconds. Only if duration type is HOURS.
    - `stampData` ApprovalCenterCreateRequestApplicationStampDataItem
      - `time` string — Represents a date and a time. (ISO 8601) ICU-Format: yyyy-MM-dd'T'HH:mm:ssxxx
      - `state` string — Stamp type. This Parameter is required. | Wert | Bezeichnung | |---------------------|--------------------| | S | Stay-Stamp | | E | End-Stamp |
      - `trackerId` integer — The stamp's internal Vehicle ID.
      - `trackerVin` string — The stamp's vehicle identification number (Used if trackerId not provided).
      - `projectId` integer — The stamp's project.
      - `projectReferenceSign` string — The stamp's project reference sign (Used if projectId not provided).
    - `accountingEntryData` ApprovalCenterCreateRequestApplicationAccountingEntryDataItem
      - `date` string — Represents a date. (ISO 8601) ICU-Format: yyyy-MM-dd
      - `salaryTypeId` integer — The internal salary type ID for the accounting entry. (Required)
      - `salaryType` string — The salary type for the accounting entry (Used if salaryTypeId not provided).
      - `value` number — Value. This Parameter is required.
      - `projectId` integer — The internal project ID for the accounting entry.
      - `projectReferenceSign` string — The stamp's project reference sign (Used if projectId not provided).

## Response `200`

Success Response:

- StandardApprovalCenterCreateResponse
  - `logIds` integer[] — The internal ID of the created application.

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/versions/869b05603541/schema)
