Set recurrent limit
Sets the recurrent employee limits for all the benefits defined by the partner
Documentation Index
Fetch the complete documentation index at: https://docs.partners.api.cobee.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint allows you to set the employee limits for all the benefits defined by the partner, such as meals, transport and nurseries. It is mandatory to send the fieldappliesTo for each benefit to specify if the limit applies to the employee or a child. The possible values are employee or child.
Period values per benefit
Although theperiod field accepts payroll and year as possible values, not all benefits support both:
| Benefit | Allowed period values |
|---|---|
meal | payroll only |
transport | payroll only |
nursery | year only |
period value for a given benefit will result in a validation error.
How it works?
The recurrent limit acts as the foundational base for an employee’s benefits month after month. It is tied to a specific payroll cycle using the mandatorypayroll query parameter.
- Next payroll cycle: You can only set recurrent limits for the next upcoming payroll cycle (e.g., if the current month is February, you must send March). Once set, this limit will automatically carry over into all subsequent payrolls.
- Current or other future payroll cycles: If you attempt to update recurrent limits for the current payroll cycle or any cycle beyond the next one, the API will reject the request with a
400 Bad Requesterror. - Precedence: If an employee has a recurrent limit set, but a punctual limit is also set for the exact same month, the punctual limit will always prevail for that specific cycle.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The company identifier
The employee identifier
Query Parameters
The next payroll cycle identifier (format YYYY-MM). It must strictly correspond to the next upcoming payroll cycle.
^\d{4}-(0[1-9]|1[0-2])$Response
Limits successfully set
The unique identifier of the company.
"a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890"
The unique identifier of the employee.
"dd3de3a0-f903-42a0-b729-4cb16f185bc6"
The next payroll cycle identifier (format YYYY-MM) from which the recurrent limits take effect.
^\d{4}-(0[1-9]|1[0-2])$"2023-11"
Echoes back the exact limits payload that was successfully applied to future cycles