Invoice

Finance

Extract structured data from business invoices including vendor, customer, line items, and payment terms.

curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \
  -H "Authorization: Bearer $XBERG_API_KEY" \
  -F file=@your-invoice.pdf \
  -F 'preset=invoice'
Sample Invoice document

Structured fields extracted by this preset

invoice_numberstringrequired

Unique identifier assigned to this invoice by the vendor.

invoice_datestringrequired

Date the invoice was issued, in ISO-8601 format (YYYY-MM-DD).

due_datestring

Date payment is due, in ISO-8601 format (YYYY-MM-DD).

vendorobject

Entity issuing the invoice.

namestring

Legal name of the vendor or business.

addressstring

Full mailing address of the vendor.

tax_idstring

Tax identification number (e.g., IN, VAT number).

emailstring

Contact email address for the vendor.

phonestring

Contact phone number for the vendor.

customerobject

Entity being invoiced.

namestring

Name of the customer or purchasing entity.

addressstring

Billing or delivery address of the customer.

account_idstring

Customer account number or identifier maintained by the vendor.

line_itemsarray<object>required

Itemized list of goods or services provided.

subtotalnumber

Sum of all line items before tax and shipping.

tax_totalnumber

Total amount of sales or VAT tax applied to the invoice.

shipping_totalnumber

Total shipping or delivery charges.

total_amountnumberrequired

Final amount due, including subtotal, tax, and shipping.

currencystringrequired

ISO-4217 currency code (e.g., USD, EUR, GBP).

payment_termsstring

Terms of payment (e.g., Net 30, Due on Receipt, 2/10 Net 30).

purchase_order_numberstring

Purchase order number referenced by the customer for this invoice.

notesstring

Additional notes, payment instructions, or special terms.

Configuration

Call Mode

text_plus_vision

Citations

Enabled

Version

v1

Tags

invoiceaccountingvendorline-itemspayment
+System Prompt
You are a precise structured-data extractor for business invoices. Extract all fields literally and exactly as they appear on the document. Do not infer, estimate, or guess values. If a field is absent from the document, omit it from the output. Currency amounts are decimal numbers without symbols. Dates are ISO-8601 strings (YYYY-MM-DD). For line items, preserve the exact quantity, unit price, and totals as shown. Include vendor and customer details only if present. Ensure the total_amount matches the final due amount.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

Cookies

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.