---
title: "Invoice / Receipt Extraction (x402)"
method: POST
path: "/x402/v2/invoice-extract"
tags: ["x402"]
---

# Invoice / Receipt Extraction (x402)

`POST /x402/v2/invoice-extract`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/invoice-extract`
- Auth: none required

Extract structured data from an invoice or receipt image/PDF. Returns line items, totals, dates, vendor info, VAT amounts.

## Request body

- object
  - `url` string: URL to invoice image or PDF
  - `base64` string: Base64-encoded invoice file

## Response `200`

Success

- object
  - `iban` string
  - `currency` string
  - `due_date` string
  - `subtotal` number
  - `vat_rate` number
  - `buyer_vat` string
  - `buyer_name` string
  - `confidence` object
  - `line_items` unknown[]
    - unknown
  - `vat_amount` number
  - `vendor_vat` string
  - `vendor_name` string
  - `invoice_date` string
  - `total_amount` number
  - `invoice_number` string
  - `payment_reference` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
