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

# List operation documents

> Lists documents registered for one operation scoped to the signed partner integration.



## OpenAPI

````yaml /openapi/payfi-v1.json get /v1/operations/{operationId}/documents
openapi: 3.0.0
info:
  title: PayFi Partner API
  description: >-
    Partner API for PayFi compliance document automation. Dashboard Partner
    access is the admin role for exactly one partner integration; public API
    requests remain authenticated with signed partner API keys.
  version: 0.1.0
  contact: {}
servers:
  - url: https://sandbox.payfi.global
    description: Sandbox
  - url: https://api.payfi.global
    description: Production
security: []
tags:
  - name: Customers
    description: Signed partner endpoints for customer records.
  - name: Operations
    description: Signed partner endpoints for operations, documents, and upload completion.
  - name: Webhooks
    description: Partner-managed webhook endpoints and signed callback tests.
paths:
  /v1/operations/{operationId}/documents:
    get:
      tags:
        - Operations
      summary: List operation documents
      description: >-
        Lists documents registered for one operation scoped to the signed
        partner integration.
      operationId: PartnerApiController_listDocuments
      parameters:
        - name: operationId
          in: path
          required: true
          description: Operation ID.
          schema:
            type: string
          example: op_example
      responses:
        '200':
          description: Operation documents.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDocumentsResponse'
              examples:
                documents:
                  value:
                    - documentId: doc_example
                      documentType: invoice
                      originalFileName: invoice-123.pdf
                      fileName: invoice-123.pdf
                      contentType: application/pdf
                      sizeBytes: 123456
                      status: PROCESSED
                      rejectionReason: null
                      createdAt: '2026-05-20T12:00:00.000Z'
                      updatedAt: '2026-05-20T12:05:00.000Z'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidRequest:
                  value:
                    error:
                      code: INVALID_REQUEST
                      message: The request payload is invalid.
        '401':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                unauthorized:
                  value:
                    error:
                      code: UNAUTHORIZED
                      message: Authentication failed.
      security:
        - PayFiApiKey: []
          PayFiNonce: []
          PayFiSignature: []
components:
  schemas:
    ListDocumentsResponse:
      type: array
      items:
        type: object
        properties:
          documentId:
            type: string
            example: doc_example
          documentType:
            type: string
            enum:
              - invoice
              - bill_of_lading
              - packing_list
              - di_duimp
              - bank_details
              - proforma
              - service_contract
              - insurance_policy
            example: invoice
          originalFileName:
            type: string
            example: invoice-123.pdf
          fileName:
            type: string
            example: invoice-123.pdf
          contentType:
            type: string
            example: application/pdf
          sizeBytes:
            type: number
            example: 123456
          status:
            type: string
            enum:
              - REGISTERED
              - UPLOAD_PENDING
              - UPLOADED
              - SCANNING
              - CLEAN
              - REJECTED
              - PROCESSING
              - PROCESSED
              - PROCESSING_FAILED
            example: PROCESSED
          rejectionReason:
            type: string
            nullable: true
            example: null
          createdAt:
            type: string
            example: '2026-05-20T12:00:00.000Z'
          updatedAt:
            type: string
            example: '2026-05-20T12:05:00.000Z'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: INVALID_SIGNATURE
            message:
              type: string
              example: The request signature is invalid.
  securitySchemes:
    PayFiApiKey:
      type: apiKey
      in: header
      name: X-PayFi-Api-Key
    PayFiNonce:
      type: apiKey
      in: header
      name: X-PayFi-Nonce
    PayFiSignature:
      type: apiKey
      in: header
      name: X-PayFi-Signature

````