{"uid":"cap_RRpV6UPspXEx9n7ra_TDl","slug":"vextorium-margin-calculator-2de59d4e","name":"Vextorium Margin Calculator","description":"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.","url":"https://api.vextorium.com/v1/margin-calculator?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"number"},"price":{"type":"number"},"units":{"type":"number"},"vat_pct":{"type":"number"},"margin_pct":{"type":"number"},"markup_pct":{"type":"number"}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tEaZ9TQcZPRPJwiZm17Ks","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes pricing metrics including margin, markup, profit, and VAT-inclusive/exclusive prices from cost, price, and quantity inputs","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"E-commerce product pricing check","prompt":"I'm selling a product that costs me $8 to source, and I want to price it at $12 for 50 units with 20% VAT — can you tell me my margin, markup, unit profit, total profit, and the price customers will actually pay including VAT?"},{"title":"Retail margin vs markup clarification","prompt":"I keep confusing margin and markup — if my cost is $25 and my selling price is $40 for 200 units with no VAT, can you compute both my margin percentage and markup percentage so I understand the difference?"},{"title":"Reverse-engineer price from target margin","prompt":"I want a 40% profit margin on a product that costs me $60 per unit for 500 units with 21% VAT — what should my selling price be, and what does that work out to with VAT included?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T09:12:08.348Z","isFirstParty":false,"canonicalSlug":"vextorium-margin-calculator-2de59d4e"}