OCR Text
COMMERCIAL INVOICE
Ref: COM-5O12O-A
Billed From: Pacific Imports Ltd
Billed To: Atlantic Exports Inc
Date: 2024-07-22
Items:
- Product A: 5 x $120.00 = $600.00
- Product B: 3 x $85.50 = $256.50
- Shipping: $45.00
Subtotal: $901.50
Tax (8%): $72.12
Grand Total: $973.62
Extraction JSON
{
"currency": "USD",
"invoice_date": "2024-07-22",
"invoice_number": "COM-50120-A",
"line_items": [
{
"amount": 600.0,
"description": "Product A",
"quantity": 5,
"unit_price": 120.0
},
{
"amount": 256.5,
"description": "Product B",
"quantity": 3,
"unit_price": 85.5
},
{
"amount": 45.0,
"description": "Shipping",
"quantity": 1,
"unit_price": 45.0
}
],
"payee_name": "Atlantic Exports Inc",
"payer_name": "Pacific Imports Ltd",
"subtotal": 901.5,
"tax_amount": 72.12,
"total_amount": 973.62
}
Correction Result
corrected
Corrected Extraction
{
"currency": "USD",
"invoice_date": "2024-07-22",
"invoice_number": "COM-50120-A",
"line_items": [
{
"amount": 600.0,
"description": "Product A",
"quantity": 5,
"unit_price": 120.0
},
{
"amount": 256.5,
"description": "Product B",
"quantity": 3,
"unit_price": 85.5
},
{
"amount": 45.0,
"description": "Shipping",
"quantity": 1,
"unit_price": 45.0
}
],
"payee_name": "Pacific Imports Ltd",
"payer_name": "Atlantic Exports Inc",
"subtotal": 901.5,
"tax_amount": 72.12,
"total_amount": 973.62
}
Corrections (2)
payee_name (ROLE_SWAP_PAYEE_PAYER)
Before:
Atlantic Exports Inc
After:
Pacific Imports Ltd
Confidence: 0.9
Evidence: From: Pacific Imports Ltd
payer_name (ROLE_SWAP_PAYEE_PAYER)
Before:
Pacific Imports Ltd
After:
Atlantic Exports Inc
Confidence: 0.9
Evidence: To: Atlantic Exports Inc
Verification
- Schema Valid: True
- Evidence Valid: True
- Consistency Valid: True
- Overall Confidence: 0.9