Skip to content
Docs
Reference

VERSION_MISMATCH

The record has changed since you read it

The record has changed since you read it

HTTP status 412 Precondition Failed, code VERSION_MISMATCH.

What it means#

The update named the version of the record it was based on (If-Match or expectedVersion), and the record is no longer at that version: someone or something else has changed it since. Nothing was written. The error carries currentVersion. Every update of the record moves its version, including the platform's own (a payment landing on an order, for example).

What to do#

Read the record again, apply your change to what it holds now, and send it with the new version. Do not resend the same request with the current version without looking: that overwrites the change you were warned about.

On the wire#

Every error response carrying this code names this page in error.moreInfo, with the request id in the query string. See Error codes for the response shape and the list of every code.