{"uid":"cap_ycXm4PleFxeLiyGbbJig0","slug":"freelancedesk-invoice-validator-f2d5cf74","name":"FreelanceDesk Invoice Validator","description":"Invoicing and billing resources sold per call to software. POST invoice JSON to check it (0.05 USD), get a print-ready A4 invoice as PDF (0.10 USD) or as self-contained HTML (0.10 USD), or GET the FreelanceDesk app and document pack as zip downloads. Each endpoint answers 402 with two payment options: an x402 v2 PAYMENT-REQUIRED challenge and an MPP WWW-Authenticate challenge (method evm, intent charge). Both settle an exact USDC EIP-3009 transfer on Base (eip155:8453) and return the resource in the same response.","url":"https://afraid-butterfly-5236.obtranzat.deno.net/v1/invoice/validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"type":"string","description":"Issue date, YYYY-MM-DD"},"items":{"type":"array","items":{"type":"object","required":["description","quantity","unitPrice"],"properties":{"taxRate":{"type":"number","maximum":100,"minimum":0},"quantity":{"type":"number","exclusiveMinimum":0},"unitPrice":{"type":"string","description":"Non-negative amount, max 2 decimals"},"description":{"type":"string"}}},"maxItems":100,"minItems":1},"notes":{"type":"string"},"client":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"vatId":{"type":"string"},"address":{"type":"string"}}},"number":{"type":"string","description":"Invoice number, e.g. 2026-014"},"seller":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"email":{"type":"string"},"vatId":{"type":"string"},"address":{"type":"string"}}},"dueDate":{"type":"string","description":"Due date, YYYY-MM-DD"},"taxMode":{"enum":["exclusive","inclusive"],"type":"string","description":"default exclusive"},"currency":{"type":"string","description":"ISO 4217 code, default EUR"},"taxLabel":{"type":"string","description":"default VAT"}}},"responseSchema":{"type":"json","example":{"valid":true,"number":"2026-014","totals":{"net":"200.00","tax":"42.00","total":"242.00"},"currency":"EUR","findings":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_f-48sQKwn6_ogcy_Gntbr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates invoice JSON for correctness and returns computed totals, currency, and any validation findings for $0.05 USDC per call.","exampleAgentPrompt":"Can you check this invoice for me — it's invoice number 2026-014 from Acme Consulting to ClientCorp, dated 2026-06-01, due 2026-06-30, with two line items: 10 hours of development at 80.00 EUR each and 1 project setup fee at 200.00 EUR, both with 21% VAT exclusive, currency EUR?","exampleUseCases":[{"title":"Pre-send invoice sanity check","prompt":"Before I send this invoice to my client, can you validate it — invoice 2026-022, seller is Jane Doe Consulting, client is Globex Ltd, issued today 2026-06-10, due 2026-06-24, three line items: 5 days consulting at 600.00 EUR, 1 expense report at 150.00 EUR, 1 software license at 250.00 EUR, all at 20% VAT exclusive, currency EUR?"},{"title":"Tax calculation verification for accountant","prompt":"I need to verify my VAT calculations are right on invoice 2026-007 — it's from Freelancer Studio to MegaCorp, currency USD, tax mode exclusive, tax label GST at 10%, one item: 40 hours of design work at 125.00 each. Can you run it through FreelanceDesk's validator and tell me what totals it computes?"},{"title":"Catch errors in draft invoice data","prompt":"I've drafted an invoice and I'm not sure if all the fields are filled in correctly — invoice number INV-2025-099, seller is Pixel Works with VAT ID DE123456789, client is StartupXYZ, dated 2025-12-01, due 2026-01-01, two items: 1 website redesign at 3500.00 EUR and 1 maintenance package at 200.00 EUR, tax mode inclusive, 19% VAT. Can you check it for any errors or issues?"}],"resultDescription":"A JSON object indicating whether the invoice is valid (boolean), the invoice number, computed totals (net, tax, and total amounts as strings), currency code, and an array of findings or validation errors. Returns valid:true with an empty findings array when the invoice passes all checks.","failureModes":["Invalid or missing required fields (seller.name, client.name, or items) cause validation findings in the findings array","Payment not completed (402 response with x402 or MPP challenge if USDC payment not settled)","Malformed JSON body returns parse error","Items array empty or exceeds 100 items returns schema validation error","Invalid date format (not YYYY-MM-DD) causes rejection","unitPrice with more than 2 decimal places fails schema validation","Unsupported currency code may cause downstream rendering issues"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.05) pre-flight check on invoice data before committing to a more expensive PDF or HTML render ($0.10). Ideal for catching structural errors, verifying tax computations, and confirming totals in an automated billing workflow. Prefer this over direct PDF generation when the invoice data source is uncertain or programmatically assembled and may contain errors.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:45:30.273Z","isFirstParty":false,"canonicalSlug":"freelancedesk-invoice-validator-f2d5cf74"}