Hello @miguel-barbosa
We provide a feature in admin panel for this you just need to Create a attribute with ID and then assign that ID attribute then choose option type text and choose input validation number and it will work for you
Check the below link for more reference
https://docs.bagisto.com/2.2.0/attribute/product-attribute.html