# Retail Replenishment Quantity Distribution Histogram

> Retail Replenishment Quantity 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-14).

Computes a distribution histogram of target replenishment quantities from supplied retail inventory position and target unit data, with configurable bin count.

## Facts

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

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 retail-replenishment-quantity-distribution-histogram-4e8ef19b -d '<json body>'
```

Example prompt: I have 8 retail locations with their target units and inventory positions — can you compute a distribution histogram with 10 bins so I can see how spread out our replenishment quantities are? Here's the data: store 1 target 200 inventory 120, store 2 target 350 inventory 180, store 3 target 150 inventory 90, store 4 target 400 inventory 260, store 5 target 220 inventory 140, store 6 target 300 inventory 200, store 7 target 175 inventory 100, store 8 target 500 inventory 310.

## When to prefer this

Choose this endpoint when you need a quick local frequency distribution of retail replenishment quantities (target minus inventory) across multiple locations or SKUs without requiring live inventory system access or platform connectivity. Ideal for scenario analysis and planning when you already have the raw target and inventory position figures. Not suitable for live order execution, real-time inventory lookup, or financial transactions.

## Known failure modes

- Fewer than 2 rows provided — minimum row count not met
- bins value exceeds maximum of 30 or is less than 1
- target_units or inventory_position values outside allowed numeric bounds
- Malformed row objects missing required fields target_units or inventory_position
- Empty or null rows array

## How this service works

Target replenishment quantity - Distribution histogram: Distribution histogram for Target replenishment quantity. 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

Returns a bounded distribution histogram showing how target replenishment quantities (target_units minus inventory_position) are distributed across the supplied retail rows, segmented into the requested number of bins. Each bin covers a range of replenishment values with an associated frequency count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "target_units",
     "inventory_position"
    ],
    "properties": {
     "target_units": {
      "type": "number",
      "default": 200,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "inventory_position": {
      "type": "number",
      "default": 120,
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "target_units": 200,
     "inventory_position": 120
    },
    {
     "target_units": 220.00000000000003,
     "inventory_position": 132
    },
    {
     "target_units": 200,
     "inventory_position": 120
    },
    {
     "target_units": 220.00000000000003,
     "inventory_position": 132
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/retail-replenishment-quantity-distribution-histogram-4e8ef19b/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)
