Catalog/logi-cost-per-unit

Calculators

Logistics cost-per-unit (cost-to-serve) calculator API

Compute cost per unit shipped = (transport + warehousing + handling) / unitsShipped with a cost-component breakdown — the cost-to-serve metric for unit-economics decisions. Answers 'logistics cost per unit','cost to serve per order','total fulfillment cost per item'.

Price$0.01per request
MethodPOST
Route/v1/calc/logi-cost-per-unit
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calclogisticscost-to-serveunit-economicsfulfillmentcost-per-unitkpisupply-chain
API URLhttps://x402.hexl.dev/v1/calc/logi-cost-per-unit
Integration docs
Example request
{
  "transportCost": 8000,
  "warehousingCost": 3000,
  "handlingCost": 1500,
  "unitsShipped": 5000
}
Example response
{
  "formula": "costPerUnit = (transport + warehousing + handling) / unitsShipped",
  "totalLogisticsCost": 12500,
  "costPerUnit": 2.5,
  "breakdown": [
    {
      "factor": "transport",
      "value": 8000
    },
    {
      "factor": "warehousing",
      "value": 3000
    },
    {
      "factor": "handling",
      "value": 1500
    }
  ],
  "inputs": {
    "transportCost": 8000,
    "warehousingCost": 3000,
    "handlingCost": 1500,
    "unitsShipped": 5000
  }
}
Input schema
{
  "type": "object",
  "required": [
    "transportCost",
    "unitsShipped"
  ],
  "properties": {
    "transportCost": {
      "type": "number",
      "examples": [
        8000
      ]
    },
    "warehousingCost": {
      "type": "number",
      "examples": [
        3000
      ]
    },
    "handlingCost": {
      "type": "number",
      "examples": [
        1500
      ]
    },
    "unitsShipped": {
      "type": "number",
      "examples": [
        5000
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}