Skip to main content
Learn about the /reports endpoint.
Report objects contains information related to reports generated for a user, including:
Reports are generated on request and are based on data available from payroll providers. High level structure of the reports object.

The report object

Attributes

  • id (string (uuid), optional): Unique ID of the report object.
  • user (string (uuid), optional): A unique ID assigned to a user.
  • (Deprecated) reference_id (string, optional): Unique ID of the report referenced on the PDF.
  • generated_at (string (timestamp), optional): Shows the date and time when the report was generated.
  • type (note, optional)

Generate a report

POST /v1/reports
  • Generate a report of the desired type for the specified user.
  • This request returns a report object if a valid user was provided.

Request body

  • user (string (uuid), required): Unique user ID.
  • metadata (object, required)

Retrieve a report

GET /v1/reports/{id}
  • Retrieve a report object for a supplied ID.
  • This request returns a report object if a valid ID was provided.

Path parameters

  • id (string (uuid), required): The identifier of the report to be retrieved.

List reports

GET /v1/reports
  • List all reports.
  • This request returns a list of all reports generated.

Query parameters