Skip to main content
POST
Simulate Margin
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.
string
required
Plan code to simulate changes for
number
New price in cents to simulate
number
Percentage change in cost to simulate