{"uid":"cap_AKBKLJbbPaHjRwQ7jgL2_","slug":"purchase-order-imports-trimmed-typed-conversion-37a6404e","name":"Purchase Order Imports — Trimmed Typed Conversion","description":"Purchase order imports — Trimmed typed conversion: Trimmed typed conversion for Purchase order 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-purchases-normalise?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","default":"purchase_id,placed_on,vendor_id,ordered_units,order_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_cnYGeUsJjgIOj76QzOTS2","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 a CSV of purchase order records up to 1000 rows, trimming whitespace and converting cell types according to a declared contract.","exampleAgentPrompt":"Can you validate and normalize my purchase orders CSV — it uses comma delimiters, has quoted cells, and I want to make sure vendor IDs are only from 'group-a' or 'group-b', order amounts stay between 0 and 1000000, and no cell exceeds 500 characters?","exampleUseCases":[{"title":"Procurement data pipeline validation","prompt":"I have a CSV export of purchase orders from our ERP with columns for purchase_id, placed_on, vendor_id, ordered_units, and order_amount — can you run it through the trimmed typed conversion check using comma delimiters and flag any rows where order_amount is outside 0 to 500000 or vendor_id isn't in our approved list of 'vendor-x' or 'vendor-y'?"},{"title":"Supplier invoice import quality check","prompt":"Before I import this supplier purchase order file into our system, can you validate the CSV for me? It's semicolon-delimited, up to 800 rows, and I need to confirm all numeric fields are properly typed and all category values match either 'group-a' or 'group-b'."},{"title":"Automated nightly purchase order reconciliation","prompt":"Every night I get a CSV dump of purchase orders — can you run the trimmed typed conversion report on it with comma delimiters, cap cell length at 200 characters, and only accept vendor categories 'east-region' and 'west-region', with order amounts between 1 and 999999?"}],"resultDescription":"A trimmed typed conversion report covering up to 1000 CSV rows: each cell is whitespace-trimmed and type-coerced, rows are validated against numeric min/max bounds, allowed category values, and max cell length constraints. The report identifies which rows and cells passed or failed the declared contract.","failureModes":["CSV exceeds 100,000 character limit — request rejected","CSV contains more than 1000 rows — rows beyond limit may be ignored or rejected","Cell value exceeds max_cell_length — flagged as invalid","Numeric value outside declared minimum/maximum — flagged as out-of-range","Category value not in allowed_categories list — flagged as invalid","Malformed CSV (unmatched quotes, wrong delimiter) — parse error returned","Empty CSV string — validation error"],"whenToPreferThis":"Use this endpoint when you need to validate and normalize a purchase order CSV import against a declared contract — specifically when you need whitespace trimming, type conversion, category allowlisting, and numeric range enforcement in a single call. Prefer this over generic CSV parsers when your data is purchase-order-shaped (purchase_id, placed_on, vendor_id, ordered_units, order_amount) and you want a structured pass/fail report per row without any external enrichment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:47:48.914Z","isFirstParty":false,"canonicalSlug":"purchase-order-imports-trimmed-typed-conversion-37a6404e"}