# BRAINIAC Product Variant Validator

> BRAINIAC Product Variant Validator is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-17).

Validates e-commerce product catalog data for variant relationship issues, duplicate variants, price conflicts, and feed compliance problems

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/ecommerce-catalog/product-variant-validate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-product-variant-validator-c017003b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yM9Pp360UWm3EEDeTW2t8

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 brainiac-product-variant-validator-c017003b -d '<json body>'
```

Example prompt: Can you check my product variants for issues before I upload them? I have a list of 50 variants with SKUs, parentSkus, colors, sizes, and prices — I need to know if there are any duplicate variants, missing parent products, or price conflicts across the same parent.

## When to prefer this

Use this endpoint when you need a fast, accountless, pay-per-call validation of product variant data before submitting to an e-commerce platform or feed channel. It is ideal for catching structural issues (missing parents, duplicate variants, price conflicts) in bulk catalog data provided as a product array, CSV, or JSON without needing to set up an account or integration. Prefer this over manual review or platform-native validators when you want structured, machine-readable issue reports with field-level and row-level detail.

## Known failure modes

- Empty or malformed CSV/JSON input returns parsing errors
- Products referencing parentSkus not present in the same request trigger parent_missing codes
- Duplicate color+size combinations on the same parent trigger duplicate_variant codes
- Variants of the same parent with differing prices or currencies trigger price_conflict codes
- Input exceeding 200,000 character limit for csv/json fields returns a size error
- File base64 exceeding 12,000,000 character limit is rejected
- Missing required file fields (mediaType, fileBase64) causes schema validation failure
- Payment failure via x402 results in HTTP 402 and no result returned

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing: a list of issues (each with row number, error code, kind, affected field, human-readable detail, and product reference), overall status ('checked'), a timestamp, counts of products and variants checked, a flag indicating whether anything was published to a sales channel, and a limitations list explaining what was and was not evaluated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/csv",
      "application/json",
      "text/plain"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  },
  "products": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "mpn": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "sku": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "gtin": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1
     },
     "link": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1
     },
     "size": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "brand": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "color": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "price": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "title": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1
     },
     "width": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "height": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "length": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "weight": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "category": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1
     },
     "currency": {
      "type": "string",
      "maxLength": 12,
      "minLength": 1
     },
     "imageAlt": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1
     },
     "imageUrl": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1
     },
     "material": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "condition": {
      "type": "strin
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "issues": [
   {
    "row": 1,
    "code": "parent_missing",
    "kind": "missing",
    "field": "parentSku",
    "detail": "No product in this request uses this parent sku. A parent product was not created.",
    "productRef": "mug-blue"
   },
   {
    "row": 2,
    "code": "parent_missing",
    "kind": "missing",
    "field": "parentSku",
    "detail": "No product in this request uses this parent sku. A parent product was not created.",
    "productRef": "mug-blue-2"
   },
   {
    "row": 1,
    "code": "duplicate_variant",
    "kind": "duplicate",
    "field": "size",
    "detail": "Another variant of this parent has the same color and size.",
    "productRef": "mug-blue"
   },
   {
    "row": 2,
    "code": "duplicate_variant",
    "kind": "duplicate",
    "field": "size",
    "detail": "Another variant of this parent has the same color and size.",
    "productRef": "mug-blue-2"
   },
   {
    "row": 1,
    "code": "price_conflict",
    "kind": "conflict",
    "field": "price",
    "detail": "Variants of this parent have different prices or currencies. The prices were not averaged.",
    "productRef": "mug-blue"
   },
   {
    "row": 2,
    "code": "price_conflict",
    "kind": "conflict",
    "field": "price",
    "detail": "Variants of this parent have different prices or currencies. The prices were not averaged.",
    "productRef": "mug-blue-2"
   },
   {
    "row": 3,
    "code": "parent_missing",
    "kind": "missing",
    "field": "parentSku",
    "detail": "No product in this request uses this parent sku. A parent product was not created.",
    "productRef": "orphan"
   }
  ],
  "status": "checked",
  "checkedAt": "2026-11-03T09:00:00.000Z",
  "limitations": [
   "No sales channel was contacted and no product was published.",
   "Specifications, dimensions, materials, and certifications are not invented.",
   "A category is marked inferred only when one caller-supplied keyword matches the title. It is not written over a supplied category.",
   "Feed checks cover brainiac-catalog-v1 and a documented Google Merchant subset. They are not a channel approval.",
   "Image files are not downloaded. Only supplied URLs and metadata are checked."
  ],
  "productCount": 3,
  "variantCount": 3,
  "channelPublished": false,
  "specificationsInvented": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-product-variant-validator-c017003b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
