{
  "analysis": {
    "summary": {
      "grand_total": 843.9,
      "gst": "$ 76.72",
      "invoice_type": "CORPORATE",
      "items_count": 3,
      "status": "human_error"
    },
    "validations": {
      "gst_rate_infered": false,
      "gst_rate_present": true,
      "items_sum_matches_subtotal": false,
      "negative_lines_check": false,
      "subtotal_plus_gst_plus_extras_equals_grand_total": false,
      "tax_included": false,
      "tendered_equals_grand_total": true
    },
    "warnings": []
  },
  "extracted": {
    "date_validated": true,
    "extras": [
      {
        "amount": {
          "computed": -85.0,
          "confidence": 0.95,
          "evidence": [
            "right column '- $ 85.00'"
          ],
          "verbatim": "- $ 85.00"
        },
        "label": {
          "computed": null,
          "confidence": 0.9,
          "evidence": [
            "right column label 'DISCOUNT :'"
          ],
          "verbatim": "DISCOUNT :"
        },
        "tax_type": "unknown",
        "type": "discount_global"
      }
    ],
    "header": {
      "buyer": {
        "abn": {
          "computed": null,
          "confidence": 0,
          "evidence": [],
          "notes": "No buyer ABN printed",
          "verbatim": null
        },
        "name": {
          "computed": null,
          "confidence": 0,
          "evidence": [],
          "notes": "No buyer name or billing details present under BILL TO",
          "verbatim": null
        }
      },
      "invoice": {
        "date": {
          "due_date": {
            "computed": null,
            "confidence": 0,
            "evidence": [],
            "verbatim": null
          },
          "issue_date": {
            "computed": "2026-03-16",
            "confidence": 0.95,
            "evidence": [
              "left 'ORDER DATE 16-03-2026 04:30 PM'"
            ],
            "verbatim": "16-03-2026 04:30 PM"
          }
        },
        "number": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "left 'ORDER NO #36020'"
          ],
          "notes": "",
          "verbatim": "#36020"
        },
        "time": {
          "computed": null,
          "confidence": 0.9,
          "evidence": [
            "'16-03-2026 04:30 PM' line"
          ],
          "notes": "",
          "verbatim": "04:30 PM"
        },
        "type": {
          "computed": null,
          "confidence": 0.98,
          "evidence": [
            "large heading 'TAX INVOICE' top-left"
          ],
          "verbatim": "TAX INVOICE"
        }
      },
      "payment": {
        "method": {
          "computed": null,
          "confidence": 0.9,
          "evidence": [
            "left 'PAYMENT METHOD Credit Card'"
          ],
          "notes": "",
          "verbatim": "Credit Card"
        },
        "tendered_total": {
          "computed": 843.9,
          "confidence": 0.9,
          "evidence": [
            "'PAID : $ 843.90'"
          ],
          "notes": "Computed from printed PAID amount",
          "verbatim": null
        }
      },
      "supplier": {
        "abn": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "top-right 'ABN 75637382266'"
          ],
          "notes": "",
          "verbatim": "ABN 75637382266"
        },
        "address": {
          "computed": null,
          "confidence": 0.85,
          "evidence": [
            "top-right 'Melbourne VIC 3121 / Australia'"
          ],
          "notes": "Postal/location line extracted from header",
          "verbatim": "Melbourne VIC 3121 / Australia"
        },
        "email": {
          "computed": null,
          "confidence": 0.9,
          "evidence": [
            "top-right 'support@electrickicks.com.au'"
          ],
          "notes": "",
          "verbatim": "support@electrickicks.com.au"
        },
        "name": {
          "computed": null,
          "confidence": 0.99,
          "evidence": [
            "logo top-left",
            "text top-right 'Electric Kicks'"
          ],
          "notes": "",
          "verbatim": "Electric Kicks"
        },
        "phone": {
          "computed": null,
          "confidence": 0.9,
          "evidence": [
            "top-right '+ 1300 054 257'"
          ],
          "notes": "",
          "verbatim": "+ 1300 054 257"
        }
      }
    },
    "invoice_type": {
      "confidence": 1.0,
      "verbatim": "CORPORATE"
    },
    "items": [
      {
        "checks": {
          "qty_x_unit_eq_total": true,
          "tolerance": 0.01
        },
        "description": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "row1 description 'Pure Air5 Pro Electric Scooter'"
          ],
          "verbatim": "Pure Air5 Pro Electric Scooter"
        },
        "discount": {
          "computed": null,
          "confidence": 0,
          "evidence": [],
          "verbatim": null
        },
        "gst_line": {
          "computed": 51.41,
          "confidence": 0.9,
          "evidence": [
            "row1 TAX column '10%'",
            "line total $565.49"
          ],
          "notes": "GST inferred as 10% on inclusive price (GST = line_total / 11)",
          "verbatim": null
        },
        "line_total": {
          "computed": 565.49,
          "confidence": 0.95,
          "evidence": [
            "row1 TOTAL '$ 565.49'"
          ],
          "verbatim": "$ 565.49"
        },
        "qty": {
          "computed": 1,
          "confidence": 0.95,
          "evidence": [
            "row1 'QTTY 1'"
          ],
          "verbatim": "1"
        },
        "sku": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "row1 SKU 'SCPURZ141-00001'"
          ],
          "notes": "",
          "verbatim": "SCPURZ141-00001"
        },
        "unit_price": {
          "computed": 565.49,
          "confidence": 0.95,
          "evidence": [
            "row1 unit price printed '$ 565.49' (current price shown below struck price)"
          ],
          "verbatim": "$ 565.49"
        }
      },
      {
        "checks": {
          "qty_x_unit_eq_total": true,
          "tolerance": 0.01
        },
        "description": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "row2 description 'Livall BH60SE NEO Helmet'"
          ],
          "notes": "",
          "verbatim": "Livall BH60SE NEO Helmet"
        },
        "discount": {
          "computed": null,
          "confidence": 0,
          "evidence": [],
          "verbatim": null
        },
        "gst_line": {
          "computed": 23.63,
          "confidence": 0.9,
          "evidence": [
            "row2 TAX column '10%'",
            "line total $259.95"
          ],
          "notes": "GST inferred as 10% on inclusive price (GST = line_total / 11)",
          "verbatim": null
        },
        "line_total": {
          "computed": 259.95,
          "confidence": 0.95,
          "evidence": [
            "row2 TOTAL '$ 259.95'"
          ],
          "verbatim": "$ 259.95"
        },
        "qty": {
          "computed": 1,
          "confidence": 0.95,
          "evidence": [
            "row2 'QTTY 1'"
          ],
          "verbatim": "1"
        },
        "sku": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "row2 SKU 'BH60SEBLK'"
          ],
          "notes": "",
          "verbatim": "BH60SEBLK"
        },
        "unit_price": {
          "computed": 259.95,
          "confidence": 0.95,
          "evidence": [
            "row2 unit price '$ 259.95' (current price shown)"
          ],
          "verbatim": "$ 259.95"
        }
      },
      {
        "checks": {
          "qty_x_unit_eq_total": true,
          "tolerance": 0.01
        },
        "description": {
          "computed": null,
          "confidence": 0.95,
          "evidence": [
            "row3 description 'ETook Steel Chain Bike Key Lock 155L (Level 6 / 6)'"
          ],
          "verbatim": "ETook Steel Chain Bike Key Lock 155L (Level 6 / 6)"
        },
        "discount": {
          "computed": null,
          "confidence": 0,
          "evidence": [],
          "verbatim": null
        },
        "gst_line": {
          "computed": 3.18,
          "confidence": 0.9,
          "evidence": [
            "row3 TAX column '10%'",
            "line total $34.95"
          ],
          "notes": "GST inferred as 10% on inclusive price (GST = line_total / 11)",
          "verbatim": null
        },
        "line_total": {
          "computed": 34.95,
          "confidence": 0.95,
          "evidence": [
            "row3 TOTAL '$ 34.95'"
          ],
          "verbatim": "$ 34.95"
        },
        "qty": {
          "computed": 1,
          "confidence": 0.95,
          "evidence": [
            "row3 'QTTY 1'"
          ],
          "verbatim": "1"
        },
        "sku": {
          "computed": null,
          "confidence": 0.9,
          "evidence": [
            "row3 SKU 'ET155L'"
          ],
          "notes": "",
          "verbatim": "ET155L"
        },
        "unit_price": {
          "computed": 34.95,
          "confidence": 0.95,
          "evidence": [
            "row3 unit price '$ 34.95'"
          ],
          "notes": "",
          "verbatim": "$ 34.95"
        }
      }
    ],
    "items_count": 3,
    "minimum_ato": true,
    "minimum_xero_aeroflo": true,
    "notes": [
      "Sum of visible line totals = 860.39 while printed SUB TOTAL = 928.90 (discrepancy).",
      "Printed GST = 76.72 but sum of per-line inferred GST (assuming inclusive prices) = 78.22; difference 1.50. Possible allocation of discount affects GST or human calculation error.",
      "Totals do not algebraically reconcile: SUBTOTAL + GST - DISCOUNT != TOTAL (928.90 + 76.72 - 85.00 = 920.62 != 843.90). Marked status as human_error.",
      "Buyer billing block is blank; no buyer name/ABN present."
    ],
    "payment_interpretation": {
      "is_pos_fully_paid": false,
      "notes": "Invoice marked PAID and Amount Due $0.00; payment method Credit Card",
      "suggested_internal_status": "paid"
    },
    "payment_printed": {
      "amount_paid": {
        "computed": 843.9,
        "confidence": 0.95,
        "evidence": [
          "'PAID : $ 843.90'"
        ],
        "notes": "",
        "verbatim": "$ 843.90"
      },
      "balance_due": {
        "computed": 0.0,
        "confidence": 0.95,
        "evidence": [
          "'AMOUNT DUE : $ 0.00'"
        ],
        "notes": "",
        "verbatim": "$ 0.00"
      },
      "method": {
        "computed": null,
        "confidence": 0.9,
        "evidence": [
          "'PAYMENT METHOD Credit Card'"
        ],
        "notes": "",
        "verbatim": "Credit Card"
      },
      "reference": {
        "computed": null,
        "confidence": 0,
        "evidence": [],
        "notes": "",
        "verbatim": null
      },
      "status": {
        "computed": "paid",
        "confidence": 0.95,
        "evidence": [
          "right column 'PAID : $ 843.90'",
          "right column 'AMOUNT DUE : $ 0.00'"
        ],
        "notes": "Invoice shows PAID and Amount Due $0.00",
        "verbatim": "PAID"
      }
    },
    "status": "human_error",
    "steps": "1) Identified document as corporate Tax Invoice from heading 'TAX INVOICE' and ABN presence. 2) Extracted supplier details from top-right block (name, ABN, email, phone). 3) Located invoice identifier '#36020' under ORDER NO and issue date '16-03-2026 04:30 PM'. 4) Read payment method 'Credit Card' and payment status 'PAID' with 'AMOUNT DUE : $ 0.00'. 5) Parsed table rows for 3 items capturing SKU, description, qty, unit price and line totals. 6) Noted TAX column '10%' per line and computed per-line GST as line_total/11. 7) Collected totals as printed (SUB TOTAL, DISCOUNT, TAX, TOTAL) and computed items_sum from line totals. 8) Performed validations: found mismatch between sum of line GST (78.22) and printed GST (76.72) and subtotal inconsistencies leading to human_error flag. 9) Set minimum_ato and minimum_xero_aeroflo true as required fields present.",
    "totals": {
      "discount_global": {
        "computed": -85.0,
        "confidence": 0.95,
        "evidence": [
          "right column 'DISCOUNT : - $ 85.00'"
        ],
        "notes": "Global discount line",
        "verbatim": "- $ 85.00"
      },
      "freight": {
        "computed": null,
        "confidence": 0,
        "evidence": [],
        "notes": "",
        "verbatim": null
      },
      "grand_total": {
        "computed": 843.9,
        "confidence": 0.95,
        "evidence": [
          "right column 'TOTAL : $ 843.90'"
        ],
        "notes": "",
        "verbatim": "$ 843.90"
      },
      "gst": {
        "computed": null,
        "confidence": 0.9,
        "evidence": [
          "right column 'TAX : $ 76.72'"
        ],
        "notes": "Printed GST amount; note: sum of per-line inferred GST (78.22) differs from this value",
        "verbatim": "$ 76.72"
      },
      "gst_basis": "line_level",
      "items_sum": {
        "computed": 860.39,
        "confidence": 0.95,
        "evidence": [
          "sum of item totals: 565.49 + 259.95 + 34.95 = 860.39"
        ],
        "notes": "Computed from visible line totals",
        "verbatim": null
      },
      "rounding": {
        "computed": null,
        "confidence": 0,
        "evidence": [],
        "notes": "",
        "verbatim": null
      },
      "subtotal": {
        "computed": null,
        "confidence": 0.9,
        "evidence": [
          "right column 'SUB TOTAL : $ 928.90'"
        ],
        "notes": "Printed subtotal does not match sum of visible line totals",
        "verbatim": "$ 928.90"
      },
      "surcharge_total": {
        "computed": null,
        "confidence": 0,
        "evidence": [],
        "notes": "",
        "verbatim": null
      },
      "validations": {
        "gst_basis_consistent": false,
        "gst_lines_sum_matches_totals_gst": false,
        "gst_rate_infered": false,
        "gst_rate_present": true,
        "items_sum_matches_subtotal": false,
        "negative_lines_check": false,
        "subtotal_plus_gst_plus_extras_equals_grand_total": false,
        "tax_included": false,
        "tendered_equals_grand_total": true
      }
    }
  },
  "pdf": "/var/www/html/flask_server/storage/tenants/absolutems/wp_invoices/revisions/invoice-36021_universal.pdf",
  "tax_lookup": {
    "action": "lookup",
    "app": "abn_lookup_app",
    "result": {
      "abn": "ABN75637382266",
      "data": {
        "abn_exists": false,
        "country": "AU",
        "entity_name": null,
        "gst_registered": false,
        "is_active": false,
        "service": "abn_lookup",
        "tax_id": "ABN75637382266",
        "tax_id_type": "ABN",
        "version": 0
      },
      "valid": false
    },
    "status": "ok"
  }
}