Per-call API

Receipt & Invoice Extraction API

Upload a receipt or invoice — get structured JSON back. Merchant, line items, totals, tax, payment method, and expense category. One credit per call.

~$0.05 per extraction
~3 second response
PDF, PNG, JPG, WEBP

1. Upload

POST your receipt or invoice file. We accept images and PDFs up to 10 MB.

2. Extract

AI reads the document and returns structured JSON — merchant, items, totals, tax, payment.

3. Integrate

Drop the JSON straight into your expense, accounting, or ERP workflow.

Live Playground

Drop a receipt or invoice here

PNG, JPG, WEBP, or PDF — max 10 MB

Pricing

Pay per call

1 credit per extraction. Credits never expire.

50 credits$3 ($0.06 each)
100 credits best value$5 ($0.05 each)
Credits
0 available

One balance works everywhere — niche scans, receipt extraction, listing inquiries & ad messages.

50 Credits
$3
100 CreditsBest value
$5

1 niche scan = 10 credits · 1 receipt extraction = 1 credit · 1 listing inquiry = 2 credits · credits never expire

1 niche scan = 10 credits · 1 receipt extraction = 1 credit · 1 listing inquiry = 2 credits · credits never expire

API Reference

Call from your backend or frontend. Authentication uses the logged-in user's session — credits are deducted per call.

JavaScript
// 1. Upload the file (client-side)
const { file_url } = await base44.integrations.Core
  .UploadPublicFile({ file });

// 2. Extract structured data (1 credit per call)
const res = await base44.functions.invoke(
  'extract-receipt',
  { file_url }
);

const receipt = res.data.data;
console.log(receipt.merchant_name);  // "Starbucks"
console.log(receipt.total);          // 12.45
console.log(receipt.items.length);   // 3

Response fields

FieldTypeDescription
document_typestring"receipt" or "invoice"
merchant_namestringVendor or business name
document_datestringDate on the receipt/invoice
itemsarrayLine items with description, quantity, unit_price, total
subtotalnumberPre-tax subtotal
taxnumberTax amount
totalnumberGrand total
payment_methodstringe.g. "Visa ****1234", "Cash"
expense_categorystringAI-classified category (meals, travel, office)

Ready to automate your expense workflow?

Buy credits and start extracting in minutes. No subscription required — credits never expire.