Catalog/ecom-take-rate

Calculators

Marketplace take-rate net payout API

Compute net payout for any marketplace via a generic take rate: net = salePrice × (1 − takeRate) − flatFee, with commission, fee%, and optional profit/margin. Deterministic. Answers 'what is my net payout at a 20% take rate','marketplace commission and net payout','seller profit after platform take rate'.

Price$0.01per request
MethodPOST
Route/v1/calc/ecom-take-rate
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
ecomtake-ratemarketplacecommissionnet-payoutfeessellercalc
API URLhttps://x402.hexl.dev/v1/calc/ecom-take-rate
Integration docs
Example request
{
  "salePrice": 100,
  "takeRate": 0.2,
  "flatFee": 0.3,
  "unitCost": 40
}
Example response
{
  "formula": "net = salePrice × (1 − takeRate) − flatFee",
  "salePrice": 100,
  "takeRate": 0.2,
  "flatFee": 0.3,
  "commission": 20,
  "totalFees": 20.3,
  "feePercent": 20.3,
  "netPayout": 79.7,
  "unitCost": 40,
  "profitPerUnit": 39.7,
  "marginPercent": 39.7
}
Input schema
{
  "type": "object",
  "required": [
    "salePrice",
    "takeRate"
  ],
  "properties": {
    "salePrice": {
      "type": "number",
      "examples": [
        100
      ]
    },
    "takeRate": {
      "type": "number",
      "description": "Decimal 0-1 (e.g. 0.2 = 20%)",
      "examples": [
        0.2
      ]
    },
    "flatFee": {
      "type": "number",
      "examples": [
        0.3
      ]
    },
    "unitCost": {
      "type": "number",
      "examples": [
        40
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}