Adds a new budget for a specific customer.
The ID of the customer.
The amount to allocate to the budget.
Optional
expiresOnUtc: objectOptional. The expiration date of the budget. Defaults to null.
Optional
sendEmail: booleanOptional. Indicates whether to send an email notification. Defaults to false
.
Optional
associatedOpvId: objectOptional. The associated Order Product Variant ID. Defaults to null.
The newly created budget as a BudgetObject
.
Adds budgets in bulk for multiple customers.
An array of customer IDs.
The amount to allocate to each budget.
Optional
expiresOnUtc: objectOptional. The expiration date of the budgets. Defaults to null.
Optional
sendEmail: booleanOptional. Indicates whether to send email notifications. Defaults to false
.
An array of budget IDs as ArrayInstance
.
Clears a specific budget by ID.
The ID of the budget to clear.
Retrieves the available budgets for a specific customer.
Retrieves the total available budget for a specific customer.
The customer object to retrieve the budget for.
The available budget total as a NumberInstance
.
Interface representing the operations related to budgets within the MegaScript context.