When you mean id, you mean the key value right?
If yes, then all you need to do is call the Gateway Key API with your custom value appended at the end of the url. You can also do the same thing with our Dashboard API, if that is your preference. The dashboard API can be used as a guide for the gateway API.
Hope this helps.