For more details on salaries (also called cost rates), see the help article.
A Salary represents what a person costs and how many hours they work over a period of time. The period starts on started_on and ends on ended_on, or stays open when ended_on is empty. A person can have several salaries, but their periods can't overlap.
The cost is set with cost in currency, for the period that salary_type_id defines:
salary_type_id: 1 - Monthlysalary_type_id: 2 - Hourlysalary_type_id: 3 - Weeklysalary_type_id: 4 - Bi-weeklysalary_type_id: 5 - AnnuallyProductive calculates hourly_rate from the cost and the working hours. Different periods affect overheads differently, as the help article explains.
working_hours holds 14 numbers: the hours the person works on each day of two weeks, starting on Monday. Both weeks must be the same unless alternating_hours is enabled, which requires the alternating work hours feature on the organization's plan. Each salary also points to a holiday calendar, and holidays in that calendar count as days without working hours. Together they define the person's capacity on each day.
The set_default action creates a person's first salary from the organization's defaults: a monthly salary with zero cost in the organization's currency, the default holiday calendar and the organization's working hours, starting today. It fails for a person who already has a salary.
For a person's cost rates specific to deals and budgets, see deal cost rates.
POST and PATCH requests to salaries are rate limited to 30 requests per two minutes.
The following diagram shows salaries in our data hierarchy:
The date after which this salary record starts being effective (exclusive lower bound for date-range filtering).
Alternating working hours schedule, if the organization has the alternating work hours feature enabled.
The date before which this salary record is effective (exclusive upper bound for date-range filtering).
The person's cost in the salary's native currency (amount in cents).
The person's cost converted to the organization's default currency (amount in cents).
The person's cost normalized for comparison across currencies (amount in cents).
The currency code of this salary record (e.g. USD, EUR).
The organization's default currency code.
The normalized currency code used for cross-currency comparisons.
Whether this is the default (active) salary record for the person.
The date when this salary record ends. Null if the record is currently active.
The date used to calculate the exchange rate for currency conversion.
The exchange rate applied to convert the salary cost to the default currency.
The associated holiday calendar that determines the person's non-working days.
The ID of the holiday calendar used for this person's availability calculations.
The person's hourly rate in the salary's native currency (amount in cents).
The hourly rate converted to the organization's default currency, in whole currency units.
The hourly rate converted to the organization's normalized currency, in whole currency units.
An optional note or description for this salary record.
The organization this salary record belongs to.
When true, this salary entry is counted as overhead cost rather than direct project cost.
The person this salary record applies to.
ID of the person this salary record applies to.
ID of the salary type for this record (e.g. hourly, monthly).
Date when this salary record becomes effective.
The weekly working hours schedule for this salary record.