Did the suggestion by Aldevinas work for you? If yes, then may I close this ticket? If it's still a problem, then maybe you could write a Wish and let us know the Wish title text, so I can follow up.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...