---
title: Extract Invoice Data API
slug: extract-invoice
url: https://apyhub.com/skavio/service/extract-invoice
provider: Skavio LLC
categories: [Ingestion Kit, Document Intelligence Kit]
tags: [invoice-extraction, document-intelligence, accounts-payable, line-items, ocr]
auth: api_key
version: 1.1.0
service_type: sync
endpoints: 1
atoms: 2000
mcp: true
---

# Extract Invoice Data API

Invoice extraction API: send a PDF or image invoice and get supplier, number, dates, totals and line items. Pick your fields. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/skavio/extract-invoice` | What it does Extracts structured data from one invoice page. Send a PDF or image and get back the s… | 2000 |

## Endpoint reference

### Extract Invoice Data

`POST https://api.eu.apyhub.com/skavio/extract-invoice` · 2000 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `fields` | body | array of string | no |  |
| `file_name` | body | string | yes | File name with extension (pdf, png, jpg, jpeg, tif, tiff, webp, bmp, gif, txt). |
| `file_base64` | body | string | yes | Base64-encoded file (max 20 MB decoded). |
| `include_line_items` | body | boolean | no | Default: `true`. |

#### Quickstart

Extract the data from a one-page invoice PDF.

```bash
curl -X POST "https://api.eu.apyhub.com/skavio/extract-invoice" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "invoice.pdf",
    "file_base64": "JVBERi0xLjMK...",
    "include_line_items": true
  }'
```

#### What you'll get back

A real response for a one-page invoice from ACME Supplies Ltd:

```json
{
  "documents": [
    {
      "fields": {
        "supplier": "ACME Supplies Ltd",
        "invoice_number": "INV-2026-0042",
        "issue_date": "2026-11-15",
        "due_date": "2026-12-15",
        "currency": "GBP",
        "net_total": "410.00",
        "vat_total": "82.00",
        "total": "492.00"
      },
      "line_items": [
        { "description": "Printer paper A4 box", "sku": null, "quantity": "10", "unit_price": "25.00", "total": "250.00" },
        { "description": "Black toner cartridge", "sku": null, "quantity": "2", "unit_price": "80.00", "total": "160.00" }
      ],
      "review_required": true,
      "warnings": []
    }
  ],
  "pages": 1,
  "status": "completed",
  "usage": { "atoms": 2000, "units": 1, "unit": "page" },
  "request_id": "39c49f52-4997-4bf8-8c48-cb3c62be16a6-73378aba"
}
```

To pick your own fields, add `"fields": ["invoice_number", "total", "buyer_name", "supplier_vat_number"]`.

## About

## What it does

The invoice extraction API reads an invoice file and returns its data as JSON. Send the file as `file_base64` with its `file_name`. You get back the supplier, invoice number, issue date and due date. You also get the currency, net total, VAT total and total.

Line items come back by default, each with a description, SKU, quantity, unit price and total. Set `include_line_items` to `false` to skip them. To pull other data, list up to 30 names in `fields`, such as `buyer_name` or `supplier_vat_number`. Fields not found on the invoice come back as `null`.

Scanned and photographed invoices work as well as digital PDFs. Supported files are PDF, PNG, JPG, TIFF, WEBP, BMP and GIF, up to 20 MB. Each request can contain 1 page, so split multi-page invoices and send each page separately.

Every result has a `review_required` flag and a `warnings` list, so your app can send unclear invoices to a person.

Teams use the invoice extraction API for accounts payable intake, expense processing and indexing supplier invoices without manual data entry.

Next, check the supplier's EU VAT number with the [VAT Validation API](https://apyhub.com/apyhub/service/validate-vat-number). For invoices in other languages, translate the extracted text with the [Text Translation API](https://apyhub.com/sharpapi/service/translate-text).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/skavio/service/extract-invoice
