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

# Read QR code from invoice

> Extract payment information from Swiss QR-bills



## OpenAPI

````yaml post /v1/invoices/qrcode
openapi: 3.0.0
info:
  title: Invoices API
  version: 1.0.0
  description: API documentation for Invoices management package
servers: []
security:
  - bearerAuth: []
paths:
  /v1/invoices/qrcode:
    post:
      tags:
        - QR Code
      summary: Read QR code from invoice
      description: Extract payment information from Swiss QR-bills
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QRCodeInput'
      responses:
        '200':
          description: QR code content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QRCodeInfo'
        '400':
          description: Invalid file format or no QR code found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: File too large
        '422':
          description: Invalid QR code format
components:
  schemas:
    QRCodeInput:
      type: object
      required:
        - base64_file
      properties:
        base64_file:
          type: string
          description: Base64 encoded image/PDF containing QR code
          example: JVBERi0xLjcKCjEgMCBvYmogICUgZW50...
        options:
          type: object
          properties:
            page:
              type: integer
              minimum: 1
              default: 1
              description: Page number for PDF documents
            validate_format:
              type: boolean
              default: true
              description: Validate Swiss QR-bill format
    QRCodeInfo:
      type: object
      properties:
        qr_info:
          type: object
          properties:
            iban:
              type: string
            creditor:
              type: object
              properties:
                name:
                  type: string
                address:
                  type: string
                zip:
                  type: string
                city:
                  type: string
                country:
                  type: string
            amount:
              type: number
            currency:
              type: string
            reference:
              type: string
            message:
              type: string
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Error code
          example: invalid_input
        message:
          type: string
          description: Error message
          example: Invalid input data
        details:
          type: object
          description: Additional error details
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````