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

# Get a voucher URL

> Returns a URL to download the transfer voucher of the payment intent in PDF format. The payment intent must belong to your organization and match the mode (`live` or `test`) of the API key used. The URL expires 5 minutes after the request. `url` is `null` when the payment intent does not have a voucher, for example when the payment has not succeeded. Available for organizations on API version `2026-02-01` or later.

**`v2`** · Base URL `https://api.fintoc.com/v2`


## OpenAPI

````yaml reference/fintoc-api-v2.json GET /payment_intents/{id}/voucher_url
openapi: 3.1.0
info:
  title: fintoc-api-v2
  version: v2026-02-01
servers:
  - url: https://api.fintoc.com/v2
security: []
paths:
  /payment_intents/{id}/voucher_url:
    get:
      tags:
        - Payment intents
      summary: Get a voucher URL
      description: >-
        Returns a URL to download the transfer voucher of the payment intent in
        PDF format. The payment intent must belong to your organization and
        match the mode (`live` or `test`) of the API key used. The URL expires 5
        minutes after the request. `url` is `null` when the payment intent does
        not have a voucher, for example when the payment has not succeeded.
        Available for organizations on API version `2026-02-01` or later.
      operationId: payment-intents-voucher
      parameters:
        - name: id
          in: path
          required: true
          description: The `id` of the payment intent that holds the voucher to retrieve.
          schema:
            type: string
      responses:
        '200':
          description: >-
            Presigned URL of the voucher. `url` is `null` when the payment
            intent does not have a voucher.
          content:
            application/json:
              examples:
                payment_intent_voucher_url:
                  value:
                    url: >-
                      https://storage.fintoc.com/vouchers/pi_BO381oEATXonG6bj_bank_voucher.pdf
              schema:
                $ref: '#/components/schemas/payment_intent_voucher_url'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              examples:
                invalid_api_key:
                  value:
                    error:
                      type: authentication_error
                      code: invalid_api_key
                      message: 'Invalid API Key: invalid-*oken'
              schema:
                $ref: '#/components/schemas/error_object'
        '404':
          description: >-
            The payment intent does not exist, belongs to another organization,
            or does not match the mode of the API key used.
          content:
            application/json:
              examples:
                missing_payment_intent:
                  value:
                    error:
                      type: invalid_request_error
                      code: missing_resource
                      param: id
                      message: 'No such payment_intent: pi_nonexistent'
                      doc_url: https://docs.fintoc.com/reference/errors
              schema:
                $ref: '#/components/schemas/error_object'
      security:
        - api_key: []
components:
  schemas:
    payment_intent_voucher_url:
      type: object
      properties:
        url:
          type:
            - string
            - 'null'
          description: >-
            Presigned URL to download the transfer voucher in PDF format. The
            URL expires 5 minutes after the request. `null` when the payment
            intent does not have a voucher.
          example: >-
            https://storage.fintoc.com/vouchers/pi_BO381oEATXonG6bj_bank_voucher.pdf
    error_object:
      type: object
      properties:
        error:
          type: object
          description: Details of the error that caused the request to fail.
          properties:
            code:
              type: string
              description: >-
                Machine-readable code identifying the specific error, for
                example `invalid_api_key`. Not returned by every error.
              example: invalid_api_key
            doc_url:
              type: string
              description: >-
                URL of a documentation page with more details about the error.
                Not returned by every error.
              example: https://docs.fintoc.com/reference/errors
            message:
              type: string
              description: Human-readable message describing the error.
              example: 'Invalid API Key: invalid-*oken'
            param:
              type:
                - string
                - 'null'
              description: >-
                Name of the request parameter that caused the error. `null` when
                the error cannot be tied to a single parameter, and not returned
                by every error.
              example: amount
            type:
              type: string
              description: >-
                Category of the error, for example `invalid_request_error`,
                `authentication_error`, or `api_error`.
              example: invalid_request_error
          required:
            - type
            - message
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header

````