The structure holding all the information returned by AnalyzeExpense

interface ExpenseDocument {
    Blocks?: Block[];
    ExpenseIndex?: number;
    LineItemGroups?: LineItemGroup[];
    SummaryFields?: ExpenseField[];
}

Properties

Blocks?: Block[]

This is a block object, the same as reported when DetectDocumentText is run on a document. It provides word level recognition of text.

ExpenseIndex?: number

Denotes which invoice or receipt in the document the information is coming from. First document will be 1, the second 2, and so on.

LineItemGroups?: LineItemGroup[]

Information detected on each table of a document, seperated into LineItems.

SummaryFields?: ExpenseField[]

Any information found outside of a table by Amazon Textract.