This is fake endpoint to describe variant of PUT /api/v2.1/rewards/{id}Ask AIput https://admin.sandbox.vouchery.app/api/v2.1/rewards/{id}#___set_discount_per_itemUpdate a reward.Path ParamsidintegerrequiredReward IDBody ParamsThe object with fields to updatedescriptionstringrequireddiscount_calc_typestringenumrequiredcheapestmost_expensiveall_productsAllowed:cheapestmost_expensiveall_productsdiscount_typestringenumrequiredDiscount type defines if a customer should receive a discount of 10% or $10 on their order.numericpercentageAllowed:numericpercentagediscount_valuedoublerequireditem_conditionsarray of objectsrequiredArray of item conditions, that item should fititem_conditions*ADD objecttitlestringrequiredtypestringenumrequiredSetDiscountPerItemAllowed:SetDiscountPerItemResponses 200Updated object 401Unauthorized error. 403Forbidden error. 422Unprocessable entity error. Validation failed. 500Internal server error. Try again in a few minutes or contact support.Updated over 2 years ago