Update a voucherCopy Pageput https://api.ecommerceapi.uk/v1/vouchers/{id}Updates an existing voucher by ID.Path ParamsidintegerrequiredThe unique identifier of the voucher.Body ParamscodestringThe voucher code.discountobjectdiscount objectvalidFromstringThe date and time the voucher becomes valid.expiresOnstringThe date and time the voucher expires.targetobjecttarget objectactivebooleanIndicates whether the voucher is active.truefalsedynamicAmountbooleanIndicates if the discount amount is dynamic.truefalseautomaticbooleanIndicates if the voucher is automatically applied.truefalseusedintegerNumber of times the voucher has been used.commentsstringComments or notes for the voucher.Response 200Voucher updated successfully.Updated over 1 year ago Get a specific voucherDelete a voucherDid this page help you?YesNo