GuidesAPI ReferenceChangelogAPI PolicyAPI StatusGusto Security
API Reference
v2023-09-01 is in the deprecation process and all prior versions have been deprecated. Click this banner to review our version upgrade guide.

Create a custom report

Create a custom report for a company. This endpoint initiates creating a custom report with custom columns, groupings, and filters. The request_uuid in the response can then be used to poll for the status and report URL upon completion using the report GET endpoint.

scope: company_reports:write

Path Params
string
required

The UUID of the company

Body Params
columns
array of strings
required

Columns to include in the report

columns*
groupings
array of strings
required

How to group the report

groupings*
string

The title of the report

string
required

The type of file to generate

boolean
Defaults to false

Whether to include subtotals and grand totals in the report

date

Start date of data to filter by

date

End date of data to filter by

date

Dismissed start date of employees to filter by

date

Dismissed end date of employees to filter by

string

Payment method to filter by

string

Employee employment type to filter by

string

Employee employment status to filter by

employee_uuids
array of strings

Employees to filter by

employee_uuids
department_uuids
array of strings

Departments to filter by

department_uuids
work_address_uuids
array of strings

Work addresses to filter by

work_address_uuids
Headers
string
Defaults to 2024-04-01

Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.

Responses

Response body
object
string

A unique identifier of the report request

string

Company UUID

string

Title of the report

string

File type

404

Not Found

The requested resource does not exist. Make sure the provided UUID is valid.

invalid_attribute_value, or the request fails due to an invalid_operation. See the Errors Categories guide for more details.

Language
Credentials