Skip to main content

Endpoint

POST /v3/universal-ai (sync) Model string pattern: ocr/financial_parser/{provider}[/{model}]

Input

FieldTypeRequiredDescription
filefile_inputYesFile ID from /v3/upload or direct file URL
languagestringYesDocument language code
document_typeenumNoSpecify the type of your document. Can be set to ‘auto-detect’ for automatic detection if the provider supports it.

Output

FieldTypeRequiredDescription
extracted_dataarray[object]NoList of parsed financial data objects (per page).
    customer_informationobjectYes
        namestringNoThe name of the invoiced customer.
        id_referencestringNoUnique reference ID for the customer.
        mailling_addressstringNoThe mailing address of the customer.
        billing_addressstringNoThe explicit billing address for the customer.
        shipping_addressstringNoThe shipping address for the customer.
        service_addressstringNoThe service address associated with the customer.
        remittance_addressstringNoThe address to which payments should be remitted.
        emailstringNoThe email address of the customer.
        phonestringNoThe phone number associated with the customer.
        vat_numberstringNoVAT (Value Added Tax) number of the customer.
        abn_numberstringNoABN (Australian Business Number) of the customer.
        gst_numberstringNoGST (Goods and Services Tax) number of the customer.
        pan_numberstringNoPAN (Permanent Account Number) of the customer.
        business_numberstringNoBusiness registration number of the customer.
        siret_numberstringNoSIRET (Système d’Identification du Répertoire des Entreprises et de leurs Établissements) number of the customer.
        siren_numberstringNoSIREN (Système d’Identification du Répertoire des Entreprises) number of the customer.
        customer_numberstringNoCustomer identification number.
        coc_numberstringNoChamber of Commerce registration number.
        fiscal_numberstringNoFiscal identification number of the customer.
        registration_numberstringNoOfficial registration number of the customer.
        tax_idstringNoTax identification number of the customer.
        websitestringNoThe website associated with the customer.
        remit_to_namestringNoThe name associated with the customer’s remittance address.
        citystringNoThe city associated with the customer’s address.
        countrystringNoThe country associated with the customer’s address.
        house_numberstringNoThe house number associated with the customer’s address.
        provincestringNoThe province associated with the customer’s address.
        street_namestringNoThe street name associated with the customer’s address.
        zip_codestringNoThe ZIP code associated with the customer’s address.
        municipalitystringNoThe municipality associated with the customer’s address.
    merchant_informationobjectYes
        namestringNoName of the merchant.
        addressstringNoAddress of the merchant.
        phonestringNoPhone number of the merchant.
        tax_idstringNoTax identification number of the merchant.
        id_referencestringNoUnique reference ID for the merchant.
        vat_numberstringNoVAT (Value Added Tax) number of the merchant.
        abn_numberstringNoABN (Australian Business Number) of the merchant.
        gst_numberstringNoGST (Goods and Services Tax) number of the merchant.
        business_numberstringNoBusiness registration number of the merchant.
        siret_numberstringNoSIRET (Système d’Identification du Répertoire des Entreprises et de leurs Établissements) number of the merchant.
        siren_numberstringNoSIREN (Système d’Identification du Répertoire des Entreprises) number of the merchant.
        pan_numberstringNoPAN (Permanent Account Number) of the merchant.
        coc_numberstringNoChamber of Commerce registration number of the merchant.
        fiscal_numberstringNoFiscal identification number of the merchant.
        emailstringNoEmail address of the merchant.
        faxstringNoFax number of the merchant.
        websitestringNoWebsite of the merchant.
        registrationstringNoOfficial registration information of the merchant.
        citystringNoCity associated with the merchant’s address.
        countrystringNoCountry associated with the merchant’s address.
        house_numberstringNoHouse number associated with the merchant’s address.
        provincestringNoProvince associated with the merchant’s address.
        street_namestringNoStreet name associated with the merchant’s address.
        zip_codestringNoZIP code associated with the merchant’s address.
        country_codestringNoCountry code associated with the merchant’s location.
    payment_informationobjectYes
        amount_duefloatNoAmount due for payment.
        amount_tipfloatNoTip amount in a financial transaction.
        amount_shippingfloatNoShipping cost in a financial transaction.
        amount_changefloatNoChange amount in a financial transaction.
        amount_paidfloatNoAmount already paid in a financial transaction.
        totalfloatNoTotal amount in the invoice.
        subtotalfloatNoSubtotal amount in a financial transaction.
        total_taxfloatNoTotal tax amount in a financial transaction.
        tax_ratefloatNoTax rate applied in a financial transaction.
        discountfloatNoDiscount amount applied in a financial transaction.
        gratuityfloatNoGratuity amount in a financial transaction.
        service_chargefloatNoService charge in a financial transaction.
        previous_unpaid_balancefloatNoPrevious unpaid balance in a financial transaction.
        prior_balancefloatNoPrior balance before the current financial transaction.
        payment_termsstringNoTerms and conditions for payment.
        payment_methodstringNoPayment method used in the financial transaction.
        payment_card_numberstringNoCard number used in the payment.
        payment_auth_codestringNoAuthorization code for the payment.
        shipping_handling_chargefloatNoCharge for shipping and handling in a financial transaction.
        transaction_numberstringNoUnique identifier for the financial transaction.
        transaction_referencestringNoReference number for the financial transaction.
    financial_document_informationobjectYes
        invoice_receipt_idstringNoIdentifier for the invoice.
        purchase_orderstringNoPurchase order related to the document.
        invoice_datestringNoDate of the invoice.
        timestringNoTime associated with the document.
        invoice_due_datestringNoDue date for the invoice.
        service_start_datestringNoStart date of the service associated with the document.
        service_end_datestringNoEnd date of the service associated with the document.
        referencestringNoReference number associated with the document.
        biller_codestringNoBiller code associated with the document.
        order_datestringNoDate of the order associated with the document.
        tracking_numberstringNoTracking number associated with the document.
        barcodesarray[object]NoList of barcodes associated with the document.
            valuestringYes
            typestringYes
    localobjectYes
        currencystringNoCurrency used in financial transactions.
        currency_codestringNoCurrency code (e.g., USD, EUR).
        currency_exchange_ratestringNoExchange rate for the specified currency.
        countrystringNoCountry associated with the local financial information.
        languagestringNoLanguage used in financial transactions.
    bankobjectYes
        ibanstringNoInternational Bank Account Number.
        swiftstringNoSociety for Worldwide Interbank Financial Telecommunication code.
        bsbstringNoBank State Branch code (Australia).
        sort_codestringNoSort code for UK banks.
        account_numberstringNoBank account number.
        routing_numberstringNoRouting number for banks in the United States.
        bicstringNoBank Identifier Code.
    item_linesarray[object]NoList of line items associated with the document.
        taxfloatNoTax amount for the line item.
        amount_linefloatNoTotal amount for the line item.
        descriptionstringNoDescription of the line item.
        quantityfloatNoQuantity of units for the line item.
        unit_pricefloatNoUnit price for each unit in the line item.
        unit_typestringNoType of unit (e.g., hours, items).
        datestringNoDate associated with the line item.
        product_codestringNoProduct code or identifier for the line item.
        purchase_orderstringNoPurchase order related to the line item.
        tax_ratefloatNoTax rate applied to the line item.
        base_totalfloatNoBase total amount before any discounts or taxes.
        sub_totalfloatNoSubtotal amount for the line item.
        discount_amountfloatNoAmount of discount applied to the line item.
        discount_ratefloatNoRate of discount applied to the line item.
        discount_codestringNoCode associated with any discount applied to the line item.
        order_numberstringNoOrder number associated with the line item.
        titlestringNoTitle or name of the line item.
    document_metadataobjectYes
        document_indexintNoIndex of the detected document.
        document_page_numberintNoPage number within the document.
        document_typestringNoType or category of the document.

Available Providers

ProviderModel StringPrice
affindaocr/financial_parser/affinda$0.07 per page
amazonocr/financial_parser/amazon$0.01 per page
base64ocr/financial_parser/base64$0.25 per page
eagledococr/financial_parser/eagledoc$0.03 per page
extractaocr/financial_parser/extracta$0.1 per page
googleocr/financial_parser/google$0.01 per page
klippaocr/financial_parser/klippa$0.1 per file
microsoftocr/financial_parser/microsoft$0.01 per page
mindeeocr/financial_parser/mindee$0.1 per page
openaiocr/financial_parser/openai$0.04 per page
openai (gpt-4o)ocr/financial_parser/openai/gpt-4o$0.04 per page
tabscannerocr/financial_parser/tabscanner$0.08 per page
veryfiocr/financial_parser/veryfi$0.16 per file

Quick Start

import requests

url = "https://api.edenai.run/v3/universal-ai"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

payload = {
    "model": "ocr/financial_parser/affinda",
    "input": {
        "file": "YOUR_FILE_UUID_OR_URL",
        "language": "en"
    }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())