# ABC-XYZ Inventory Classifier

> ABC-XYZ Inventory Classifier is a paid API for AI agents from x402-niche-briefs.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Classifies a SKU into ABC (revenue share) and XYZ (demand variability) categories given cumulative revenue percentage and weekly demand statistics.

## Facts

- Endpoint: GET https://x402-niche-briefs.fly.dev/v1/abc-xyz-inventory-classifier?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/abc-xyz-inventory-classifier-86c34aff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y9UqIgMRzn-i9Spn774WZ

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 abc-xyz-inventory-classifier-86c34aff
```

Example prompt: Classify this SKU using ABC-XYZ analysis — its cumulative revenue share is 72%, mean weekly demand is 150 units, and the standard deviation of weekly demand is 45 units.

## When to prefer this

Choose this endpoint when you need a fast, single-SKU ABC-XYZ classification using pre-computed revenue and demand statistics. It is ideal for e-commerce or retail agents automating inventory segmentation, safety stock decisions, or replenishment policy assignment at the SKU level. Prefer it over manual spreadsheet approaches or full ERP queries when you already have cumulative revenue percentage and weekly demand mean/std readily available.

## Known failure modes

- Missing required query parameters (cumulative_revenue_pct, demand_mean, or demand_std) result in a 400 error
- Non-numeric or out-of-range values for demand_mean or demand_std may cause validation errors
- demand_std of 0 may cause a CV of 0 (perfectly stable, class X) or a divide-by-zero edge case
- cumulative_revenue_pct outside 0–100 range may return unexpected classification results
- Service unavailability on fly.dev infrastructure returns 5xx errors
- Payment failure via x402 protocol results in 402 Payment Required before classification is attempted

## How this service works

Classify SKU by revenue share and demand variability (CV).

## Output

Returns the SKU's ABC class (A, B, or C based on revenue share), XYZ class (X, Y, or Z based on demand coefficient of variation), the computed CV value, a recommended inventory policy string, and a timestamp for the classification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cumulative_revenue_pct",
      "demand_mean",
      "demand_std"
     ],
     "properties": {
      "demand_std": {
       "type": "string",
       "description": "Std dev weekly demand"
      },
      "demand_mean": {
       "type": "string",
       "description": "Mean weekly demand"
      },
      "cumulative_revenue_pct": {
       "type": "string",
       "description": "Cumulative revenue % at this SKU"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "input",
      "class",
      "cv",
      "policy",
      "as_of"
     ],
     "properties": {
      "cv": {
       "type": "number"
      },
      "as_of": {
       "type": "string"
      },
      "class": {
       "type": "string"
      },
      "input": {
       "type": "object",
       "required": [
        "cumulative_revenue_pct",
        "demand_mean",
        "demand_std"
       ],
       "properties": {
        "demand_std": {
         "type": "number"
        },
        "demand_mean": {
         "type": "number"
        },
        "cumulative_revenue_pct": {
         "type": "number"
        }
       }
      },
      "policy": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/abc-xyz-inventory-classifier-86c34aff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-niche-briefs.fly.dev](https://www.zero.xyz/host/x402-niche-briefs.fly.dev/llms.txt)
