Symptoms
- Your integration sends an inventory adjustment, the request succeeds and returns a
transaction_id, but an immediate read still shows the previous quantity. - A stock check right after a sync reports a mismatch, so your job flags the SKU or sends the same update again.
- Your ERP or warehouse system shows the new count, the control panel catches up a little later, and the storefront may still look different.
- A sync that relies on the product
date_modifiedfield never notices that stock changed.
Cause
BigCommerce's Inventory API is asynchronous. A successful write means the adjustment was accepted, not that every read has already caught up. The Inventory overview says there may be a short delay before data is updated after the endpoints are called, so a read made straight after an adjustment can return the unchanged level. The docs do not say how long the delay lasts, so treat the timing as variable.
Several other causes produce the same symptom and are worth ruling out:
- Wrong item or location. Stock is tracked per location, and adjustment requests identify each item by
location_idandvariant_id. If you write to location 2 and read location 1, or read a different variant than the one you adjusted, you will see the old number. - Reading through the Catalog API. Stock levels from the Catalog API reflect the total inventory the merchant has available to sell (for a product, including its variants), not one location's stock, so the figure can differ from what you wrote to a single location.
- Relying on
date_modified. An adjustment processed by the Inventory API, including stock edits made from the Products list in the control panel, does not update the product'sdate_modifiedtimestamp. - A rejected relative adjustment. A relative adjustment that would take stock below the safety buffer errors and leaves stock unchanged. Under concurrent load, BigCommerce processes adjustments to the same item at the same location in a strict order, so one of several overlapping relative requests can fail.
- Overlapping bulk jobs. BigCommerce warns that running Inventory API bulk work in parallel with Catalog or Orders API bulk work can cause unpredictable, incorrect calculations.
Resolution
- Do not resend the update yet. Resending a relative adjustment while the first is still processing can double count. Store the
transaction_idfrom the write response with the SKU, location and quantity you sent. - Check the write response. Confirm you received a success status and no error for any item. A relative adjustment that hit the safety buffer fails and changes nothing.
- Read the exact item at the exact location. Use the location-level read, for example
GET /v3/inventory/locations/{location_id}/items?variant_id:in={variant_id}, orGET /v3/inventory/itemsfiltered withlocation_id:inplusvariant_id:inorsku:in. Compare against the variant and location you wrote to. - Wait, then read again. Re-read after a short delay and back off between attempts instead of polling in a tight loop. Polling heavily adds load and can push you into rate limits.
- Prefer absolute adjustments for sync jobs. BigCommerce recommends absolute adjustments (
PUT /v3/inventory/adjustments/absolute) as the default. Sending the full count from your system of record is safe to repeat, because a second identical absolute adjustment sets the same number. Keep relative adjustments (POST /v3/inventory/adjustments/relative) for cases where you do not know the absolute quantity. - Serialize and batch. Wait for each request to return a 200 before sending the next, send up to 2,000 items per request, and group bulk absolute adjustments by location.
- Verify the fix. Run one SKU at one location: send an absolute adjustment, record the
transaction_id, wait, and read that location. When the number matches, check the product page on the storefront. If reads still disagree long after the write, contact BigCommerce support with the store hash,transaction_id, SKU or variant ID, location ID and request timestamps.
How to prevent it
- Build your sync around eventual consistency. Write, record the transaction, and verify later, rather than reading back immediately.
- Detect stock changes with the
store/product/inventory/updatedwebhook instead ofdate_modified. Usestore/product/updatedfor other product changes. - Do not schedule Inventory API bulk jobs at the same time as large Catalog or Orders API jobs.
- Remember that the Inventory API is not channel aware. A bulk update can change stock for products that are not on the storefront you meant to affect.
B2B and ERP angle
Most ERP connectors treat the ERP as the source of truth for quantities, which fits absolute adjustments well: push the ERP count per SKU and location on a schedule and let the next run correct any miss. Map each ERP warehouse to a BigCommerce location ID, and map ERP item numbers to variant SKUs, not parent products.
Also check how the storefront counts stock. The Locations guide explains that by default Stencil storefronts use stock from the default location only, so a product can show out of stock even with inventory elsewhere. Aggregated stock across locations is available by request through BigCommerce support. If the API read is correct but the storefront is not, see storefront availability differs from the quantity in the control panel.
Related problems to check
Related articles
- Storefront availability differs from the quantity in the control panel
- A connector or import job hits API rate limits
- An option needs its own SKU or a different product image
- An order update adds a second product line
- Adding variants to existing products fails in the modern CSV importer
More in the BigCommerce knowledge base, including every article on Integrations and account operations.