tidy up validation around office transactions api.