# Invoice Imports CSV Trimmed Typed Conversion

> Invoice Imports CSV 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-19).

Validates and normalizes an invoice CSV table by trimming whitespace and converting cell values to their correct data types, returning a structured conversion report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-invoices-normalise?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invoice-imports-csv-trimmed-typed-conversion-c78c0043
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7RrFqx7-bgy6LEyNh6qrU

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 invoice-imports-csv-trimmed-typed-conversion-c78c0043 -d '<json body>'
```

Example prompt: Can you validate and normalize this invoice CSV for me — comma-delimited, with allowed account categories 'group-a' and 'group-b', numeric amounts between -1000000 and 1000000, and max cell length of 500? Here's the CSV: 'invoice_id,issued_on,account_id,net_amount,tax_amount\nINV-001,2026-03-01,group-a,250.00,25.00\nINV-002,2026-03-02,group-b,180.50,18.05'

## When to prefer this

Choose this endpoint when you need a fast, structured validation and type-normalization pass over an invoice-specific CSV before importing it into a database or accounting system. It is purpose-built for the invoice import domain (invoice_id, issued_on, account_id, net_amount, tax_amount), supports quoted cells, and enforces configurable numeric bounds and category allowlists — making it more appropriate than a generic CSV parser when you need both type conversion and domain-level validation in a single call. Prefer it over manual ETL scripting when you want a pay-per-use, auditable conversion report with no external data enrichment.

## Known failure modes

- CSV exceeds 100,000 character limit — request rejected
- More than 1000 rows in the CSV — validation truncated or rejected
- Unsupported delimiter used (not comma, semicolon, or tab) — parse error
- Cell length exceeds max_cell_length — cell flagged or row rejected
- Numeric value outside specified minimum/maximum range — validation failure flagged
- Category value not in allowed_categories list — row flagged as invalid
- Malformed CSV (unbalanced quotes, missing columns) — parse error returned
- Empty CSV string — error returned

## How this service works

Invoice imports — Trimmed typed conversion: Trimmed typed conversion for Invoice 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 invoice CSV rows, indicating which cells were successfully type-coerced and trimmed, which rows failed validation (e.g. out-of-range numeric values, disallowed category strings, oversized cells), and the normalized output of valid rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "invoice_id,issued_on,account_id,net_amount,tax_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/invoice-imports-csv-trimmed-typed-conversion-c78c0043/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)
