NR-57 : Basic REST server components for handling gateway

Fixed transaction issues based on the isSuccess flag.