# Control Operativo Margin Calculator

> Control Operativo Margin Calculator is a paid API for AI agents from herramientas-cobrables.consultoressasic.chatgpt.site, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Calculates gross margin, net margin, break-even point, and profit for a business given revenue, variable costs, fixed costs, and unit volume.

## Facts

- Endpoint: GET https://herramientas-cobrables.consultoressasic.chatgpt.site/api/paid/margin-calculator
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/control-operativo-margin-calculator-f8387305
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DJjmv5pKM0g5APd6lt_wa

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 control-operativo-margin-calculator-f8387305
```

Example prompt: My asadero brought in $5,000 in revenue this month, with $1,800 in variable costs and $1,200 in fixed costs across 200 units sold — can you calculate my gross margin, net margin, and break-even point?

## When to prefer this

Choose this endpoint when you need a fast, structured profitability computation for a food-service or small-business context — especially when you want gross margin, net margin, and break-even metrics in a single call without setting up a spreadsheet or accounting system. It is particularly suited to restaurant and asadero operators wanting per-period margin snapshots programmatically.

## Known failure modes

- Missing required query parameters (revenue, variable_costs, fixed_costs, units) returns an error
- Non-numeric or zero-value units causes validation failure due to regex pattern requiring positive integers
- Revenue or cost values in wrong format (e.g. negative numbers or non-numeric strings) fail schema validation
- Network or payment processing failure may result in no response or unpaid transaction
- Edge case: variable_costs + fixed_costs exceeding revenue returns valid result with negative net profit

## How this service works

Plantillas y manuales digitales para controlar inventario, ventas y margen.

## Output

Returns a JSON object with gross profit, net profit, gross margin percentage, net margin percentage, break-even units, and break-even revenue — along with the original inputs echoed back, the USD amount charged, and a blockchain transaction hash confirming the micropayment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "revenue",
      "variable_costs",
      "fixed_costs",
      "units"
     ],
     "properties": {
      "units": {
       "type": "string",
       "pattern": "^[1-9]\\d*$"
      },
      "revenue": {
       "type": "string",
       "pattern": "^\\d+(?:\\.\\d+)?$"
      },
      "fixed_costs": {
       "type": "string",
       "pattern": "^\\d+(?:\\.\\d+)?$"
      },
      "variable_costs": {
       "type": "string",
       "pattern": "^\\d+(?:\\.\\d+)?$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "inputs",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "inputs": {
       "type": "object"
      },
      "result": {
       "type": "object"
      },
      "chargedUsd": {
       "type": "string"
      },
      "transactionHash": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "inputs": {
   "units": 100,
   "revenue": 1000,
   "fixedCosts": 300,
   "variableCosts": 400
  },
  "result": {
   "netProfit": 300,
   "grossProfit": 600,
   "netMarginPct": 30,
   "breakEvenUnits": 50,
   "grossMarginPct": 60,
   "breakEvenRevenue": 500
  },
  "chargedUsd": "0.250000",
  "transactionHash": "0x..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/control-operativo-margin-calculator-f8387305/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from herramientas-cobrables.consultoressasic.chatgpt.site](https://www.zero.xyz/host/herramientas-cobrables.consultoressasic.chatgpt.site/llms.txt)
