What this fails to answer is why there needs to be a back and forth between the client and the server, this is just wasted time and bandwidth
I’m assuming the client will not change those values so instead of doing 4 rounds of communication, the server should just perform all of this logic internally and return either an error or the queried value, or add a flag to accept let the server handle everything other than these rounds of validation that the client is potentially doing?