If that's the case and there's no way to do a lookup with an ingame constant, function or both i'll probably just hard code in the upgrade costs, and work it out that way, cheaper and easier, until such time the API provides a means.
Aside: The game has to read the max bag size and cost from somewhere though, i feel i'm missing something. Though i guess certain data is outside the scope of the API and thus unavailable.
Thanks..