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

# Report rows: frozen monthly statements

> The monthly-statements read as flat rows, one per statement line, for a reporting connector. Cached for a few minutes until new data lands.



## OpenAPI

````yaml https://plainrouter.com/openapi.json get /workspaces/{workspace}/admin/report-rows/monthly-statements
openapi: 3.1.0
info:
  title: Plainrouter Conversion API
  version: 0.5.0
  description: Plainrouter public Signals Conversion API.
servers:
  - url: https://plainrouter.com/api/v1
    description: Production
security:
  - workspaceSecret: []
paths:
  /workspaces/{workspace}/admin/report-rows/monthly-statements:
    get:
      tags:
        - SignalsExport
      summary: 'Report rows: frozen monthly statements'
      description: >-
        The monthly-statements read as flat rows, one per statement line, for a
        reporting connector. Cached for a few minutes until new data lands.
      operationId: get_report_rows_monthly_statements
      parameters:
        - name: workspace
          in: path
          required: true
          description: The workspace ID
          schema:
            type: integer
        - name: from
          in: query
          description: First month to return, as YYYY-MM.
          schema:
            type:
              - string
              - 'null'
            pattern: ^\d{4}-\d{2}$
        - name: to
          in: query
          description: Last month to return, as YYYY-MM.
          schema:
            type:
              - string
              - 'null'
            pattern: ^\d{4}-\d{2}$
        - name: limit
          in: query
          description: Maximum statements to return, newest first.
          schema:
            type: integer
            default: 12
            minimum: 1
            maximum: 24
      responses:
        '200':
          description: >-
            Frozen monthly statements as flat rows, one per statement line, each
            with basis_note and data_caveat.
          content:
            application/json:
              schema:
                type: object
                properties:
                  table:
                    type: string
                    const: monthly-statements
                  generated_at:
                    type: string
                    description: >-
                      When these rows were read. A repeat read within the cache
                      time can return the same rows until new data lands.
                  has_more:
                    type: boolean
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        month:
                          type: string
                          description: Dimension.
                        version:
                          type: integer
                          description: Dimension.
                        timezone:
                          type: string
                          description: Dimension.
                        frozen_at:
                          type: string
                          description: Dimension.
                        line:
                          type: string
                          description: >-
                            The statement line this row holds: month,
                            meta_currency, conversion_kind or channel. Fields of
                            other lines are null.
                        conversion_kind:
                          type:
                            - string
                            - 'null'
                          description: Dimension.
                        channel:
                          type:
                            - string
                            - 'null'
                          description: Dimension.
                        currency:
                          type:
                            - string
                            - 'null'
                          description: Dimension.
                        counted_arrivals:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_conversions:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_kind_conversions:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_unattributed:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_appeared_in:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_earned:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        counted_earned_value:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Counted by Plainrouter. Null stays null; it is never
                            zero.
                        meta_impressions:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_clicks:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_link_clicks:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_claimed_purchases:
                          type:
                            - string
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_days_with_figures:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_revisions:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_spend:
                          type:
                            - string
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_claimed_purchase_value:
                          type:
                            - string
                            - 'null'
                          description: >-
                            As Meta reports it. Null stays null; it is never
                            zero.
                        meta_null_reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Why the field it names is null, where the read gives
                            a reason.
                        basis_note:
                          type: string
                          description: >-
                            How the two counting bases differ, verbatim from the
                            JSON read.
                        data_caveat:
                          type: string
                          description: >-
                            What to keep in mind when charting this row, in
                            plain sentences.
                      required:
                        - month
                        - version
                        - timezone
                        - frozen_at
                        - line
                        - conversion_kind
                        - channel
                        - currency
                        - counted_arrivals
                        - counted_conversions
                        - counted_kind_conversions
                        - counted_unattributed
                        - counted_appeared_in
                        - counted_earned
                        - counted_earned_value
                        - meta_impressions
                        - meta_clicks
                        - meta_link_clicks
                        - meta_claimed_purchases
                        - meta_days_with_figures
                        - meta_revisions
                        - meta_spend
                        - meta_claimed_purchase_value
                        - meta_null_reason
                        - basis_note
                        - data_caveat
                required:
                  - table
                  - generated_at
                  - has_more
                  - rows
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store, private
        '401':
          description: >-
            Workspace read key missing, revoked, expired or no longer valid for
            its issuer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '403':
          description: >-
            The key lacks the operation scope, ability or current workspace
            role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          description: Workspace or account not found or outside the key binding.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ErrorMessage'
                  - $ref: '#/components/schemas/ApiRouteNotFound'
        '422':
          description: >-
            Unknown parameter, or a value outside the table's own choices. The
            whole request is refused.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
      security:
        - workspaceExportKey: []
components:
  schemas:
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: ErrorMessage
    ApiRouteNotFound:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - api_route_not_found
            message:
              type: string
            resolution:
              type: string
          required:
            - code
            - message
            - resolution
        request:
          type: object
          properties:
            method:
              type: string
            path:
              type: string
          required:
            - method
            - path
        resources:
          type: object
          properties:
            documentation:
              type: string
            openapi:
              type: string
          required:
            - documentation
            - openapi
      required:
        - error
        - request
        - resources
      title: ApiRouteNotFound
    ValidationError:
      type: object
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - message
        - errors
      title: ValidationError
  securitySchemes:
    workspaceSecret:
      type: http
      description: >-
        Per-workspace Server secret. It authenticates only the Signals workspace
        represented by the credential.
      scheme: bearer
    workspaceExportKey:
      type: http
      description: >-
        Workspace read key whose stored grant explicitly names the operation.
        Existing grants are not expanded. A Reporting key reads only arrivals,
        CAC by channel and monthly statements here.
      scheme: bearer

````

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