---
title: "Declare flexi benefits"
method: POST
path: "/payroll/employees/flexibenefits"
tags: ["FlexiBenefit"]
---

# Declare flexi benefits

`POST /payroll/employees/flexibenefits`

Declare flexi benefits for an employee

## Request body

- KekaAPIModelPayrollCreateOrUpdateFlexiBenefit
  - `employeeId` string, nullable
  - `salaryComponents` KekaAPIModelPayrollDeclaredSalaryComponent[], nullable
    - `componentId` string, nullable
    - `declaredAmount` number, double

## Response `200`

OK

- ObjectResponse — class represents response.
  - `succeeded` boolean — Gets or sets a value indicating whether this Keka.API.Web.Core.Response`1 is succeeded.
  - `message` string, nullable — Gets or sets the message.
  - `errors` string[], nullable — Gets or sets the errors.
  - `data` unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/keka/apis/keka-api.md) · [All operations](https://skmtc.net/keka/apis/keka-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keka/keka-api/revisions/907ea395c885/schema)
