A Gaia Cash code is simply the redemption code you receive when you order Gaia Cash for Gaia Online. Entering it on the site credits the amount to your account, which you can then spend on the site's virtual items.
So the answer to "how do I get one" is straightforward: you order it through the official Gaia Online channels. Codes offered by third parties are best avoided, since they are a common source of scams.