# Net Margin Batch Calculator

> Net Margin 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 net margin percentage for up to 200 rows of supplied net profit and revenue figures, flagging invalid rows and returning results with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-net-margin-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/net-margin-batch-calculator-2e159136
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DCBgU_wcoBhoKq_6uB1xM

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-margin-batch-calculator-2e159136 -d '<json body>'
```

Example prompt: Can you calculate the net margin for these 5 companies — their revenue and net profit figures are: [(500000, 45000), (1200000, 80000), (300000, -15000), (750000, 120000), (900000, 60000)]? I need the formula and any invalid rows flagged too.

## When to prefer this

Choose this endpoint when you need to compute net margin for multiple records at once (1–200 rows) in a single API call, want automatic invalid-row detection, and need the formula and units returned alongside results for audit or reporting purposes. Ideal for financial analysis workflows, batch reporting, or portfolio screening where real-time market data is not required and all figures are already known.

## Known failure modes

- Row missing required net_profit or revenue field — row flagged as invalid
- Revenue value of zero or below minimum (exclusiveMinimum 0) — invalid row flagged
- Batch exceeds 200 rows — request rejected
- Values outside allowed range (revenue > 1 trillion, net_profit outside ±1 trillion) — validation error
- Malformed JSON input — request error
- Payment not processed — 402 Payment Required response

## How this service works

Net margin - Batch calculation: Calculate up to 200 supplied records and locate invalid rows. Metric: Net margin. 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 the net margin percentage for each submitted row (calculated as net_profit / revenue × 100), the formula used, units, any limitations of the calculation, 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": [
     "net_profit",
     "revenue"
    ],
    "properties": {
     "revenue": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "net_profit": {
      "type": "number",
      "default": 2000,
      "maximum": 1000000000000,
      "minimum": -1000000000000,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "revenue": 10000,
     "net_profit": 2000
    },
    {
     "revenue": 11000,
     "net_profit": 2200
    }
   ],
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/net-margin-batch-calculator-2e159136/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)
