# Net Merchandise Sales Distribution Histogram

> Net Merchandise Sales 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-18).

Computes a distribution histogram of net merchandise sales (gross sales minus discounts and returns) across supplied retail data rows, grouped into configurable bins.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-net-merchandise-sales-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/net-merchandise-sales-distribution-histogram-1bad95b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LabomLIrn-06U8tonLgyY

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 net-merchandise-sales-distribution-histogram-1bad95b4 -d '<json body>'
```

Example prompt: Can you generate a distribution histogram of net merchandise sales from my retail data — I have 10 rows with gross sales, discounts, and returns figures — and split them into 8 bins so I can see how the values are spread out?

## When to prefer this

Use this endpoint when you need a local, offline-style distribution analysis of net merchandise sales computed from supplied retail figures — particularly when you want configurable bin counts and do not need live inventory, platform fees, or order data. Ideal for scenario analysis and exploratory data analysis on datasets of up to 200 rows without external account access.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 rows required
- More than 200 rows submitted — exceeds maxItems limit
- Bins value outside 1–30 range — validation error returned
- Negative values for gross_merchandise_sales, discounts, or returns — rejected by schema
- Missing required fields (gross_merchandise_sales, discounts, or returns) in any row — schema validation failure
- All rows have identical net values — histogram collapses to single bin

## How this service works

Net merchandise sales - Distribution histogram: Distribution histogram for Net merchandise sales. 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 distribution histogram showing how net merchandise sales values (gross sales minus discounts minus returns) are spread across the requested number of bins, including bin boundaries and the count or frequency of data points falling within each bin.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "gross_merchandise_sales",
     "discounts",
     "returns"
    ],
    "properties": {
     "returns": {
      "type": "number",
      "default": 300,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "discounts": {
      "type": "number",
      "default": 500,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "gross_merchandise_sales": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "returns": 300,
     "discounts": 500,
     "gross_merchandise_sales": 10000
    },
    {
     "returns": 330,
     "discounts": 550,
     "gross_merchandise_sales": 11000
    },
    {
     "returns": 300,
     "discounts": 500,
     "gross_merchandise_sales": 10000
    },
    {
     "returns": 330,
     "discounts": 550,
     "gross_merchandise_sales": 11000
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/net-merchandise-sales-distribution-histogram-1bad95b4/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)
