api_order_profit
Read-onlyIdempotent
Calculate ecommerce, wholesale and viral-order contribution margin from selling price, cost, delivery, payment/platform fees, ads and units. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orders | No | Number of orders, default 1 | |
| unit_cost | Yes | Goods cost per order | |
| ads_per_order | No | Ad spend attributed per order, default 0 | |
| selling_price | Yes | Selling price per fulfilled order | |
| shipping_cost | No | Shipping and packing cost per order, default 0 | |
| platform_fee_pct | No | Percentage platform/payment fee on selling price, default 0 |