Commerce

ROI %, ROAS, profit, and profit margin from revenue and cost (e.g. ad spend).

ROI %, ROAS, profit, and profit margin from revenue and cost (e.g. ad spend).

Payment: x402 ($0.02 USDC on eip155:8453). Call unpaid to receive an HTTP 402 with requirements, then retry with the PAYMENT-SIGNATURE header. Method: profit = revenue - cost; ROI% = profit/cost100; ROAS = revenue/cost; margin% = profit/revenue100

post/v1/commerce/roi

Request

  • Base URL: (relative, and it does not resolve against the document’s source URL)
  • URL: /v1/commerce/roi
  • Auth: none declared

Request body

revenuenumber required
costnumber required

Response

Verified result + provenance (formula, sources, reproducible SHA-256 hash).

Changes

No recorded changes to this operation across all 1 revision of this API.