# Bundle Contribution Distribution Histogram

> Bundle Contribution 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-19).

Computes a distribution histogram of bundle contribution margins from supplied retail pricing and cost data, segmented into configurable bins.

## Facts

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

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 bundle-contribution-distribution-histogram-cdd134fd -d '<json body>'
```

Example prompt: Can you generate a distribution histogram of bundle contribution margins for these 4 product bundles — bundle prices are 100 and 110, item costs are 50 and 55, packing costs are 5 and 5.50, fulfilment costs are 10 and 11 — split into 5 bins?

## When to prefer this

Choose this endpoint when you need a local, fast, offline-style computation of how bundle contribution margins are distributed across frequency bins using your own retail data. It is ideal for scenario analysis, pricing reviews, and profitability tiering without needing live inventory, platform fee data, or order execution. Prefer it over full BI tools when you want a lightweight, per-call histogram computation at low cost.

## Known failure modes

- Fewer than 2 rows supplied — minimum of 2 rows required
- More than 200 rows supplied — exceeds maxItems limit
- Bins value below 1 or above 30 — out of allowed range
- Missing required fields (bundle_price, item_costs, packing_cost, fulfilment_cost) in any row — validation error
- Negative costs or prices that produce unexpected contribution logic — results may be valid but semantically odd
- Payment not completed — x402 payment required before response is delivered

## How this service works

Bundle contribution - Distribution histogram: Distribution histogram for Bundle contribution. 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 where each bin represents a range of bundle contribution margin values, along with frequency counts indicating how many of the supplied retail rows fall within each bin. Output is scoped to the provided data with no live inventory or external lookups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "bundle_price",
     "item_costs",
     "packing_cost",
     "fulfilment_cost"
    ],
    "properties": {
     "item_costs": {
      "type": "number",
      "default": 50,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "bundle_price": {
      "type": "number",
      "default": 100,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "packing_cost": {
      "type": "number",
      "default": 5,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "fulfilment_cost": {
      "type": "number",
      "default": 10,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "item_costs": 50,
     "bundle_price": 100,
     "packing_cost": 5,
     "fulfilment_cost": 10
    },
    {
     "item_costs": 55.00000000000001,
     "bundle_price": 110.00000000000001,
     "packing_cost": 5.5,
     "fulfilment_cost": 11
    },
    {
     "item_costs": 50,
     "bundle_price": 100,
     "packing_cost": 5,
     "fulfilment_cost": 10
    },
    {
     "item_costs": 55.00000000000001,
     "bundle_price": 110.00000000000001,
     "packing_cost": 5.5,
     "fulfilment_cost": 11
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bundle-contribution-distribution-histogram-cdd134fd/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)
