Create a person payroll
POST/api/person-payrolls
Required permissions:
- payroll.employees: allows creating person payrolls.
Request
Header Parameters
The company you want to interact with
The API version you want to use
- application/json
Body
The ID of the person
The ID of the business unit
The yearly cost of the person payroll (excluding taxes)
The total taxes of the person payroll
The start date of the person payroll period
The end date of the person payroll period
Responses
- 201
- 400
- 401
- 403
- 412
Returns the person payroll created.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
The unique identifier of the resource
The date and time when the resource was created
The date and time when the resource was last updated
The ID of the person
The ID of the business unit
The yearly cost of the person payroll (excluding taxes)
The total taxes of the person payroll
The start date of the person payroll period
The end date of the person payroll period
{
"id": 1,
"created_at": "2026-03-13T17:09:41.238Z",
"updated_at": "2026-03-13T17:09:41.238Z",
"person_id": 1,
"business_unit_id": 1,
"cost": 12000,
"taxes": 10,
"from": "2025-01",
"to": "2025-12"
}
Validation failed
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Error unique key
Human-readable message describing the error
failures
object[]
List of validation errors
Name of the field causing the error
Human-readable description of the error
{
"key": "invalid_data",
"message": "You provided invalid data. Check 'failures' for details.",
"failures": [
{
"field": "string",
"message": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Precondition failed
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "precondition_failure",
"message": "string"
}