Create a new voucherCopy Pagepost https://api.ecommerceapi.uk/v1/vouchersCreates a new 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.truefalseResponse 201Voucher created successfully.Updated about 1 year ago