My mistake. I don't read this:
"Inactive status will remove the company from the list of companies by login, but the data will remain present in the shared registers and payments for licence will still need to be made"
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 ...