> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowpayroll.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# A page of a report over one pay run

> Needs permission report:read, or any of pay-run:read. A built-in or saved report over every payslip of the pay run (Preview, Final and Reopened), a page at a time in the report's own order (nulls last), then by row: send the page's nextCursor as after for the next one. The first page also counts the run's rows and sums each money column. A sensitive column the caller cannot read answers empty.



## OpenAPI

````yaml /api-reference/specs/report.json get /payroll-runs/{payrollConfigId}/{year}/{period}/{frequency}/reports/{definitionId}/rows
openapi: 3.0.4
info:
  title: Report Service
  description: >-
    Customisable reporting for FlowPayroll. Callers describe a report as a
    report-definition document, then run it, export it as a file or schedule it.
  contact:
    name: FlowPayroll
    email: support@flowpayroll.com
  version: v1
servers:
  - url: https://api.sandbox.flowpayroll.ai/v1/report
security: []
tags:
  - name: Datasets
    description: >-
      Discover what you can query: list the available datasets and inspect each
      field catalog — types, filterability, groupability, and supported
      aggregations.
  - name: Run reports
    description: >-
      Run a report synchronously — either an inline report definition or a saved
      one — and get columns and rows back in the response.
  - name: Report definitions
    description: >-
      Save a report definition under a name so it can be re-run, exported, and
      scheduled. Create, list, retrieve, replace, and delete definitions.
  - name: Exports
    description: >-
      Queue large result sets as asynchronous exports (CSV or JSONL, up to
      5,000,000 rows) and poll for a presigned download URL.
  - name: Schedules
    description: >-
      Run a saved definition on a cron schedule and deliver the export by
      webhook or email.
  - name: Run history
    description: Audit trail of every report run — synchronous, export, and scheduled.
paths:
  /payroll-runs/{payrollConfigId}/{year}/{period}/{frequency}/reports/{definitionId}/rows:
    get:
      tags:
        - Run reports
      summary: A page of a report over one pay run
      description: >-
        Needs permission report:read, or any of pay-run:read. A built-in or
        saved report over every payslip of the pay run (Preview, Final and
        Reopened), a page at a time in the report's own order (nulls last), then
        by row: send the page's nextCursor as after for the next one. The first
        page also counts the run's rows and sums each money column. A sensitive
        column the caller cannot read answers empty.
      operationId: listPayRunReportRows
      parameters:
        - name: payrollConfigId
          in: path
          required: true
          schema:
            type: string
        - name: year
          in: path
          required: true
          schema:
            type: integer
            format: int32
        - name: period
          in: path
          required: true
          schema:
            type: integer
            format: int32
        - name: frequency
          in: path
          required: true
          schema:
            type: string
        - name: compareYear
          in: query
          description: >-
            A comparison report compares with this year's pay run of the same
            pay schedule; with comparePeriod. Left out: the pay schedule's
            previous pay run.
          schema:
            type: integer
            description: >-
              A comparison report compares with this year's pay run of the same
              pay schedule; with comparePeriod. Left out: the pay schedule's
              previous pay run.
            format: int32
        - name: comparePeriod
          in: query
          description: The period of the pay run to compare with; with compareYear.
          schema:
            type: integer
            description: The period of the pay run to compare with; with compareYear.
            format: int32
        - name: definitionId
          in: path
          description: A built-in report (builtin.gross-to-net) or a saved one
          required: true
          schema:
            type: string
            description: A built-in report (builtin.gross-to-net) or a saved one
        - name: after
          in: query
          description: The previous page's nextCursor
          schema:
            type: string
            description: The previous page's nextCursor
        - name: limit
          in: query
          description: Rows per page, 1 to 2000; 200 when left out
          schema:
            type: integer
            description: Rows per page, 1 to 2000; 200 when left out
            format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayRunReportPage'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceError'
components:
  schemas:
    PayRunReportPage:
      required:
        - columns
        - rows
        - statusScope
      type: object
      properties:
        columns:
          type: array
          items:
            $ref: '#/components/schemas/Column'
          description: The report's columns, in the order of each row's values
        rows:
          type: array
          items:
            type: array
            items: {}
          description: At most limit rows, each one value per column
        nextCursor:
          type: string
          description: Pass as after for the next page; null on the last page
          nullable: true
        totals:
          allOf:
            - $ref: '#/components/schemas/PayRunReportTotals'
          description: >-
            On the first page only (no after): every row of the run counted and
            its money summed
          nullable: true
        statusScope:
          type: string
          description: >-
            Which payslip statuses the report read: ALL unless it filters status
            itself
        comparedWith:
          allOf:
            - $ref: '#/components/schemas/ComparedPayRun'
          description: >-
            For a comparison report, the pay run it compared with; null when
            there was none before
          nullable: true
      description: >-
        One page of a report over one pay run, in the report's own order
        (evolution 0055).
    ValidationErrorResponse:
      required:
        - error
        - errors
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorDetail'
    ServiceError:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    ApiErrorResponse:
      required:
        - message
      type: object
      properties:
        message:
          allOf:
            - $ref: '#/components/schemas/MessageWithTokenResponse'
        validationIssues:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
          nullable: true
    Column:
      required:
        - name
        - type
      type: object
      properties:
        name:
          type: string
        type:
          type: string
    PayRunReportTotals:
      required:
        - rowCount
        - values
      type: object
      properties:
        rowCount:
          type: integer
          description: Every row the report has for the pay run
          format: int64
        values:
          type: array
          items: {}
          description: >-
            One per column: the sum of a money column (a plain amount or a sum),
            null for any other
    ComparedPayRun:
      required:
        - period
        - year
      type: object
      properties:
        year:
          type: integer
          format: int32
        period:
          type: integer
          format: int32
      description: >-
        The pay run of the same pay schedule a comparison report compared with
        (evolution 0056).
    ValidationErrorDetail:
      required:
        - message
        - path
      type: object
      properties:
        path:
          type: string
          description: JSON pointer into the offending request
        message:
          type: string
    MessageWithTokenResponse:
      required:
        - text
        - token
      type: object
      properties:
        text:
          type: string
        token:
          type: string
        tokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
    ValidationIssue:
      required:
        - field
        - reason
        - reasonToken
      type: object
      properties:
        field:
          type: string
        reason:
          type: string
        reasonToken:
          type: string
        reasonTokenArguments:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssueArgument'
          nullable: true
    ValidationIssueArgument:
      required:
        - name
      type: object
      properties:
        name:
          type: string
        value:
          nullable: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.