Itīs up to the specific broker plugin implementation that you are using.
For the IG plugin for example, I added support for SET_ORDERTEXT which you can use similarly to how MagicNumber work in MT4.