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

# List filing documents

> List the confirmation documents attached to a filing: the filing confirmation, the payment confirmation and the filed return. To download a document, call `GET /files/{file_id}` with its `file_id`; the response includes a `signed_url` that is valid for 20 minutes.



## OpenAPI

````yaml GET /filings/{id}/documents
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, indirect tax, compliance, and corporate
    operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /filings/{id}/documents:
    get:
      summary: List filing documents
      description: >-
        List the confirmation documents attached to a filing: the filing
        confirmation, the payment confirmation and the filed return. To download
        a document, call `GET /files/{file_id}` with its `file_id`; the response
        includes a `signed_url` that is valid for 20 minutes.
      operationId: listFilingDocuments
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
          description: The unique identifier of the filing.
      responses:
        '200':
          description: >-
            The documents attached to the filing. Empty when none have been
            attached yet.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/FilingDocument'
                  message:
                    type: string
                    example: Successfully fetched filing documents.
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Filing not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FilingDocument:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier for the filing document.
        filing_id:
          type: string
          format: uuid
          description: The filing this document belongs to.
        file_id:
          type: string
          format: uuid
          description: >-
            Identifier of the file. Call `GET /files/{file_id}` to get a signed
            download URL.
        type:
          type: string
          enum:
            - FILING_CONFIRMATION
            - PAYMENT_CONFIRMATION
            - RETURN_CONFIRMATION
          description: >-
            What the document is. `FILING_CONFIRMATION`: the tax authority's
            confirmation that the return was filed. `PAYMENT_CONFIRMATION`: the
            confirmation of payment. `RETURN_CONFIRMATION`: a copy of the filed
            return. A filing has at most one document of each type.
        created_at:
          type: integer
          format: int64
          description: When the document was attached, in Unix microseconds.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: 'Specific Error type. Example: CLIENT_INVALID_REQUEST_BODY.'
              example: CLIENT_INVALID_REQUEST_BODY
            doc_url:
              type: string
              description: >-
                A link to the docs with details about this error. Example:
                https://sales-tax-docs.commenda.io/
              example: https://sales-tax-docs.commenda.io/
            title:
              type: string
              description: >-
                A short title describing the error. Example: Missing query
                parameters.
              example: Failed to validate the request body
            detail:
              type: string
              description: >-
                A json string with a description on how to fix the error.
                Example {"description":"Please pass in a valid corporation_id"}
            status:
              type: number
              description: >-
                The status code. It should be the same as the HTTP protocol
                status code. Example: 200
              example: 400
            instance:
              type: string
              description: >-
                The relative path that was hit by the user. Example:
                /api/v1/corporations/1
            Errors:
              type: array
              items:
                type: object
                properties:
                  details:
                    type: string
                    description: More details on how to solve this particular error.
                  pointer:
                    type: string
                    description: >-
                      Relative reference to missing or invalid piece of passed
                      information.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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