Documentation
Organization Structure API
- Axis-sections
- Departments
- Legal-Units
- Establishments
Core HR API
- Employees Directory
- Guides
Expenses API
- Expense-temp-items
- Expense-claims
- Expense-claim-items
- Exports
- Guides
Invoices API
- Guides
Absences API
- Leaves
- Leave-requests
- Sick-leaves
- Imports
- Guides
Office API
- User-locations
- Work-locations
Project API
- Clients
- Projects
- Project services
- Organizations
- Financials
Time Settings API
- UserDates
- Workcycle-exceptions
- Working-time-arrangement
Timesheet API
- Time-entries
- Timesheets
- Reports
- Guides
Mealvouchers API
- Statutory
- Computation
Compensation API
- Fixed-natures
- Fixed-items
- Variable-natures
- Variable-items
Training API
- Training-demands
- Realized-trainings
Variable-items
Create a variable item
Create a new variable item attached to an employee work contract.
POST
/
remuneration
/
api
/
variable-items
curl --request POST \
--url https://{host}/remuneration/api/variable-items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"natureId": 123,
"workContractId": 123,
"amendmentId": 0,
"comments": "For outstanding performance this quarter",
"period": "2023-12-25"
}'
{
"amount": 123,
"natureId": 123,
"workContractId": 123,
"amendmentId": 0,
"comments": "For outstanding performance this quarter",
"period": "2023-12-25",
"id": 123,
"nature": {
"id": 123,
"name": "Annual bonus",
"type": "Amount",
"category": {
"id": 123,
"code": "BONUS"
},
"establishments": [
{
"id": 123,
"name": "Lucca FR",
"currencyCode": "EUR",
"currencySymbol": "€"
}
]
},
"workContract": {
"workContractId": 123,
"amendmentId": 123,
"ownerId": 123,
"owner": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"displayName": "<string>"
},
"startsOn": "2023-12-25",
"endsOn": "2023-12-25"
},
"isDeleted": true
}
Headers
API key. Value must be formatted like so: lucca application={api_key}
.
Body
application/json
The body is of type object
.
Response
201
application/json
Created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://{host}/remuneration/api/variable-items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"natureId": 123,
"workContractId": 123,
"amendmentId": 0,
"comments": "For outstanding performance this quarter",
"period": "2023-12-25"
}'
{
"amount": 123,
"natureId": 123,
"workContractId": 123,
"amendmentId": 0,
"comments": "For outstanding performance this quarter",
"period": "2023-12-25",
"id": 123,
"nature": {
"id": 123,
"name": "Annual bonus",
"type": "Amount",
"category": {
"id": 123,
"code": "BONUS"
},
"establishments": [
{
"id": 123,
"name": "Lucca FR",
"currencyCode": "EUR",
"currencySymbol": "€"
}
]
},
"workContract": {
"workContractId": 123,
"amendmentId": 123,
"ownerId": 123,
"owner": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"displayName": "<string>"
},
"startsOn": "2023-12-25",
"endsOn": "2023-12-25"
},
"isDeleted": true
}
Assistant
Responses are generated using AI and may contain mistakes.