# Return Imports — Valid Row Export

> Return Imports — Valid Row Export is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Validates a CSV file of return import data against a declared table contract and exports only the valid rows, up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-returns-valid-rows?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/return-imports-valid-row-export-5a39b925
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4fPeikN3wCebT3qP0vB9O

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability return-imports-valid-row-export-5a39b925 -d '<json body>'
```

Example prompt: 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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/return-imports-valid-row-export-5a39b925/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
