Invoice Extraction API
Extract structured billing data from invoices in any format, layout, country, or language. Supports PDF and image uploads with multi-page line-item tables. Supported MIME types: application/pdf, image/jpeg, image/png, image/webp
Extract structured billing data from invoices in any format, layout, country, or language. Supports PDF and image uploads with multi-page line-item tables.
Supported MIME types: application/pdf, image/jpeg, image/png, image/webp
Authorization
bearerAuth AuthorizationBearer <token>
Provide your Cryvis API key as a Bearer token.
In: header
Request Body
multipart/form-data
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/documents/invoice" \ -F file="[ \"string\" ]"{ "success": true, "data": { "invoice_number": "INV-2024-00142", "invoice_date": "2024-03-15", "due_date": "2024-04-14", "purchase_order_number": "PO-8842", "invoice_type": "invoice", "currency": "USD", "payment_terms": "Net 30", "seller": { "name": "Acme Cloud Services", "address": "100 Market St, San Francisco, CA 94105, USA", "tax_id": "US12-3456789", "registration_number": "C4567890", "email": "billing@acmecloud.com", "phone": "+1-555-0100" }, "buyer": { "name": "Globex Corporation", "address": "200 Business Park, Austin, TX 78701, USA", "tax_id": "US98-7654321", "registration_number": null, "email": "ap@globex.com", "phone": "+1-555-0200" }, "ship_to": { "name": "Globex Warehouse East", "address": "300 Logistics Way, Dallas, TX 75201, USA" }, "line_items": [ { "description": "Cloud hosting - Pro plan", "sku": "HOST-PRO-001", "quantity": 2, "unit": "months", "unit_price": 499.99, "discount": null, "tax_rate": 8.25, "tax_amount": 82.5, "amount": 999.98 }, { "description": "Premium support", "sku": "SUP-PREM", "quantity": 1, "unit": "month", "unit_price": 199, "discount": 50, "tax_rate": 8.25, "tax_amount": 12.29, "amount": 149 } ], "subtotal": 1148.98, "discount_total": 50, "tax_total": 94.79, "shipping_amount": null, "other_charges": null, "total_amount": 1193.77, "amount_paid": 0, "amount_due": 1193.77, "bank_details": { "bank_name": "Chase Bank", "account_name": "Acme Cloud Services", "account_number": "****5678", "iban": null, "swift_bic": "CHASUS33" }, "notes": "Thank you for your business." }, "meta": { "document_type": "invoice", "request_id": "req_example", "raw_text": "### File: file\n\nInvoice INV-2024-00142 ...", "validation": { "is_valid": true, "warnings": [], "confidence": 0.94 } }}