POST
/v1/commerce/product-profit1 credit / callProduct contribution profit
Calculate retained revenue, expected return effects, percentage fees, contribution profit, margin and break-even selling price.
| Parameter | Type | Required | Description |
|---|---|---|---|
| sellingPrice | number | Yes | Before-tax selling price. |
| productCost | number | Yes | Product cost per placed order. |
| inboundShipping | number | No | Inbound shipping cost. Default: 0. |
| importDuty | number | No | Import duty allocated per order. Default: 0. |
| packaging | number | No | Packaging cost. Default: 0. |
| marketplaceRate | number | No | Marketplace fee percentage (0-100). Default: 0. |
| paymentRate | number | No | Payment fee percentage (0-100). Default: 0. |
| fixedFee | number | No | Fixed transaction fee. Default: 0. |
| fulfillment | number | No | Fulfilment cost. Default: 0. |
| outboundShipping | number | No | Outbound shipping cost. Default: 0. |
| advertising | number | No | Advertising cost allocated per order. Default: 0. |
| otherCost | number | No | Other variable cost. Default: 0. |
| returnRate | number | No | Expected return rate percentage (0-100). Default: 0. |
| returnHandling | number | No | Handling cost per returned order. Default: 0. |
| recoveryValue | number | No | Recovered value per returned unit. Default: 0. |
| feesOnGrossRevenue | boolean | No | Apply percentage fees to gross rather than expected retained revenue. Default: false. |
Request
curl -X POST https://toolsonduty.com/api/v1/commerce/product-profit \
-H "Authorization: ******" \
-H "Content-Type: application/json" \
-d '{"sellingPrice":79,"productCost":24,"marketplaceRate":14,"paymentRate":2.5,"returnRate":6,"fulfillment":5,"outboundShipping":4}'Response
{
"ok": true,
"data": {
"contributionProfit": 25.87,
"contributionMargin": 34.85
}
}