Can I use the OptionRefId code to implement some logic in my API?

No, we don't recommend using the OptionRefId to implement logic in your system, as this OptionRefId can be different depending on the Supplier.