Skip to navigation

List Single Staff Salary Components

Lists the incentive or reimbursement entries recorded for one staff member between two dates, newest first. Needs Payroll on your plan.

  • salarybox_id, component_type, start_date and end_date are required. Both dates are inclusive, YYYY-MM-DD, the range is at most 366 days and end_date must be on or after start_date.
  • results are the same objects that POST /payroll/salary-components returns in data.
  • Use this to check whether an entry is already recorded before sending POST /payroll/salary-components again.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Query parameters

salarybox_idstringRequired
SalaryBox ID of an active staff member.
component_typeenumRequired
Which kind of entry to list.
Allowed values:
start_datedateRequired

First day to include, YYYY-MM-DD.

end_datedateRequired

Last day to include, YYYY-MM-DD. On or after start_date, at most 366 days after it.

pageintegerOptional
Page number to fetch. Defaults to 1.
page_sizeintegerOptional

Number of results per page (max 500). Defaults to 500.

Response

The entries in the range.
messagestringOptional
statusbooleanOptional
datalist of objectsOptional
countintegerOptional
prevstring or nullOptional
nextstring or nullOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error