Okay, that is not the correct call to make to the hub. If you want a listing of all devices it should be:
http://{hub}/apps/api/34/devices/?access_token={access_token}
I don't now what you were putting in for "params" but that isn't a properly formatted makerAPI call. If you are passing a specific device's ID number in the params field, then the exact same ID that you passed to the hub will be what you get back. It can't be any different because that is how the hub identifies which devices attributes to return.
Also, the ID number is a sequential number for the device in your hub's database. It literally cannot change unless you rejoin the device to the hub. If it did, all of your automations would break every time that happened.
Can you give an example of a specific call you made to the maker api where the returned value for ID was different than the one you requested?