{"openapi":"3.1.0","info":{"title":"BenjiWorks CSV Cleanup Pre-Flight Check","version":"1.0.0","description":"Screens a product-list CSV before cleanup and reports every problem: duplicates, blank identifiers, unparseable prices, ragged rows and unmapped categories. It changes nothing and promises no import, ranking, traffic, or sale."},"servers":[{"url":"https://benjiworks-preflight.vercel.app"}],"paths":{"/api/csv-preflight":{"post":{"summary":"CSV Cleanup Pre-Flight Check","description":"Screens a product-list CSV (up to 1,000 rows / 2 MB) and returns counts plus an exceptions list. Price $0.05 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.05","description":"CSV Cleanup Pre-Flight Check — $0.05 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv_text":{"type":"string","description":"The full product-list CSV as a string."},"id_col":{"type":"string","description":"Identifier column header (default sku)."},"name_col":{"type":"string","description":"Product-name column header (default name)."},"category_col":{"type":"string","description":"Category column header (default category)."},"price_col":{"type":"string","description":"Price column header (default price)."}},"required":["csv_text"]},"example":{"csv_text":"sku,name,category,price\nA1,Widget,Outdoor,12.99\n"}}}},"responses":{"200":{"description":"Pre-flight report.","content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"type":"string"},"counts":{"type":"object"},"exceptions":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Bad request (missing or oversized csv_text)."},"402":{"description":"Payment Required — $0.05 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/health":{"get":{"summary":"Health check","responses":{"200":{"description":"Service is up.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string"},"version":{"type":"string"}}}}}}},"security":[]}}}}