Update a product discount
POST
https://api.tamio.com/v2/discounts/product-discount/update/{uuid}
Updates an existing product discount. The discount condition cannot be changed (e.g., a coupon discount cannot be changed to an automatic discount).
Path Parameters
uuid
string*
Body Parameters
uuid
string*
label
string*
condition
string
all_ordersitem_subtotalitem_quantitycouponvouchers
applies_to
string*
selected_productsselected_categoriesall_products
currency
string*
amount_off
integer*
percent_off
number*
shipping_percent_off
number*
shipping_amount_off
integer*
active
boolean
coupon
string
coupon_max_redemptions
integer
block_affiliates
boolean
voucher_method
string
autogeneratedlist
number_of_vouchers
integer
voucher_prefix
string
vouchers
array of string
rule_amount
integer
order_condition
string
order_subtotalorder_shippingorder_quantity
expiry_date
string
subscription_discount_duration
string
onceforeverrepeating
number_of_months
integer
duration
integer
products
array of string
categories
object
destinations
array of string
payments
array of string
Responses
200
Product discount updated successfully
Product discount updated successfully
status
integer
discount
Discount
400
Validation or business-logic error. Possible `error_code` values:
Validation or business-logic error. Possible error_code values:
1002– ResourceNotFound: discount or product UUID not found10271– DiscountConditionMismatch: cannot change the discount condition type10273– DiscountMissingParameters: required conditional parameters missing (products/categories)
status
integer
error
string
error_code
integer
401
Unauthorized – invalid or missing Bearer token
Unauthorized – invalid or missing Bearer token
status
integer
error
string