# extractinvoicedata: Invoice Parser – Extract Invoice Data

> extractinvoicedata (Invoice Parser – Extract Invoice Data) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/extractinvoicedata, 13 credits per item. It works as a ready-made module in Make or as a plain HTTP call.

Reads an invoice (PDF or image, also scanned) into fixed fields: invoice number, dates, currency, supplier with VAT ID and IBAN, buyer, net, tax and total amounts, payment terms and line items. Missing values come back as null. Works with scanned documents, photos, tables and handwriting. Processed in the EU by Mistral AI (no training on your data). Charged per page (13 credits), at most 8 pages per call.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/extractinvoicedata`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 13 credits per item
- Ready-made in: Make
- Service provider: Mistral
- Docs: https://1001fx.com/functions/extractinvoicedata

## Parameters

- `file` (file, optional) – File: The invoice (PDF or image) to read. Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the invoice (PDF or image). Either file or fileUrl.
- `pages` (string, optional) – Pages: Pages to read, e.g. 1-3,7 (first page = 1). At most 8 pages per call; without it all pages (documents up to 8 pages).

## Use cases

- Read supplier invoices from an email inbox and book them in your accounting tool
- Collect invoice numbers, amounts and due dates of scanned invoices in a Google Sheet
- Check the IBAN and VAT ID of a supplier before you pay an invoice

## Example: Invoice Parser

```bash
curl -X POST 'https://api.1001fx.com/files/extractinvoicedata' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```

## FAQ

**Which fields are extracted?**

Invoice number, dates, currency, supplier with VAT ID and IBAN, buyer, net, tax and total amounts, payment terms and line items. Values that are not on the invoice come back as null.

**Does it work with scanned invoices and photos?**

Yes. PDFs and images are read, also scans, photos and handwriting. Pass the file as upload or its public URL in fileUrl.

**Where is the invoice processed?**

In the EU by Mistral AI, without training on your data. At most 8 pages are read per call.
