{"uid":"cap_rzB1JcpqSflBo5I7x7CVN","slug":"invoice-imports-header-contract-check-3af64bcb","name":"Invoice Imports — Header Contract Check","description":"Invoice imports — Header contract check: Header contract check for Invoice imports. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV header contract check report.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-invoices-schema?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","default":"invoice_id,issued_on,account_id,net_amount,tax_amount\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3","maxLength":100000,"minLength":1},"maximum":{"type":"number","default":1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"minimum":{"type":"number","default":-1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"delimiter":{"enum":[",",";","\t"],"type":"string","default":","},"max_cell_length":{"type":"integer","default":1000,"maximum":5000,"minimum":1},"allowed_categories":{"type":"array","items":{"type":"string","default":"","maxLength":100,"minLength":1},"default":["group-a","group-b"],"maxItems":100,"minItems":0}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8CwUZhN57K_CmxwXbQfj7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the header contract of a CSV file for invoice imports, checking column structure, data types, and value constraints for up to 1000 rows.","exampleAgentPrompt":"Can you check whether my invoice CSV file has a valid header contract? It uses a comma delimiter and has columns invoice_id, issued_on, account_id, net_amount, and tax_amount — allowed account categories are group-a and group-b, and no cell should be longer than 500 characters.","exampleUseCases":[{"title":"Pre-import invoice file validation","prompt":"Before I push this invoice CSV to our accounting system, can you validate the header contract? The file uses comma-separated values, columns are invoice_id, issued_on, account_id, net_amount, tax_amount, and the only valid account categories are group-a and group-b."},{"title":"Catch schema errors in finance pipeline","prompt":"My automated invoice import keeps failing — can you run a header contract check on this CSV to see if there's a column mismatch or invalid category value? The delimiter is a semicolon and amounts should be between -1000000 and 1000000."},{"title":"Validate third-party invoice data","prompt":"I just received an invoice CSV from a vendor and need to confirm it matches our declared import contract before loading it. Please check the headers and make sure all rows — up to 1000 — conform, with comma as the delimiter and allowed categories of group-a and group-b."}],"resultDescription":"A structured report confirming whether the CSV header contract is valid, including details on any column name mismatches, disallowed category values, out-of-range numeric fields, cell length violations, or parsing errors found within the supplied rows.","failureModes":["CSV exceeds 100,000 character limit — rejected with size error","Invalid delimiter specified — validation fails to parse","CSV contains no rows or is empty — returns empty/invalid contract error","Cell values exceed max_cell_length — flagged as contract violation","Numeric values outside declared minimum/maximum bounds — flagged as range errors","Category values not in allowed_categories list — flagged as invalid","Malformed CSV (unmatched quotes, bad encoding) — parse error returned"],"whenToPreferThis":"Use this endpoint when you need a fast, purpose-built CSV contract check specifically for invoice import files with the standard fields (invoice_id, issued_on, account_id, net_amount, tax_amount). It is ideal as a lightweight pre-import gate to catch header mismatches, invalid categories, and numeric range violations before committing data to a downstream system. Prefer it over generic CSV validators when you need invoice-domain-aware validation with configurable category allowlists and numeric bounds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:16:36.726Z","isFirstParty":false,"canonicalSlug":"invoice-imports-header-contract-check-3af64bcb"}