Skip to main content

Concurrency protection features for inventory and refund mutations

This changelog consolidates all updates related to concurrency protection features for inventory and refund mutations.

Compare and swap changes

To prevent race conditions in inventory updates, we're introducing compare and swap protection through the changeFromQuantity field across multiple API versions:

Idempotency changes

To prevent duplicate operations when requests are retried, we're introducing idempotency protection through the idempotent directive:

Why we made these changes

Most inventory adjustments lack concurrency and idempotency protection, leaving systems vulnerable to race conditions, duplicate updates, and integrity issues—especially when commands are retried due to network disruptions. To solve this we will standardize concurrency and idempotency checks across Inventory APIs.

For more information, refer to our idempotency and compare and swap docs.

Was this section helpful?