Head inside the Ship and speak to the character positioned deep within it. He handles vehicles.
There are two requirements: you must be at least level 11, and you need 2,500 taros — the game's currency. Below either threshold the purchase will not go through.
Taros come from defeating Fusion enemies and completing quests, with quests paying considerably more. If you are short, running a few story missions in an area you have already cleared is the quickest way to close the gap.
Upgrades are handled at the same location, so it is worth checking what is available once you have the level and the funds.