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

# Download a live corridor document (PDF)

> Re-issues a live PDF for the given canonical document kind (for example `PAYOUT_RECEIPT`). Descriptors (`kind`, `availability`) live on `GET /partner/operations/:operationId` `documents`. PDF bytes are never attached to webhooks. Each call re-renders a `LIVE` receipt.



## OpenAPI

````yaml /raas-widgets/openapi.json get /partner/operations/{operationId}/documents/{kind}
openapi: 3.0.0
info:
  title: RaaS Widgets Partner API
  description: >
    REST API for RaaS Widgets partner integrations. Create magic links for
    embeddable flows, manage end users, track transfer operations, handle CIP
    verification, and configure webhooks for real-time event notifications.


    This specification covers the **Partner-accessible API** only (`X-API-Key`
    against `/partner/*`). Widget and Superadmin APIs are out of scope.


    ## Authentication


    All endpoints require an API key passed in the `X-API-Key` header. Use
    `raas_sandbox_*` keys for the sandbox environment and `raas_live_*` keys for
    production.


    ## Environments


    | Environment | Base URL |

    |---|---|

    | Sandbox | `https://api.sandbox.raas-widgets.leapfinancial.com` |
  version: 3.3.0
  contact: {}
servers:
  - url: https://api.sandbox.raas-widgets.leapfinancial.com
    description: Sandbox
security: []
tags:
  - name: Partner - Magic Links
    description: Create, list, and manage magic links for flows
  - name: Partner - Flows
    description: List enabled flows and the full flow catalog
  - name: Partner - Users
    description: View and manage end users associated with your partner account
  - name: Partner - Operations
    description: Track money transfer operations and their statuses
  - name: Partner - Requests
    description: List and inspect money-request records
  - name: Partner - Deferred Payouts
    description: List, inspect, and cancel deferred payout remittances
  - name: Partner - CIP
    description: Customer Identification Program (CIP) verification management
  - name: Partner - Data Requests
    description: Fulfill data requests for additional user information
  - name: Partner - Settings
    description: Configure partner-level settings (redirect URLs, logo, etc.)
  - name: Partner - Webhooks
    description: Configure webhook endpoints and inspect delivery history
  - name: Partner - Pricing
    description: >-
      Indicative pre-quote summaries (best / worst / averages) for partner
      integrations
paths:
  /partner/operations/{operationId}/documents/{kind}:
    get:
      tags:
        - Partner - Operations
      summary: Download a live corridor document (PDF)
      description: >-
        Re-issues a live PDF for the given canonical document kind (for example
        `PAYOUT_RECEIPT`). Descriptors (`kind`, `availability`) live on `GET
        /partner/operations/:operationId` `documents`. PDF bytes are never
        attached to webhooks. Each call re-renders a `LIVE` receipt.
      operationId: OperationsController_issueDocument
      parameters:
        - name: operationId
          required: true
          in: path
          description: Unique operation identifier
          schema:
            example: op_acme_abc123
            type: string
        - name: kind
          required: true
          in: path
          description: Canonical document kind from `data.documents[].kind`
          schema:
            enum:
              - PAYOUT_RECEIPT
              - SENDER_RECEIPT
              - PREPAYMENT_DISCLOSURE
              - COMPLIANCE_STATEMENT
            type: string
      responses:
        '200':
          description: PDF binary
        '401':
          description: Unauthorized — invalid or missing API key / bearer token
        '404':
          description: Operation or document not found
      security:
        - api-key: []
components:
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your partner API key. Use `raas_sandbox_*` keys for the sandbox
        environment and `raas_live_*` keys for production.

````

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