# Unit Return Rate Distribution Histogram

> Unit Return Rate Distribution Histogram 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-27).

Computes a distribution histogram of unit return rates from supplied retail sold/returned unit data, bucketed into configurable bins.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-unit-return-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-return-rate-distribution-histogram-d4eb56f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cv4j6BgflWcUWrL57iGBj

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 unit-return-rate-distribution-histogram-d4eb56f5 -d '<json body>'
```

Example prompt: Can you generate a distribution histogram for these return rates — I have 8 products with their sold and returned unit counts — and split it into 10 bins so I can see how the return rates are spread out?

## When to prefer this

Choose this endpoint when you need a local, offline statistical distribution of return rates from your own retail data without requiring live inventory access, platform integration, or order system connectivity. It is ideal for scenario analysis, benchmarking, or exploratory analytics on supplied datasets up to 200 rows, and when you want configurable bin granularity (1–30 bins). Prefer alternatives if you need real-time return rate monitoring, live platform data, or inventory-linked calculations.

## Known failure modes

- Fewer than 2 rows supplied — minimum item count not met
- sold_units value of 0 triggers exclusiveMinimum validation error
- bins count exceeds maximum of 30
- More than 200 rows submitted — maxItems exceeded
- Malformed row objects missing required sold_units or returned_units fields
- Non-numeric values in numeric fields cause schema validation failure

## How this service works

Unit return rate - Distribution histogram: Distribution histogram for Unit return rate. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded distribution histogram deliverable.

## Output

A bounded distribution histogram showing how unit return rates (returned_units/sold_units) are spread across the specified number of bins, based on the supplied retail row data. Each bin represents a range of return rates and indicates how many data points fall within it.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "returned_units",
     "sold_units"
    ],
    "properties": {
     "sold_units": {
      "type": "number",
      "default": 100,
      "maximum": 1000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "returned_units": {
      "type": "number",
      "default": 5,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "sold_units": 100,
     "returned_units": 5
    },
    {
     "sold_units": 110.00000000000001,
     "returned_units": 5.5
    },
    {
     "sold_units": 100,
     "returned_units": 5
    },
    {
     "sold_units": 110.00000000000001,
     "returned_units": 5.5
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unit-return-rate-distribution-histogram-d4eb56f5/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)
