# Gross Profit Batch Calculator

> Gross Profit 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-22).

Calculates gross profit for up to 200 revenue/cost-of-sales record pairs in a single batch, flagging invalid rows and returning results with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-gross-profit-batch?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gross-profit-batch-calculator-dce9d618
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9tYZkRIgFPxT2Co6jfuV-

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 gross-profit-batch-calculator-dce9d618 -d '<json body>'
```

Example prompt: Can you calculate the gross profit for these 5 product lines? Product A: revenue $50,000, cost of sales $30,000; Product B: revenue $75,000, cost of sales $45,000; Product C: revenue $20,000, cost of sales $12,000; Product D: revenue $110,000, cost of sales $70,000; Product E: revenue $60,000, cost of sales $38,000.

## When to prefer this

Use this endpoint when you need to compute gross profit for multiple records simultaneously (up to 200 at once) rather than one at a time, saving on per-call costs. It is ideal for bulk financial analysis, period-over-period comparisons, or validating datasets for data quality issues. Prefer this over single-record calculators when processing lists of products, business units, or time periods.

## Known failure modes

- Batch exceeds 200 rows — request rejected with validation error
- Revenue or cost_of_sales values outside ±1 trillion range — row flagged as invalid
- Missing required fields (revenue or cost_of_sales) in a row — row flagged invalid
- Malformed JSON input — 400 error returned
- Payment not included or insufficient — 402 Payment Required
- Empty rows array (minItems: 1 not met) — validation error

## How this service works

Gross profit - Batch calculation: Calculate up to 200 supplied records and locate invalid rows. Metric: Gross profit. 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 response containing gross profit calculated for each input row (revenue minus cost of sales), the formula used, units, and any limitations. Invalid or out-of-range rows are identified. The report covers up to 200 records per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "revenue",
     "cost_of_sales"
    ],
    "properties": {
     "revenue": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": "Amount in a consistent supplied currency and reporting period"
     },
     "cost_of_sales": {
      "type": "number",
      "default": 6000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "revenue": 10000,
     "cost_of_sales": 6000
    },
    {
     "revenue": 11000,
     "cost_of_sales": 6600.000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

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