Is it possible to set or update the expiration date of a product key using an api ?
Yes, this was asked and answered here: https://wyday.com/forum/t/4018/expiry-date-on-api/