Receipt extraction#
The Receipt extraction workflow performs ocr
and extractions
steps specifically suited for receipts.
It is used with the workflow identifier receipt_extraction
,
at the processing endpoint
i.e. POST /processing/receipt_extraction
.
Supported workflow-parameters#
To be submitted as a configuration object with the parameters form field.
field | type | default |
---|---|---|
language |
one of de (german) or en (english) |
unset, i.e. multi-language (at the potential cost of OCR accuracy) |
Supported return values#
As automatically included in the response JSON, unless otherwise specified via include
query parameters.
ocr
, see OCR Formatextractions
, see below
Credit cost#
A Freemium account allows for up to 100 pages per month, where the cost is 50 credits per page, and 75 credits per document.
Note
A document is usually a bundle of 10 pages.
Extractions formats#
The value of the extractions
key for this workflow has the following form:
For document_type
= receipt
All supported fields
schema_version
: integer (possible values: [1])document_type
: string (possible values: ['receipt'])article_amount
: FloatExtractionreceipt_date
: DateExtractiongross_amount
: FloatExtractionnet_amount
: FloatExtractiontax_amount
: FloatExtractiondiscount_amount
: FloatExtractiontax_calculation
: array of TaxCalculationtax_code
: StringExtractiontax_rate
: FloatExtractiontax_amount
: FloatExtractionnet_amount
: FloatExtractiongross_amount
: FloatExtraction
card_number
: StringExtractionpayment_method
: PaymentMethodExtractionreceipt_number
: StringExtractionline_items
: array of LineItemarticle_id
: StringExtractiondescription
: StringExtractionquantity
: FloatExtractiontotal_price
: FloatExtractionarticle_name
: StringExtractiontax_rate
: FloatExtractiontax_code
: StringExtractiondiscount
: FloatExtraction
vendor
: Vendorname
: StringExtractionaddress
: Addressaddress_line_1
: StringExtractionaddress_line_2
: StringExtractioncity
: StringExtractionzip
: StringExtractioncountry
: CountryExtraction
vat_id
: StringExtractiontax_number
: StringExtractionstore
: StringExtraction
Note
For a reference of the structure of each of the extractions
objects see
Extracted Values.
Also, for accessing individual processing results or artifacts, have a look
at Fetch Processing Results and Artifacts.