# Invoice Imports — Header Contract Check

> Invoice Imports — Header Contract Check 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 the header contract of a CSV file for invoice imports, checking column structure, data types, and value constraints for up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-invoices-schema?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-header-contract-check-3af64bcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rzB1JcpqSflBo5I7x7CVN

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-header-contract-check-3af64bcb -d '<json body>'
```

Example prompt: Can you check whether my invoice CSV file has a valid header contract? It uses a comma delimiter and has columns invoice_id, issued_on, account_id, net_amount, and tax_amount — allowed account categories are group-a and group-b, and no cell should be longer than 500 characters.

## When to prefer this

Use this endpoint when you need a fast, purpose-built CSV contract check specifically for invoice import files with the standard fields (invoice_id, issued_on, account_id, net_amount, tax_amount). It is ideal as a lightweight pre-import gate to catch header mismatches, invalid categories, and numeric range violations before committing data to a downstream system. Prefer it over generic CSV validators when you need invoice-domain-aware validation with configurable category allowlists and numeric bounds.

## Known failure modes

- CSV exceeds 100,000 character limit — rejected with size error
- Invalid delimiter specified — validation fails to parse
- CSV contains no rows or is empty — returns empty/invalid contract error
- Cell values exceed max_cell_length — flagged as contract violation
- Numeric values outside declared minimum/maximum bounds — flagged as range errors
- Category values not in allowed_categories list — flagged as invalid
- Malformed CSV (unmatched quotes, bad encoding) — parse error returned

## How this service works

Invoice imports — Header contract check: Header contract check 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 header contract check report.

## Output

A structured report confirming whether the CSV header contract is valid, including details on any column name mismatches, disallowed category values, out-of-range numeric fields, cell length violations, or parsing errors found within the supplied 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-header-contract-check-3af64bcb/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)
