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

# Register Invoices API

> Register uploaded invoice files in Breezing and start the OCR scan that extracts vendor, date, amount, and tax fields for review.



## OpenAPI

````yaml POST /invoices
openapi: 3.1.0
info:
  title: Breezing Public API
  version: 1.0.0
  description: >-
    Crypto accounting API for programmatic access and AI agents. Authenticate
    with an API key using the Authorization header: `Bearer brz_...`
servers:
  - url: https://api.breezing.io/v1
security:
  - BearerAuth: []
paths:
  /invoices:
    post:
      tags:
        - Invoices
      summary: Register uploaded invoice files and start the scan
      description: >-
        Step 2 of the intake: create one received invoice per uploaded file
        (status "processing") and queue ONE OCR scan task over them. storagePath
        values must be the ones minted for this company by POST
        /invoices/upload-links (400 otherwise). Scanning budget: 3000 OCR pages
        per company per day, charged at registration as 30 pages per file (the
        most a scan reads); beyond it the call answers 429 with the reason and
        nothing is registered. Poll GET /tasks with the returned taskId, then
        GET /invoices?status=review to pick up the extracted fields. Per-file
        scan failures mark that invoice "failed" and the batch continues.
      parameters:
        - schema:
            type: string
            description: >-
              Organization ID. Use GET /v1/companies to discover available
              org/company pairs.
            example: '1'
          required: true
          description: >-
            Organization ID. Use GET /v1/companies to discover available
            org/company pairs.
          name: orgId
          in: query
        - schema:
            type: string
            description: >-
              Company ID. Use GET /v1/companies to discover available companies
              and their access levels.
            example: '1'
          required: true
          description: >-
            Company ID. Use GET /v1/companies to discover available companies
            and their access levels.
          name: companyId
          in: query
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterInvoicesBody'
      responses:
        '200':
          description: Invoices registered, scan queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      taskId:
                        type: number
                        description: >-
                          The scan task (operation "invoiceScan"); poll GET
                          /tasks. Each invoice flips to "review" (or "failed")
                          as its scan lands.
                      invoiceIds:
                        type: array
                        items:
                          type: number
                        description: One invoice per file, in input order.
                    required:
                      - taskId
                      - invoiceIds
                required:
                  - success
                  - data
        '400':
          description: Invalid storage path or body
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '403':
          description: >-
            API key has no access to this company, has read-only access where
            write was required, or the company subscription is inactive
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '429':
          description: The scanning budget of the company for today is used up
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
      security:
        - BearerAuth: []
components:
  schemas:
    RegisterInvoicesBody:
      type: object
      properties:
        files:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                minLength: 1
                maxLength: 255
                description: Original file name (display only).
                example: aws-march.pdf
              contentType:
                type: string
                enum:
                  - application/pdf
                  - image/png
                  - image/jpeg
                  - image/webp
                  - image/heic
                description: >-
                  Ignored since 2026-10-23: the content type is derived from the
                  extension and returned in requiredHeaders.
              extension:
                type: string
                enum:
                  - pdf
                  - png
                  - jpg
                  - jpeg
                  - webp
                  - heic
                  - heif
              storagePath:
                type: string
                maxLength: 500
                description: >-
                  The storagePath returned by POST /invoices/upload-links for
                  this file.
            required:
              - name
              - extension
              - storagePath
          minItems: 1
          maxItems: 500
          description: Uploaded files to register (1-500).
      required:
        - files

````

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