Create a Budget

Create a new budget with a name, average daily limit, weight function, and relevant discount IDs. The budget_id is generated by the system after creation.

Weight Function Explanation:
The weight function determines how discounts are applied to the budget when a discount is triggered. It is defined as a mathematical expression, with a default value of w * x, where:

  • w: Represents the discount-specific weight, which adjusts the impact of the discount based on its priority.
  • x: Represents a random draw from a beta distribution, introducing variability that captures uncertainty.

The product of these factors (w multiplied by x) determines the effective discount applied to the budget, allowing for dynamic adjustments that balance fixed priorities with stochastic variation.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
number
required
array | null

List of discount IDs relevant to this budget, which can be applied to adjust pricing or provide promotional offers.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json