api roundtrip with transaction. Also returning exceptions