# Cancellation Reason Label Distribution

> Cancellation Reason Label Distribution 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-20).

Computes the label distribution (class balance) across up to 200 labelled cancellation-reason text records tagged as price, usage, quality, or other.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-cancellation-reason-label-balance?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cancellation-reason-label-distribution-34249ddc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VbNLyQtOs1capwLo6N2oW

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 cancellation-reason-label-distribution-34249ddc -d '<json body>'
```

Example prompt: I have 150 labelled cancellation reason records tagged as price, usage, quality, or other — can you check the label distribution to see if the classes are balanced before I train a classifier?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01) label distribution audit on a small labelled dataset (up to 200 records) with cancellation reason categories (price, usage, quality, other) — especially useful before training a naive-Bayes or similar classifier to detect class imbalance without spinning up a hosted model.

## Known failure modes

- Fewer than 2 records submitted — minimum record count not met
- Record count exceeds 200 — maximum items limit exceeded
- Missing required fields (id, text, or actual) on one or more records
- Invalid enum value for 'actual' field (must be price, usage, quality, or other)
- Payment not included or insufficient — x402 payment required
- Record ID exceeds 80 character limit or is empty

## How this service works

Cancellation reason - Label distribution: Label distribution for Cancellation reason. Up to 200 supplied labelled text records. Local dataset tools, evaluation and small naive-Bayes baselines; no hosted model or foundation-model training. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded label distribution deliverable.

## Output

Returns a label distribution summary showing the count and/or proportion of records falling into each cancellation reason category (price, usage, quality, other) across the submitted dataset of up to 200 labelled records.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual"
    ],
    "properties": {
     "id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "text": {
      "type": "string",
      "default": "",
      "maxLength": 1000
     },
     "actual": {
      "enum": [
       "price",
       "usage",
       "quality",
       "other"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "price sample document number 0 for this supplied dataset.",
     "actual": "price"
    },
    {
     "id": "example-0-1",
     "text": "price sample document number 1 for this supplied dataset.",
     "actual": "price"
    },
    {
     "id": "example-0-2",
     "text": "price sample document number 2 for this supplied dataset.",
     "actual": "price"
    },
    {
     "id": "example-1-0",
     "text": "usage sample document number 0 for this supplied dataset.",
     "actual": "usage"
    },
    {
     "id": "example-1-1",
     "text": "usage sample document number 1 for this supplied dataset.",
     "actual": "usage"
    },
    {
     "id": "example-1-2",
     "text": "usage sample document number 2 for this supplied dataset.",
     "actual": "usage"
    },
    {
     "id": "example-2-0",
     "text": "quality sample document number 0 for this supplied dataset.",
     "actual": "quality"
    },
    {
     "id": "example-2-1",
     "text": "quality sample document number 1 for this supplied dataset.",
     "actual": "quality"
    },
    {
     "id": "example-2-2",
     "text": "quality sample document number 2 for this supplied dataset.",
     "actual": "quality"
    },
    {
     "id": "example-3-0",
     "text": "other sample document number 0 for this supplied dataset.",
     "actual": "other"
    },
    {
     "id": "example-3-1",
     "text": "other sample document number 1 for this supplied dataset.",
     "actual": "other"
    },
    {
     "id": "example-3-2",
     "text": "other sample document number 2 for this supplied dataset.",
     "actual": "other"
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cancellation-reason-label-distribution-34249ddc/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)
