The reason I suggest to take it back is as a new chameleon keeper it is much easier to take care of a chameleon that is healthy from the start. Breeders often provide much better care than pet stores. If it's been chronically dehydrated most its life it will likely have problems later down the road. If you have only had it one day the cage setup would not be the issue but could have made it worse.