deprecated Extract invoice data (AI) (deprecated)

This action is deprecated - please use the newer 'Detect invoice data with custom fields (AI)' action instead. Extracts structured invoice data (seller, buyer, line items, totals, payment details) from a scanned invoice (PDF or image) using AI vision. Fields that are not present on the invoice are returned empty — verify recognized values before booking.

This action is deprecated. Use Detect invoice data with custom fields (AI) instead.
Extract invoice data (AI) (deprecated)
📄 The scanned or photographed invoice as PDF, JPEG, or PNG file.
Show advanced options
Optional hints for the AI, e.g. 'amounts are in USD'. Max 500 chara…
Appearance of this action in the Power Automate designer (rendered from the connector definition).

Need your own fields?

This action reads the standard invoice fields. If you also need values like a project number, a cost center or an order number from the header, use Detect invoice data with custom fields (AI). You can define up to 10 own fields there, each with an optional check (IBAN, VAT ID, date, amount, your own format) and a Needs Review flag.

How it works

Send a scanned or photographed invoice (PDF, JPEG or PNG). The AI reads the document and returns seller, buyer, payment details, totals and the invoice lines. Of a PDF, the first 10 pages are read.

A typical flow:

  1. Trigger on a new file in a folder or on an email with attachment.
  2. Extract invoice data (AI) with the file content.
  3. Use the values, for example Create item in a SharePoint list, Add a row to Excel or a booking in your ERP.
  4. Optional: if Ready for E-Invoice is true, create an e-invoice with Convert invoice to ZUGFeRD PDF from the recognized data.

Example

Request body (shortened, invoiceFile is the file content):

{
  "invoiceFile": "<file content>",
  "additionalInstructions": ""
}

Response (shortened, from a test invoice):

{
  "invoiceNumber": "RE-2026-0815",
  "invoiceDate": "2026-03-01",
  "currencyCode": "EUR",
  "sellerName": "Muster GmbH",
  "sellerVatId": "DE123456789",
  "buyerName": "Beispiel AG",
  "iban": "DE89370400440532013000",
  "paymentDueDate": "2026-03-31",
  "totalNetAmount": 4320.0,
  "totalVatAmount": 820.8,
  "totalGrossAmount": 5140.8,
  "invoiceLines": [
    {
      "description": "IT consulting February 2026",
      "quantity": 16.0,
      "unitCode": "HUR",
      "unitPrice": 120.0,
      "vatPercent": 19.0,
      "lineNetAmount": 1920.0
    },
    {
      "description": "Software licence, annual",
      "quantity": 1.0,
      "unitCode": "EA",
      "unitPrice": 2400.0,
      "vatPercent": 19.0,
      "lineNetAmount": 2400.0
    }
  ],
  "isReadyForEInvoice": true
}

Fields the AI cannot find stay empty. Missing Required Fields lists the e-invoice fields that are missing, Notes explains uncertain values or skipped pages.

Tips

Parameters

PropertyNameTypeDescription
invoiceFileInvoice File file (base64)The scanned or photographed invoice as PDF, JPEG, or PNG file.
additionalInstructionsAdditional Instructions advancedstringOptional hints for the AI, e.g. 'amounts are in USD'. Max 500 characters.

Returns

PropertyNameTypeDescription
invoiceNumberInvoice Number stringRecognized invoice number
invoiceDateInvoice Date stringRecognized invoice date (format: yyyy-MM-dd)
currencyCodeCurrency stringRecognized currency code (e.g., EUR, USD)
sellerNameSeller Name stringRecognized seller company or person name
sellerStreetSeller Street stringRecognized seller street address
sellerPostcodeSeller Postcode stringRecognized seller postal code
sellerCitySeller City stringRecognized seller city or locality
sellerCountrySeller Country stringRecognized seller country (ISO code, e.g., DE)
sellerVatIdSeller VAT ID stringRecognized seller VAT ID
buyerNameBuyer Name stringRecognized buyer company or person name
buyerStreetBuyer Street stringRecognized buyer street address
buyerPostcodeBuyer Postcode stringRecognized buyer postal code
buyerCityBuyer City stringRecognized buyer city or locality
buyerCountryBuyer Country stringRecognized buyer country (ISO code, e.g., DE)
ibanIBAN stringRecognized bank account IBAN for payment
paymentDueDatePayment Due Date stringRecognized payment due date (format: yyyy-MM-dd)
totalNetAmountTotal Net Amount numberRecognized total net amount (without VAT)
totalVatAmountTotal VAT Amount numberRecognized total VAT amount
totalGrossAmountTotal Gross Amount numberRecognized total gross amount (including VAT)
invoiceLinesInvoice Items array of DtoRecognizedInvoiceLineRecognized invoice lines list
deliveryDateDelivery Date advancedstringRecognized delivery date (format: yyyy-MM-dd)
buyerReferenceBuyer Reference advancedstringRecognized buyer reference or Leitweg-ID (BT-10)
buyerOrderNumberOrder Number advancedstringRecognized purchase order number of the buyer (BT-13)
sellerEmailSeller Email advancedstringRecognized seller email address
buyerVatIdBuyer VAT ID advancedstringRecognized buyer VAT ID
bicBIC advancedstringRecognized bank identifier code (BIC)
paymentRecipientPayment Recipient advancedstringRecognized name of the payment recipient
paymentTermPayment Term advancedstringRecognized payment term
isReadyForEInvoiceReady for E-Invoice advancedbooleanWhether the recognized data contains all fields required to create a valid e-invoice (EN 16931). If false, check 'Missing Required Fields'
missingRequiredFieldsMissing Required Fields advancedarray of stringRequired e-invoice fields that could not be recognized, for example 'Invoice Number (BT-1)'
notesNotes advancedarray of stringNotes about the recognition, for example skipped pages or uncertain values

Type DtoRecognizedInvoiceLine

PropertyNameTypeDescription
descriptionDescription stringRecognized description of the invoiced item or service
quantityQuantity numberRecognized quantity of the item
unitCodeUnit Code stringRecognized measurement unit (ISO code, e.g., C62 for piece)
unitPriceUnit Price numberRecognized net unit price without tax
vatPercentVAT Percent numberRecognized VAT rate for the item (e.g., 19 for 19%)
lineNetAmountLine Net Amount numberRecognized net amount of the line

Example request

{
  "invoiceFile": "<base64-encoded file content>"
}

Example generated from the connector definition.