Creates an AllowanceAsk AIpost https://api.factorialhr.com/api/2025-10-01/resources/timeoff/allowancesCreates a new Time off allowanceBody Paramsaccrued_denominator_in_centsintegerOnly for Allowances based on worked time. It represents how many units you need to work to be granted allowance unitsaccrued_factor_in_centsintegerOnly for Allowances based on worked time. It represents how many units you are given per unit of time workedaccrued_units_availabilitystringenumrequiredWhen can the accrued units be spent.current_cyclenext_cycleAllowed:current_cyclenext_cycleallowance_typestringenumrequiredSets the allowance units. Can be "days" or "hours"dayshoursAllowed:dayshoursavailable_daysstringenumrequiredIndicates how the allowance units are accrued. For example all_days means all allowance days are given on the first day of the cycle.all_daysgenerated_daysgenerated_days_monthlygenerated_days_monthly_first_daymonthly_fifteenthmensiversarybimonthly_first_and_fifteenthbimonthly_fifteenth_and_lastShow 8 enum valuescarry_over_units_in_centsintegerHow many units can carry over between cycles multiplied by 100count_holiday_as_workablebooleanrequiredThis setting flags if units taken during a bank holiday should be deducted or not from allowance.truefalsecycle_lengthintegerHow many months does each allowance cycle lastcycle_startstringenumrequiredWhen does the cycle start.janfebmaraprmayjunjulaugsepoctnovdecemployee_hired_dateShow 13 enum valuesdays_typestringenumrequiredIndicates if the allowance is based on working on calendar days.working_daysnatural_daysnatural_days_only_rangefrench_calendar_daysfrench_ouvresAllowed:working_daysnatural_daysnatural_days_only_rangefrench_calendar_daysfrench_ouvresexpire_in_monthsintegerWhen does the carryover expire in months.frequencystringenumDefines duration of the allowance cycles. Can be "yearly", "monthly_flexible" or "lifetime"yearlymonthly_flexibleyearlylifetimeAllowed:monthly_flexibleyearlylifetimeholiday_allowance_in_centsintegerrequiredBase amount of holiday allowance units multiplied by 100leave_type_idsarray of integersrequiredAn array of leave type ids associated with that allowanceleave_type_ids*ADD integermaximum_amount_in_centsintegerMaximum the allowance can reach on accruednamestringrequiredAllowance name set by the usernegative_counter_typestringenumrequiredWhether the allowance allows to request more days than available.negative_counter_disablednegative_counter_enabledAllowed:negative_counter_disablednegative_counter_enabledpositionintegerIndicates the position in the allowance when rendering them in UIproration_typestringenumrequiredWhether the allowance has proration enabled or not.proration_enabledproration_disabledAllowed:proration_enabledproration_disabledpto_proratio_enabledbooleanrequiredWhether the allowance days are prorated or nottruefalserange_typestringenumConfigures how leaves duration is handled.working_daysexact_rangeextra_non_working_days_at_endAllowed:exact_rangeextra_non_working_days_at_endroundingstringenumrequiredHow the accrued units of the allowance are rounded. It depends if the allowance is set in hours or days.half_daydecimalsquartersround_upAllowed:half_daydecimalsquartersround_upsource_unitsstringenumrequiredThis field configures the type of allowance (fixed balance, based on worked time)base_unitsovertime_unitsby_worked_timeAllowed:base_unitsovertime_unitsby_worked_timetenure_period_transitionstringenumIn case the allowance has tenure periods, when is this tenure applied.beginning_of_cyclebeginning_of_cycleend_of_cycleafter_milestoneAllowed:beginning_of_cycleend_of_cycleafter_milestonetenure_periods_enabledbooleanWhether the allowance has tenure periods enabled or not.falsetruefalsetenure_periodsarrayrequiredThe tenure periods associated with the allowance.tenure_periods*timeoff_policy_idintegerrequiredThe Id of the policy to which the allowance belongs tounlimited_accrued_hoursbooleanrequiredFlag to indicate if there is unlimited accrual.truefalseunlimited_carry_overbooleanrequiredFlag to indicate if there is unlimited carry over.truefalseunlimited_carry_over_expirationbooleanrequiredBoolean to flag if carryover does not expiretruefalseunlimited_holidaysbooleanrequiredFlag to indicate that the allowance has unlimited available daystruefalseResponse 201CREATEDUpdated 7 months ago