Iam getting wrong data from backend for product variants and fulfillment options on a web page

Topic summary

A developer is encountering data discrepancies when retrieving product variant quantities and fulfillment options from the backend API.

Issue Details:

  • Backend quantity data doesn’t match what’s displayed on the frontend
  • The implementation uses metafields to store inventory quantities rather than Shopify’s native inventory system
  • Data appears incorrect when showing quantities across different locations

Suggested Troubleshooting:

  • Verify whether data is syncing correctly to the metafield
  • Consider using Shopify’s built-in inventory_quantity property on the variant object instead of custom metafields
  • Confirm the data source and synchronization process for multi-location inventory

Current Status:
The issue remains unresolved, with the developer confirming they need to display quantities to users across different locations but the data is showing incorrectly.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

Hi there :waving_hand:

Is there a reason you are using an inventory quantity on a metafield opposed to the inventory quantity on the variant itself?

Have you confirmed that the data is getting synced correctly to the metafield?

yes we want to show the quantity to users in different locations but it showing wrong data