Update a customer discount
POST
https://api.tamio.com/v2/discounts/customer-discount/update/{uuid}
Updates an existing customer-specific discount. The condition is always "coupon" for customer discounts and cannot be changed. The customer assignment can be updated to a different customer.
Path Parameters
uuid
string*
Body Parameters
uuid
string*
label
string*
customer
string*
UUID of the customer this discount is restricted to
coupon
string*
applies_to
string*
selected_productsall_products
currency
string*
amount_off
integer*
percent_off
number*
shipping_percent_off
number*
shipping_amount_off
integer*
active
boolean
coupon_max_redemptions
integer
expiry_date
string
subscription_discount_duration
string
once
duration
integer
order_condition
string
order_subtotalorder_shippingorder_quantity
rule_amount
integer
products
array of string
Responses
200
Customer discount updated successfully
Customer 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, customer, or product UUID not found10271– DiscountConditionMismatch: cannot change the discount condition type10273– DiscountMissingParameters: required conditional parameters missing (products)
status
integer
error
string
error_code
integer
401
Unauthorized – invalid or missing Bearer token
Unauthorized – invalid or missing Bearer token
status
integer
error
string