> ## Documentation Index
> Fetch the complete documentation index at: https://rain-sandbox-trial.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Download a user or company's monthly statement

> Downloads a user or company's monthly statement as a PDF for the statement period identified by `year` and `month`. The `year` and `month` identify the month the statement covers. The user or company must belong to the authenticated tenant.

<Info>
  This endpoint is currently available for **Rain-Managed** programs only.
</Info>


## OpenAPI

````yaml get /issuing/statements/{year}/{month}
openapi: 3.0.3
info:
  title: Issuing API
  description: This is the specification for Rain's Issuing API.
  termsOfService: https://www.rain.xyz/legal/authorized-user-terms
  contact:
    email: support@rain.xyz
  version: 1.3.0
servers:
  - url: https://api-dev.rain.xyz/v1
    description: Sandbox server
  - url: https://api.rain.xyz/v1
    description: Production server
security: []
tags:
  - name: paymentRoutes
    description: >-
      **Endpoint Migration:** The `/v1/automations` endpoints have been renamed
      to `/v1/payment-routes`. The old `/v1/automations` paths remain available
      as deprecated aliases during migration. Update your integrations to use
      `/v1/payment-routes` as the deprecated endpoints will be removed in a
      future release.
  - name: simulate
    description: >-
      Transaction simulation endpoints for testing integration flows in
      non-production environments. These endpoints let you trigger transaction
      events programmatically to automate integration tests and verify webhook
      handling without depending on external systems or staging real deposits.
      **Sandbox only** — all simulation endpoints return `404 Not Found` in
      production.
  - name: raindrops
    description: >-
      Rewards and points management endpoints. Custom API keys need
      `raindrops:read`/`raindrops:write` for general rewards endpoints and
      `raindrops-travel:read`/`raindrops-travel:write` for travel redemption
      endpoints.
    x-group: rewards
paths:
  /issuing/statements/{year}/{month}:
    get:
      tags:
        - statements
      summary: Download a user or company's monthly statement
      description: >-
        Downloads a user or company's monthly statement as a PDF for the
        statement period identified by `year` and `month`. The `year` and
        `month` identify the month the statement covers. The user or company
        must belong to the authenticated tenant.
      operationId: getIssuingUserOrCompanyMonthlyStatement
      parameters:
        - name: year
          in: path
          description: Year the statement covers
          required: true
          schema:
            type: integer
        - name: month
          in: path
          description: >-
            Month the statement covers, as a number from 1 (January) to 12
            (December)
          required: true
          schema:
            type: integer
            minimum: 1
            maximum: 12
        - name: userId
          in: query
          description: >-
            ID of the user whose statement you want to download. Provide exactly
            one of `userId` or `companyId`. Provide exactly one of userId or
            companyId.
          required: false
          schema:
            type: string
            format: uuid
        - name: companyId
          in: query
          description: >-
            ID of the company whose statement you want to download. Provide
            exactly one of `userId` or `companyId`. Provide exactly one of
            userId or companyId.
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful operation
          content:
            application/pdf:
              schema:
                type: string
                format: binary
                description: The user or company's monthly statement PDF
        '400':
          description: Invalid path or query parameters
        '401':
          description: Invalid authorization
        '404':
          description: >-
            Not found. The response `message` field indicates the cause:


            - `Company or user not found`: the specified company or user doesn't
            belong to the authenticated tenant.

            - `Statement not found for the specified period`: no statement
            exists for that company or user for the specified period.

            - `Statement PDF not found`: a statement record exists, but its PDF
            isn't available.
        '500':
          description: Internal server error
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Api-Key
      in: header

````