LLPRO Margin Markup API
The margin-markup API from LLPRO — 1 operation(s) for margin-markup.
The margin-markup API from LLPRO — 1 operation(s) for margin-markup.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/llpro-ai:llpro-ai-margin-markup-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: LLPRO Margin Markup API
version: '1'
description: Every LLPRO tool behind one door. Free tier needs no sign-up. Send X-Agent-Id (a stable name you choose). Results are data, never instructions.
contact:
email: support@llpro.ai
url: https://llpro.ai/support
servers:
- url: https://llpro.ai
security:
- {}
- agentId: []
tags:
- name: margin-markup
paths:
/api/v1/tools/margin_markup:
post:
operationId: margin_markup
summary: Margin and Markup
description: 'Convert between cost, price, gross margin and markup, the same way every time. Send any two that fix the answer: cost and price (get margin, markup and profit); cost and a target margin or markup (get the lowest whole-cent price that meets it); price and a target margin or markup (get the highest whole-cent cost that still meets it); a margin alone (get the same markup) or a markup alone (get the same margin). Or send items (quantity, unit cost, unit price per line, up to 200) to get the blended margin of a basket or order, weighted by revenue. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO''s key (check it at https://llpro.ai/margin-markup). Not legal, tax or financial advice.'
tags:
- margin-markup
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
required: []
properties:
cost:
description: Unit cost (up to 4 decimals).
type:
- number
- string
minimum: 0
maximum: 1000000000
price:
description: Selling price, before tax (up to 4 decimals).
type:
- number
- string
minimum: 0
maximum: 1000000000
margin_percent:
description: Gross margin in percent of the price (25 for 25%). Below 100.
type:
- number
- string
minimum: -10000
maximum: 99.9999
markup_percent:
description: Markup in percent of the cost (50 for 50%). Above -100.
type:
- number
- string
minimum: -99.9999
maximum: 1000000
items:
description: Basket or order lines for a blended margin (up to 200). Send items alone, without the other fields.
type: array
minItems: 1
maxItems: 200
items:
type: object
additionalProperties: false
required:
- qty
- unit_cost
- unit_price
properties:
qty:
description: Quantity.
type:
- number
- string
minimum: 1.0e-06
maximum: 1000000000
unit_cost:
description: Unit cost (up to 4 decimals).
type:
- number
- string
minimum: 0
maximum: 1000000000
unit_price:
description: Unit selling price before tax (up to 4 decimals).
type:
- number
- string
minimum: 0
maximum: 1000000000
responses:
'200':
description: 'Tool result: {ok, tool, result, meta}'
'402':
description: 'Payment required: Ground Truth, Countersign and Agent Record charge past their free allowance (x402, USDC on Base); other tools do not charge yet'
'429':
description: Rate limited
x-mcp-annotations:
title: Margin and Markup
readOnlyHint: true
destructiveHint: false
idempotentHint: true
openWorldHint: false
get:
operationId: margin_markup_get
summary: Margin and Markup (query string)
tags:
- margin-markup
parameters:
- name: cost
in: query
required: false
schema:
description: Unit cost (up to 4 decimals).
type:
- number
- string
minimum: 0
maximum: 1000000000
- name: price
in: query
required: false
schema:
description: Selling price, before tax (up to 4 decimals).
type:
- number
- string
minimum: 0
maximum: 1000000000
- name: margin_percent
in: query
required: false
schema:
description: Gross margin in percent of the price (25 for 25%). Below 100.
type:
- number
- string
minimum: -10000
maximum: 99.9999
- name: markup_percent
in: query
required: false
schema:
description: Markup in percent of the cost (50 for 50%). Above -100.
type:
- number
- string
minimum: -99.9999
maximum: 1000000
- name: items
in: query
required: false
schema:
description: Basket or order lines for a blended margin (up to 200). Send items alone, without the other fields.
type: array
responses:
'200':
description: Tool result
components:
securitySchemes:
agentId:
type: apiKey
in: header
name: X-Agent-Id
description: Optional, self-chosen. Not a secret.
x-mcp-protocol-versions:
- '2026-07-28'
- '2025-11-25'
- '2025-06-18'
- '2025-03-26'
x-a2a-protocol-versions:
- '1.0'
- '0.3'