{"slug":"handel-halowerk-com-v1-invoice-audit-56aebc","title":"Rebuilds an invoice from its lines and compares the result with the stated total","host":"handel.halowerk.com","method":"POST","resource":"https://handel.halowerk.com/v1/invoice-audit","category":"code","description":"Rebuilds an invoice from its lines and compares the result with the stated totals. Line by line it checks quantity times unit price against the line total, applies line and document discounts in the right order, groups the net amounts by tax rate and computes the tax per group, then compares net, ta","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1185,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"currency":"EUR","lines":[{"description":"Synthetic example item","quantity":2,"tax_rate":19,"unit_price":10}],"stated_gross":23.8,"stated_net":20,"stated_tax":3.8},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"country":{"description":"Country whose standard rates the tax rates are checked against.","maxLength":2,"minLength":2,"type":"string"},"currency":{"default":"EUR","maxLength":3,"minLength":3,"type":"string"},"customer_vat_number":{"description":"Customer VAT number, required for the reverse charge.","maxLength":20,"type":"string"},"default_tax_rate":{"description":"Tax rate for lines that do not carry one.","maximum":100,"minimum":0,"type":"number"},"document_discount_pct":{"description":"Discount on the whole document, applied after line discounts.","maximum":100,"minimum":0,"type":"number"},"due_date":{"description":"Due date as YYYY-MM-DD.","maxLength":10,"type":"string"},"invoice_date":{"description":"Invoice date as YYYY-MM-DD.","maxLength":10,"type":"string"},"lines":{"description":"The invoice lines.","items":{"additionalProperties":false,"properties":{"description":{"maxLength":300,"type":"string"},"discount_pct":{"description":"Discount on this line in percent.","maximum":100,"minimum":0,"type":"number"},"line_total":{"description":"The stated line total. Recomputed if absent.","type":"number"},"quantity":{"type":"number"},"tax_rate":{"description":"Tax rate in percent for this line.","maximum":100,"minimum":0,"type":"number"},"unit_price":{"type":"number"}},"required":["quantity","unit_price"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"},"reverse_charge":{"default":false,"description":"Whether the invoice claims the reverse charge.","type":"boolean"},"stated_gross":{"description":"Gross total as stated.","type":"number"},"stated_net":{"description":"Net total as stated on the invoice.","type":"number"},"stated_tax":{"description":"Tax total as stated.","type":"number"}},"required":["lines"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1320,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1320,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1197,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1183,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1185,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1172,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1177,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1168,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1279,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1136,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1195,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1166,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1171,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1273,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1168,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1131,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1180,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1166,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1168,"error":null},{"day":"2026-11-07","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1310,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1174,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1175,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1175,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1159,"error":null}],"description_full":"Rebuilds an invoice from its lines and compares the result with the stated totals. Line by line it checks quantity times unit price against the line total, applies line and document discounts in the right order, groups the net amounts by tax rate and computes the tax per group, then compares net, tax and gross with what the document claims.","last_updated":"2026-11-02T14:51:04.6Z","schemes":["exact"]}