Skip to main content
POST
/
margin
/
simulate
Simulate Margin
curl --request POST \
  --url https://api.nozle.app/api/v1/margin/simulate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "plan_code": "<string>",
  "new_price_cents": 123,
  "cost_change_percent": 123
}
'
Simulate margin impact of pricing or cost changes before applying them. Auth: sk_ only
All margin endpoints require a secret key (sk_). These endpoints expose cost data that should never be visible to your end users.
plan_code
string
required
Plan code to simulate changes for
new_price_cents
number
New price in cents to simulate
cost_change_percent
number
Percentage change in cost to simulate