Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Best Practices for Concurrency control/Stale objects

Started by Barry Denson -   in API Endpoints

Hi All

Can anyone suggest the best strategy for handling concurrency/Stale objects.

That is, if I try to POST and update to an invoice for example, and it has been updated since my last modification, how should I handle this.

do I send an IF-UNMODIFIED tag and then handle the response.

if I get an error, how do I refresh my record without losing my changes?