Operation Id:
clients/prices/discounts/put [Official Documentaction]
Methods
- customers Object
- discount_type String
- discount_operating String
- discount_parameters Array<Object>
- parameter_type String
- parameter_value String
- discount_value Number
Examples
This function applies a discount of 10% to the customers with numbers 9, using a simple discount type and summing it with other discounts to orders.
Loading editor...
const result = await idosellRequest.putClientsPricesDiscounts .discount_type("simple") .customers({ "customers_numbers": [9]}) .discount_operating("sum_with_other_discounts_to_orders") .discount_value(10) .exec();