payload fix

version should be null by default, and null fields should not be sent in the payload.