LumiParser

Core API

Document types

Pass document_type in your request to select the parsing mode.

Each type uses an optimised AI prompt tuned for that document's structure. Omitting document_type defaults to invoice.

Invoice

invoice

Standard vendor invoices, bills, and tax invoices.

curl -X POST https://api.lumiparser.com/v1/invoices \
  -H "Authorization: Bearer inv_live_YOUR_KEY" \
  -F "file=@invoice.pdf" \
  -F "document_type=invoice"

Extracted fields

FieldDescription
vendor_nameCompany issuing the invoice
vendor_addressVendor street address
vendor_emailVendor contact email
vendor_phoneVendor contact phone
invoice_numberUnique invoice identifier
invoice_dateDate invoice was issued (ISO 8601)
due_datePayment due date (ISO 8601)
payment_termse.g. Net 30, Due on receipt
line_items[]Array of {description, quantity, unit_price, total}
subtotalPre-tax total
tax_rateDecimal e.g. 0.08 for 8%
tax_amountCalculated tax
discountDiscount amount if present
grand_totalFinal amount due
currency3-letter ISO code e.g. USD
po_numberPurchase order reference
bank_detailsPayment bank details if shown

Receipt

receipt

Point-of-sale receipts, e-receipts, and payment confirmations.

curl -X POST https://api.lumiparser.com/v1/invoices \
  -H "Authorization: Bearer inv_live_YOUR_KEY" \
  -F "file=@receipt.jpg" \
  -F "document_type=receipt"

Extracted fields

FieldDescription
merchant_nameStore or business name
merchant_addressStore address
merchant_phoneStore phone number
receipt_numberTransaction or receipt number
dateTransaction date (ISO 8601)
timeTransaction time
line_items[]Array of {description, quantity, unit_price, total}
subtotalPre-tax amount
tax_amountTax charged
tip_amountTip if applicable
total_amountTotal paid
currency3-letter ISO code
payment_methode.g. Visa, Cash, Apple Pay
card_last_fourLast 4 digits of card if present

Purchase Order

purchase_order

PO documents from buyers to suppliers.

curl -X POST https://api.lumiparser.com/v1/invoices \
  -H "Authorization: Bearer inv_live_YOUR_KEY" \
  -F "file=@purchase-order.pdf" \
  -F "document_type=purchase_order"

Extracted fields

FieldDescription
po_numberPO identifier
po_dateDate PO was issued (ISO 8601)
delivery_dateExpected delivery date
buyer_nameBuying company name
buyer_addressBuyer address
buyer_contactBuyer contact info
supplier_nameSupplying company name
supplier_addressSupplier address
supplier_contactSupplier contact info
line_items[]Array of {description, sku, quantity, unit_price, total}
subtotalPre-tax total
tax_amountTax amount
shipping_costShipping cost if shown
grand_totalTotal order value
currency3-letter ISO code
payment_termse.g. Net 30
delivery_termse.g. FOB, CIF, DDP

Bank Statement

bank_statement

Monthly bank statements with transaction history.

curl -X POST https://api.lumiparser.com/v1/invoices \
  -H "Authorization: Bearer inv_live_YOUR_KEY" \
  -F "file=@statement.pdf" \
  -F "document_type=bank_statement"

Extracted fields

FieldDescription
bank_nameName of the bank
account_holderAccount owner name
account_numberMasked account number
account_typee.g. Checking, Savings
statement_period_startStart of statement period (ISO 8601)
statement_period_endEnd of statement period (ISO 8601)
opening_balanceBalance at period start
closing_balanceBalance at period end
currency3-letter ISO code
transactions[]Array of {date, description, reference, amount, balance, category}
total_creditsSum of all deposits
total_debitsSum of all withdrawals (negative)
total_transactionsCount of transactions