# Vextorium Margin Calculator

> Vextorium Margin Calculator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-28).

Computes pricing metrics including margin, markup, profit, and VAT-inclusive/exclusive prices from cost, price, and quantity inputs

## Facts

- Endpoint: POST https://api.vextorium.com/v1/margin-calculator?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-margin-calculator-2de59d4e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RRpV6UPspXEx9n7ra_TDl

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

Example prompt: If I buy a product for $10 and sell it at $15 for 100 units with 21% VAT, what are my margin percentage, markup percentage, unit profit, total profit, and VAT-inclusive selling price?

## When to prefer this

Choose this endpoint when you need to compute retail pricing analytics — especially when you need to simultaneously derive margin, markup, VAT-adjusted prices, and profit figures in a single call. Ideal for e-commerce agents, accounting tools, or pricing workflows where clarifying the margin/markup distinction matters. Prefer over manual formula chaining when VAT handling and multi-unit profit rollup are both needed.

## Known failure modes

- Missing required body fields returns an error
- Providing zero or negative cost/price values may produce mathematically invalid or infinite results
- Passing string values instead of numbers for numeric fields causes a schema validation error
- Omitting units defaults behavior may vary — endpoint may require explicit unit count

## How this service works

244 pay-per-call data APIs for AI agents: official statistics and economy (ECB, Fed, Eurostat, World Bank, SEC, BOE, INE), crypto prices and sentiment, Spanish public data, compliance (sanctions, VAT, IBAN, LEI), science, weather, web and developer tools and local AI text tools. Pay in USDC via x402.

## Output

Returns a JSON object with margin_pct, markup_pct, unit_profit, total_profit, price_with_vat, price_without_vat, total_revenue_without_vat, and a clarifying note explaining the conceptual difference between margin and markup. All monetary values are expressed as numbers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cost": {
   "type": "number"
  },
  "price": {
   "type": "number"
  },
  "units": {
   "type": "number"
  },
  "vat_pct": {
   "type": "number"
  },
  "margin_pct": {
   "type": "number"
  },
  "markup_pct": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cost": 10,
  "note": "Margin = profit / price. Markup = profit / cost. A 50% markup is only a 33.3% margin.",
  "units": 100,
  "vat_pct": 21,
  "margin_pct": 33.333,
  "markup_pct": 50,
  "unit_profit": 5,
  "total_profit": 500,
  "price_with_vat": 18.15,
  "price_without_vat": 15,
  "total_revenue_without_vat": 1500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-margin-calculator-2de59d4e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
