> ## 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 documents for a business entity

> List documents for a customer's business entity.

List documents for a customer's business entity.


## OpenAPI

````yaml GET /partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/documents
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, 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, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /partner/commenda-os/customers/{customerId}/business-entities/{businessEntityId}/documents:
    get:
      summary: List documents for a business entity
      description: List documents for a customer's business entity.
      operationId: listPartnerCommendaOsDocuments
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: integer
          description: Commenda customer identifier.
        - name: businessEntityId
          in: path
          required: true
          schema:
            type: integer
          description: Commenda business-entity identifier for the specified customer.
      responses:
        '200':
          description: Documents retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsDocumentsResponse'
        '401':
          description: Missing or invalid partner API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsPartnerError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsPartnerError'
        '404':
          description: Business entity not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommendaOsPartnerError'
      security:
        - xApiKeyAuth: []
      servers:
        - url: https://api.prod.commenda.io/api/v1
components:
  schemas:
    CommendaOsDocumentsResponse:
      type: object
      required:
        - documents
        - count
      properties:
        documents:
          type: array
          items:
            $ref: '#/components/schemas/CommendaOsDocument'
        count:
          type: integer
          example: 3
    CommendaOsPartnerError:
      type: object
      required:
        - statusCode
        - message
        - error
      properties:
        statusCode:
          type: integer
          description: HTTP status code for the error response.
        message:
          description: >-
            Error message returned by the API. Exact text varies by failure
            mode.
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
          description: Standard error label for the response status.
    CommendaOsDocument:
      type: object
      required:
        - documentType
        - documentSubType
        - supportsDataStorage
        - isTimeSensitive
        - isUnique
      properties:
        id:
          type: integer
          nullable: true
          example: 900
        fileName:
          type: string
          nullable: true
          example: operating-agreement.pdf
        fileUrl:
          type: string
          nullable: true
          format: uri
          example: https://bucket.s3.amazonaws.com/operating-agreement.pdf
        documentType:
          type: string
          example: FORMATION_DOCUMENT
        documentSubType:
          type: string
          example: OperatingAgreement
        complianceTag:
          type: string
          nullable: true
        compliancePurpose:
          type: string
          nullable: true
        dateOfIssuance:
          type: string
          nullable: true
        dateOfExpiration:
          type: string
          nullable: true
        effectiveStartDate:
          type: string
          nullable: true
        effectiveEndDate:
          type: string
          nullable: true
        supportsDataStorage:
          type: boolean
          example: false
        data:
          type: object
          nullable: true
          additionalProperties: true
        createdAt:
          type: integer
          nullable: true
          example: 1735689600000
        updatedAt:
          type: integer
          nullable: true
          example: 1735776000000
        deprecatedFieldsForFrontend:
          type: object
          nullable: true
          additionalProperties: true
        explicitDocumentType:
          type: string
          nullable: true
        isTimeSensitive:
          type: boolean
          example: false
        isUnique:
          type: boolean
          example: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````