Azure Document Intelligence OCR for Receipts does not include card surcharge and returns incorrect total

Robert 0 Reputation points
2026-09-22T01:27:21.4866667+00:00

Azure Document Intelligence OCR for Receipts does not include card surcharge and returns incorrect total. This fails the use-case for our business purposes and may mean we need to switch to a different provider.

In the example below, it returns the subtotal amount ($13.00) as the invoice's amount not the total amount ($13.31). We need a solution for this that doesn't involve manually digging through through the content. I suggest adding additional fields: "gross including transaction fees" and "gross excluding transaction fees".

Feel free to reach out to me directly via email.

"content": "Invoice J love cafe 124 vincent street Tax:135-347-922 Order# 34\nInvoice# 52097\nInvoice Date\n14/09/2026 11:03\nOrder Date\n14/09/2026 11:03\nTransaction#\nRO2609147739322821879\nName AMT\nFlat White 2 ×6.50 - Medium ($5.50) - Vanilla ($1.00)\nSubtotal\n$13.00\nCard Surcharge\n$0.31\nTotal\n$13.31\nGST@15%\n$1.70\nCard Payment\n$13.31\nDine in\nJ LOVE CAFE 124 VINCENT STREET AUCKLAND\n-------\nEFTPOS\nDATE:\n14SEP26\nTIME:\n11:03\nMID:\n10016785001\nTID:\n01578501\nTRAN:\nCREDIT\n030763\nVISA\nCARD:\n.... 8067\nCONTACTLESS\nAPPL: Visa Credit\nRID: A000000003\nPIX: 1010\nARQC:F612E5A00EC5042C\nTVR:0000000000\nATC: 00EC\nTSI:0000\nAUTH: 845571\nPURCHASE\nNZ$ 13.00\nSURCHARGE\nNZ$ 0.31\nTOTAL\nNZ$ 13.31\nACCEPTED\nINVOICE NUM\n029030\nCUSTOMER COPY\n$13.00"

Azure AI Custom Vision
Azure AI Custom Vision

An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Taz 10,126 Reputation points MVP Volunteer Moderator
    2026-09-27T13:47:40.4566667+00:00

    Hi Robert,

    The current prebuilt Receipt model does not have a CardSurcharge field. Its supported fields include Total, Subtotal, Tax, Tip, and line items. Microsoft defines Total as the full transaction total.

    For your example, the expected extraction is:

    Subtotal = 13.00
    Card Surcharge = 0.31
    Total = 13.31
    

    The OCR text clearly contains both Card Surcharge $0.31 and Total $13.31, so returning 13.00 as Total is a model extraction error rather than an intended surcharge limitation.

    There is no configuration in the prebuilt Receipt model to add custom fields. For this type of receipt, the practical solution is to use a custom extraction model and define fields such as:

    Subtotal
    CardSurcharge
    Total
    

    Microsoft allows custom models to define your own extraction schema and field types.

    If you continue using the prebuilt model, you will need to use the extracted OCR/content to handle Card Surcharge separately and validate that Total is consistent with the amount actually paid.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.