# Purchase Order Imports — Trimmed Typed Conversion

> Purchase Order Imports — Trimmed Typed Conversion 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 and normalizes a CSV of purchase order records up to 1000 rows, trimming whitespace and converting cell types according to a declared contract.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-purchases-normalise?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/purchase-order-imports-trimmed-typed-conversion-37a6404e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AKBKLJbbPaHjRwQ7jgL2_

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 purchase-order-imports-trimmed-typed-conversion-37a6404e -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/purchase-order-imports-trimmed-typed-conversion-37a6404e/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)
