{"uid":"cap_4fPeikN3wCebT3qP0vB9O","slug":"return-imports-valid-row-export-5a39b925","name":"Return Imports — Valid Row Export","description":"Return imports — Valid row export: Valid row export for Return 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 valid row export report.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-returns-valid-rows?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","default":"return_id,received_on,reason_code,returned_units,restocking_fee\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_-Bp_nRQHeqSBDbFayw8Tj","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 a CSV file of return import data against a declared table contract and exports only the valid rows, up to 1000 rows.","exampleAgentPrompt":"Validate my returns CSV and export only the valid rows — the file uses comma delimiters, allowed reason codes are group-a and group-b, numeric values should be between 0 and 1000000, and here's the CSV: return_id,received_on,reason_code,returned_units,restocking_fee\\nrecord-a,2026-01-01,group-a,10,2\\nrecord-b,2026-01-02,group-b,20,3","exampleUseCases":[{"title":"Clean returns batch before processing","prompt":"I have a CSV of 500 return records with columns return_id, received_on, reason_code, returned_units, and restocking_fee — can you validate it against our contract and give me only the valid rows? Allowed reason codes are group-a, group-b, and group-c, and numeric values should be between 0 and 500000."},{"title":"Spot bad reason codes in returns data","prompt":"We got a big export of return imports and I suspect some rows have invalid reason codes or out-of-range numbers. Can you run a valid row export on this CSV, using comma as delimiter, allowed categories group-a and group-b, and flag anything outside the range -1000 to 1000000?"},{"title":"Audit returns CSV before warehouse sync","prompt":"Before we sync this returns import file to the warehouse system, can you validate it and pull out only the clean rows? It's a semicolon-delimited CSV, reason codes should only be group-a or group-b, and restocking_fee values must be between 0 and 5000."}],"resultDescription":"A valid row export report listing only the rows from the submitted CSV that pass all declared contract rules — including numeric range checks, allowed category membership for reason codes, cell length limits, and proper CSV structure. Rows failing any constraint are excluded from the output.","failureModes":["CSV exceeds 100,000 character limit — rejected with size error","Rows exceed 1000 row maximum — only first 1000 processed or error returned","Invalid delimiter character not in allowed enum — validation error","Cell content exceeds max_cell_length — those cells or rows flagged invalid","No rows pass validation — empty valid row set returned","Malformed CSV (unmatched quotes, structural errors) — parse failure"],"whenToPreferThis":"Choose this endpoint when you need to validate a return imports CSV against a declared table contract and extract only conforming rows, particularly when you need to enforce allowed category values for reason codes, numeric range bounds, and cell length constraints. It is purpose-built for the returns domain schema (return_id, received_on, reason_code, returned_units, restocking_fee) and handles quoted cells. Prefer this over generic CSV validators when you need domain-specific returns data contract enforcement with a clean valid-row output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:47.143Z","isFirstParty":false,"canonicalSlug":"return-imports-valid-row-export-5a39b925"}