A customer orders an out-of-stock product or sees the wrong price. You correct the product listing manually, but the old values return after the next sync. This does not necessarily mean your MoySklad website sync is broken: it may be transferring data as configured, but using the wrong rules.
First, decide which system should control the price and available quantity. Then trace one product from MoySklad to the storefront. Compare its identifier, variant, warehouse, price type, reservations, and transfer time. A single mismatched number cannot establish the cause; the answer depends on the integration module and its configuration.
Define the values you expect
A discrepancy is an error when the website shows a value that does not follow the store’s rules. For example, total stock across all warehouses can legitimately differ from the quantity available for sale at the online store’s warehouse.
Before changing any settings, document:
- Price source: Whether MoySklad or the website controls prices, which price type should be used, and whether the website can have separate promotions.
- Stock source: Which warehouses supply the store and whether reserved stock should be excluded.
- Availability rules: Whether customers can order when the quantity is zero and whether backorders are allowed.
- Sync direction: Which fields are sent to the website and which are sent back to MoySklad.
- Acceptable delay: How often the sync is configured to run and how long processing usually takes.
If MoySklad controls the price, a manual correction on the website will likely be overwritten. That is not a failure in itself. If a separate website price should be retained, check whether your integration supports that exception.
Choose one product to investigate
Do not run a full catalog sync as a trial-and-error test. Choose one product with a discrepancy and one that is correct for comparison. Record their values and the time you observed them before making changes.
- Record the website product URL, SKU, and internal identifiers available in both systems.
- Identify the specific variant: size, color, or another option.
- Record the price, price type, warehouse, stock level, reserved quantity, and expected available quantity.
- Compare the website’s admin data with the public product page, selecting the same variant in both places.
- Find the sync module’s name and version, how it is triggered, and the time this product was last processed, if your module and version record it.
Section names, logging detail, and per-product timestamps vary by module and version; verify what your implementation supports in its settings or documentation. A general message that the sync completed does not confirm that the selected product was processed.
Trace the data through the integration
1. Product identifier and variant
Compare the item the integration receives from MoySklad with the product listing it updates on the website. A product name is not a reliable match: names can be duplicated or changed. An SKU is not always unique either. Find out which matching key your module actually uses.
For example, MoySklad entity payloads can include id, meta.href, and externalCode. These are examples of fields to inspect, not a recommendation to use any one of them as the matching key. A module might store the MoySklad identifier against a WooCommerce product or variation ID, or use a different mapping. Confirm the entity type as well: the parent product and its variant are not interchangeable.
If data lands on the wrong listing, check for duplicates and saved links between the two systems. If the product’s price updates but the selected size does not, check the link to the variant. Matching names do not confirm that the mapping is correct.
Do not delete product listings or recreate links without checking first: doing so can affect page URLs, order history, and future updates.
2. Warehouse, reservations, and available quantity
Check which warehouses are included in the sync and which figure the module uses: physical stock, available stock, or another measure. Compare it with the same measure in MoySklad, not a total from a different report.
In stock-report responses, fields such as stock and reserve are useful starting points for inspection. Their availability and interpretation depend on the report, request parameters, and API version. Your module may also calculate its own available quantity. Confirm the meaning of the actual field being transferred rather than assuming that every quantity represents stock available for sale.
For example, suppose the relevant warehouse holds 8 units, of which 3 are reserved. If the store’s rule is to sell stock minus reservations, the expected available quantity is 5. The calculation depends on the figure being transferred, however: do not subtract reservations again if they are already reflected in the available quantity.
If the website receives total stock when it should sell from only one warehouse, the data selection needs to change. If the expected quantity is transferred but customers can still order at zero, check the website’s sales rules.
In WooCommerce, stock management, stock status, and backorder settings can affect purchasing. For a variable product, check the selected variation and whether stock is managed at the parent or variation level. Exact behavior depends on your WooCommerce version, configuration, extensions, and custom code, so verify it on your own installation rather than relying on the quantity alone.
3. Price type and website calculations
Compare what the amounts represent, not just the numbers. MoySklad can have multiple price types, while a website can have regular and sale prices. Find out which price type the integration receives and which website field it writes to.
For example, a MoySklad product payload can contain a salePrices array with entries containing value, currency, and priceType. Inspect the selected price type’s identifier or reference, not just its display name. Confirm the amount’s units and currency in the documentation for the API version and endpoint your integration uses before comparing it with the storefront price. Middleware may transform these fields before they reach the website.
If the received data already contains an unexpected amount, check the selected price type. Then trace any currency conversion, markup, or rounding through MoySklad, middleware, and the website to establish where it occurs. Do not assume your module supports configurable conversions.
If the amount is correct in the website admin but the customer sees another price, check active promotions, discount rules, and how taxes are displayed. Compare the same variant under the same viewing conditions, such as while logged out and without a coupon applied. Otherwise, the difference may result from pricing rules rather than a sync error.
4. Processing time and result
Compare when the value changed in MoySklad, when the sync started, and when the value was actually written to the website. Account for time zones in the logs. A change made after the last run does not by itself prove a failure: it may not have been included in that cycle.
- No run after the change: Check the schedule, background task mechanism, or notification delivery, depending on how the integration works.
- A run occurred, but the product was not selected: Check export filters, product links, and the criteria used to select changed items.
- The product was selected, but processing failed: Investigate the error. Possible causes include access problems, request limits, temporary unavailability, or a data-processing error.
- The value was written, then changed again: Look for another source writing to the same field, such as another module, an import, a manual edit, or a scheduled task using old data.
For API failures, look for HTTP 429 responses indicating request throttling and 5xx responses indicating server-side errors. Check the applicable rate limits or quotas and whether the module uses bounded retries with increasing delays, such as exponential backoff. Where provided, retry guidance from the API should be respected. Do not repeatedly launch full syncs to work around throttling.
With access errors, verify that authorization is valid and that the integration has the permissions required for its actual operations. Use the module vendor’s permission requirements as a starting point rather than granting maximum access.
Share diagnostic logs safely
Website owners can usually collect product examples, module details, and timestamps without changing the integration. Raw API inspection, database tracing, and retry analysis may require a developer. Before sending diagnostic material to a vendor or developer:
- Remove passwords, tokens, cookies, and complete
Authorizationheader values. Check URLs and request bodies for credentials too. - Remove customer names, email addresses, phone numbers, addresses, and payment data.
- Replace customer identifiers, order numbers, and sensitive internal identifiers with consistent placeholders so related entries can still be matched.
- Share only the relevant time window and fields. Preserve error codes, timestamps, and anonymized mapping references where needed.
- Review the redacted copy, including screenshots and attachments, then share it through an agreed private support portal or secure transfer channel—not a public forum or unrestricted link.
Separate sync errors from display errors
If the correct value is already stored in the website admin but the storefront still shows an old one, first compare the same product and variant under the same pricing conditions. Then check the caching layers actually used by your site:
- WordPress page cache: Use the caching plugin or hosting panel to purge the affected product URL.
- Persistent object cache: Redis or Memcached may hold cached application data. Have a developer check the relevant invalidation path; a site-wide flush is not a routine first step.
- WooCommerce transients: Where relevant, use the supported WooCommerce or integration tools to invalidate cached product data. Tool names and scope vary by version; avoid deleting arbitrary database entries.
- CDN or reverse proxy: Purge the affected URL through the CDN or a proxy such as Varnish, if configured.
- Headless storefront cache: If the frontend is separate from WordPress, check cached API responses, server-rendered pages, and any static regeneration process as well.
Use targeted invalidation where your stack supports it. Clearing every cache can increase server load and hide a broken invalidation process without fixing it.
If the wrong number is already stored in the website data, clearing the cache will not fix the source of the problem. Return to the product mapping, selected stock measure, and the step that writes the result. Similarly, a correct stock quantity does not prove that purchasing is restricted correctly: stock availability and permission to place an order are related but separate checks.
What to change after diagnosis
The next action depends on where you have confirmed the discrepancy occurs:
- The transfer does not start or stops partway through: Restore the trigger, access, or error handling.
- The transfer works but selects the wrong data: Change the mapping, warehouse, price type, or available-quantity calculation.
- The data is stored correctly but the storefront shows something else: Check caching and the rules for displaying prices or availability.
- The value is overwritten later: Align the data sources and the order in which updates are applied.
Before changing rules across the catalog, prepare a backup and a way to restore the previous settings. Test risky changes on a staging copy first, making sure it cannot affect live orders or MoySklad data.
If the module needs custom development, plan for error logging, controlled retries, and protection against stale updates. Processing the same operation more than once should not create duplicate products or reduce stock again. This property is called idempotency.
Ask whether your module provides idempotent processing and how it achieves it. Depending on the operation, this might involve stable entity mappings, deduplication using a unique operation ID, or setting an absolute quantity rather than repeatedly applying a stock adjustment. Update timestamps or versions can also help reject stale writes, but do not by themselves guarantee that every operation is safe to retry.
How to verify the fix
Check the entire path, not just a message saying the sync started successfully. Use an agreed test product and a controlled scenario:
- Record the original source value, expected website value, product and variant identifiers, and time.
- Change the price or quantity in the agreed source system. Test one field at a time so the result is clear.
- Wait for the scheduled run or trigger a supported targeted sync. Record its start and completion times.
- Confirm the value written to the correct website product or variation. Use a timestamped log entry if available; otherwise, record the observed change and ask a developer for more detailed tracing if needed.
- Invalidate the relevant caches if required, then verify the public page under the same viewing conditions.
- Check the next sync cycle to confirm that the value does not revert unless the source changes.
The final checks should confirm that:
- The correct product listing or variant was updated, not another product.
- The price matches the selected price type and agreed conversion rules.
- The quantity accounts for the correct warehouses and reservations without subtracting reservations twice.
- When available quantity is zero, purchasing is allowed or blocked according to the store’s rules.
If the integration also transfers orders and reservations, check that process separately for consistency: the website and MoySklad should not independently deduct the same quantity beyond what the agreed workflow allows. Use a previously agreed test scenario so you do not accidentally create live operational documents.
I can review the sync logic and assess what integration changes are needed. Prepare a few products with discrepancies, the current module’s name and version, timestamped examples, and your expected price and stock sync rules. This information will help determine whether settings changes are enough or custom development is needed.
