# Purchase Order Imports — Header Contract Check

> Purchase Order 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-15).

Validates the column header contract of a purchase order CSV file (up to 1000 rows) against expected field names and data constraints.

## Facts

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

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

Example prompt: Can you validate my purchase order CSV to make sure the headers and data match the expected contract — columns like purchase_id, placed_on, vendor_id, ordered_units, and order_amount — using a comma delimiter, with allowed categories group-a and group-b, and order amounts between 0 and 1000000?

## When to prefer this

Choose this endpoint when you need a fast, low-cost ($0.01 USDC) structural validation of purchase order CSV files specifically, particularly when checking that column headers match the expected contract (purchase_id, placed_on, vendor_id, ordered_units, order_amount) and that data values conform to allowed categories and numeric ranges. Prefer this over generic CSV validators when the domain is purchase order imports and you need a specialised preset with no external enrichment or side effects.

## Known failure modes

- CSV exceeds 1000 rows — only up to 1000 rows are validated
- CSV string is empty or missing — minimum length of 1 character required
- Cell content exceeds max_cell_length — flagged as a contract violation
- Delimiter mismatch causes parsing errors if actual delimiter differs from declared one
- Numeric values outside declared minimum/maximum bounds are flagged
- Category values not in allowed_categories list trigger contract violations
- Malformed CSV that cannot be parsed returns an error report

## How this service works

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

## Output

Returns a header contract check report for the submitted purchase order CSV, indicating whether the declared column headers and data conform to the expected schema, including any violations of allowed categories, numeric bounds, or cell length limits — covering up to 1000 rows.

## 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-header-contract-check-6395862b/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)
