# Unit Contribution Batch Calculator

> Unit Contribution Batch Calculator 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).

Calculates unit contribution (unit price minus variable cost per unit) for up to 200 rows of supplied data, identifying invalid records and returning results with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-batch?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/unit-contribution-batch-calculator-e3a3d94b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iXjljY5ee0i1uKZRkfbbK

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-contribution-batch-calculator-e3a3d94b -d '<json body>'
```

Example prompt: Calculate the unit contribution for these two products: Product A has a unit price of $20 and variable cost per unit of $12, and Product B has a unit price of $22 and variable cost per unit of $13.20 — run it as a batch and flag any invalid rows.

## When to prefer this

Choose this endpoint when you need to process multiple unit contribution calculations in a single call (up to 200 rows), especially when you also need automatic validation of bad rows and a structured JSON report with the formula and units. Prefer this over a single-record calculator when working with product catalogs, pricing grids, or scenario tables.

## Known failure modes

- Rows missing required fields (unit_price or variable_cost_per_unit) are flagged as invalid rather than causing a full failure
- Batch exceeds 200 rows — request rejected with maxItems validation error
- Values outside allowed range (0 to 1,000,000,000,000) will be flagged or rejected
- Payment not completed — endpoint returns 402 before processing
- Malformed JSON body — returns parse error

## How this service works

Unit contribution - Batch calculation: Calculate up to 200 supplied records and locate invalid rows. Metric: Unit contribution. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded batch calculation report.

## Output

A JSON report containing the unit contribution value (unit price minus variable cost per unit) for each submitted row, the formula used, measurement units, any data limitations, and identification of any invalid or out-of-range rows within the batch.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "unit_price",
     "variable_cost_per_unit"
    ],
    "properties": {
     "unit_price": {
      "type": "number",
      "default": 20,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "variable_cost_per_unit": {
      "type": "number",
      "default": 12,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "unit_price": 20,
     "variable_cost_per_unit": 12
    },
    {
     "unit_price": 22,
     "variable_cost_per_unit": 13.200000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unit-contribution-batch-calculator-e3a3d94b/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)
