{"uid":"cap_7RrFqx7-bgy6LEyNh6qrU","slug":"invoice-imports-csv-trimmed-typed-conversion-c78c0043","name":"Invoice Imports CSV Trimmed Typed Conversion","description":"Invoice imports — Trimmed typed conversion: Trimmed typed conversion 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 trimmed typed conversion report.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-invoices-normalise?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_TBDBz4fzuB2787r_9H6xj","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 and normalizes an invoice CSV table by trimming whitespace and converting cell values to their correct data types, returning a structured conversion report.","exampleAgentPrompt":"Can you validate and normalize this invoice CSV for me — comma-delimited, with allowed account categories 'group-a' and 'group-b', numeric amounts between -1000000 and 1000000, and max cell length of 500? Here's the CSV: 'invoice_id,issued_on,account_id,net_amount,tax_amount\\nINV-001,2026-03-01,group-a,250.00,25.00\\nINV-002,2026-03-02,group-b,180.50,18.05'","exampleUseCases":[{"title":"Pre-import invoice data validation","prompt":"Before we import this month's invoice batch, can you run a trimmed typed conversion check on this CSV — comma-separated, categories limited to 'group-a' and 'group-b', amounts between 0 and 1000000? I want to catch any malformed cells or out-of-range values before they hit our database."},{"title":"Finance team CSV cleanup pipeline","prompt":"We received an invoice export from our vendor in semicolon-delimited CSV format. Can you normalize and type-convert the cells, trim any whitespace, enforce allowed categories 'enterprise' and 'retail', and flag anything with a net_amount outside of -500000 to 500000?"},{"title":"Automated invoice reconciliation check","prompt":"I have 800 invoice rows in a tab-delimited CSV I need to validate before reconciliation — please run the trimmed typed conversion with a max cell length of 200, allow categories 'group-a', 'group-b', and 'group-c', and tell me which rows have type errors or values outside the range -1000000 to 1000000."}],"resultDescription":"A trimmed typed conversion report covering up to 1000 invoice CSV rows, indicating which cells were successfully type-coerced and trimmed, which rows failed validation (e.g. out-of-range numeric values, disallowed category strings, oversized cells), and the normalized output of valid rows.","failureModes":["CSV exceeds 100,000 character limit — request rejected","More than 1000 rows in the CSV — validation truncated or rejected","Unsupported delimiter used (not comma, semicolon, or tab) — parse error","Cell length exceeds max_cell_length — cell flagged or row rejected","Numeric value outside specified minimum/maximum range — validation failure flagged","Category value not in allowed_categories list — row flagged as invalid","Malformed CSV (unbalanced quotes, missing columns) — parse error returned","Empty CSV string — error returned"],"whenToPreferThis":"Choose this endpoint when you need a fast, structured validation and type-normalization pass over an invoice-specific CSV before importing it into a database or accounting system. It is purpose-built for the invoice import domain (invoice_id, issued_on, account_id, net_amount, tax_amount), supports quoted cells, and enforces configurable numeric bounds and category allowlists — making it more appropriate than a generic CSV parser when you need both type conversion and domain-level validation in a single call. Prefer it over manual ETL scripting when you want a pay-per-use, auditable conversion report with no external data enrichment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:17:45.415Z","isFirstParty":false,"canonicalSlug":"invoice-imports-csv-trimmed-typed-conversion-c78c0043"}