Salaries

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 - Monthly
  • salary_type_id: 2 - Hourly
  • salary_type_id: 3 - Weekly
  • salary_type_id: 4 - Bi-weekly
  • salary_type_id: 5 - Annually

Productive 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:

PersonHoliday CalendarSalaries

Attributes

after string
Parameter `filter`

The date after which this salary record starts being effective (exclusive lower bound for date-range filtering).

alternating_hours boolean
Response Request

Alternating working hours schedule, if the organization has the alternating work hours feature enabled.

before string
Parameter `filter`

The date before which this salary record is effective (exclusive upper bound for date-range filtering).

cost integer
Response Request

The person's cost in the salary's native currency (amount in cents).

cost_default object
Response

The person's cost converted to the organization's default currency (amount in cents).

cost_normalized object
Response

The person's cost normalized for comparison across currencies (amount in cents).

currency string
Response Request

The currency code of this salary record (e.g. USD, EUR).

currency_default object
Response

The organization's default currency code.

currency_normalized object
Response

The normalized currency code used for cross-currency comparisons.

default_salary object
Response

Whether this is the default (active) salary record for the person.

ended_on string
Response Request

The date when this salary record ends. Null if the record is currently active.

exchange_date string
Response

The date used to calculate the exchange rate for currency conversion.

exchange_rate number
Response

The exchange rate applied to convert the salary cost to the default currency.

holiday_calendar holiday calendar
Response

The associated holiday calendar that determines the person's non-working days.

holiday_calendar_id object
Request

The ID of the holiday calendar used for this person's availability calculations.

hourly_rate object
Response

The person's hourly rate in the salary's native currency (amount in cents).

hourly_rate_default object
Response

The hourly rate converted to the organization's default currency, in whole currency units.

hourly_rate_normalized object
Response

The hourly rate converted to the organization's normalized currency, in whole currency units.

note object
Response Request

An optional note or description for this salary record.

organization organization
Response

The organization this salary record belongs to.

overhead boolean
Response Request

When true, this salary entry is counted as overhead cost rather than direct project cost.

person person
Response

The person this salary record applies to.

person_id integer
Request Parameter `filter`

ID of the person this salary record applies to.

salary_type_id integer
Response Request

ID of the salary type for this record (e.g. hourly, monthly).

started_on string
Response Request

Date when this salary record becomes effective.

working_hours object
Response Request

The weekly working hours schedule for this salary record.

Examples

Loading example