Per-unit contribution margin and break-even
ecommerce-profitability_unit-economicsCompute landed cost, total cost per unit, contribution margin, ROI, break-even price and break-even ACoS from caller-supplied product costs and marketplace fees or fee rates. Price $0.03 USDC. POST /api/v1/ecommerce-profitability/unit-economics. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "<currency>",
"pricePerUnit": "<pricePerUnit>",
"costs": "<costs>",
"returnRate": "<returnRate>",
"returnLossPerUnit": "<returnLossPerUnit>"
},
"name": "ecommerce-profitability_unit-economics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| costs | Yes | costs, object. Required. | |
| currency | Yes | currency, string, length 3 to 3. Required. | |
| returnRate | Yes | returnRate, number, from 0 to 1. Required. | |
| pricePerUnit | Yes | pricePerUnit, integer, from any to 9007199254740991. Required. | |
| salesTaxIncluded | No | salesTaxIncluded, boolean. Required. | |
| returnLossPerUnit | Yes | product, integer, from 0 to 9007199254740991. Required. | |
| marketplaceFeeRate | No | marketplaceFeeRate, number, from 0 to any. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roi | No | roi. Number. | |
| sources | No | sources. Array. | |
| currency | No | currency. String. | |
| marginPct | No | marginPct. Number. | |
| landedCost | No | landedCost. Number. | |
| limitations | No | limitations. Array. | |
| breakEvenAcos | No | breakEvenAcos. Number. | |
| breakEvenPrice | No | breakEvenPrice. Number. | |
| marketplaceFees | No | marketplaceFees. Number. | |
| returnsAllowance | No | returnsAllowance. Number. | |
| salesTaxIncluded | No | salesTaxIncluded. Boolean. | |
| totalCostPerUnit | No | totalCostPerUnit. Number. | |
| contributionMargin | No | contributionMargin. Number. |