API Issue

Topic summary

A developer created a Shopify app to update inventory stock via API from their system. While the app successfully connects and receives confirmation responses, the inventory quantity is not actually updating in Shopify.

Key Details:

  • Using Python for the implementation
  • Logs show successful API calls (e.g., “Successfully updated Product ID: 9236490092809, Variant ID: 48276516176137 to quantity: 6”)
  • Shopify returns a response with variant details
  • However, the actual inventory quantity remains at 0 instead of the intended value (6 in the example)
  • The response shows 'inventory_quantity': 0 and 'old_inventory_quantity': 0

Current Status:

  • Issue remains unresolved
  • Developer is seeking help and willing to share code for testing if needed
  • The disconnect between the API response confirmation and actual inventory update suggests a potential issue with inventory management settings or API endpoint usage
Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hi,

We have made an app so we can use the API to update stock from our System.

We are getting the data we need and we are getting the following in the logs:

Successfully updated Product ID: 9236490092809, Variant ID: 48276516176137 to quantity: 6
Response from Shopify: {‘variant’: {‘id’: 48276516176137, ‘product_id’: 9236490092809, ‘title’: ‘Default Title’, ‘price’: ‘25.00’, ‘position’: 1, ‘inventory_policy’: ‘deny’, ‘compare_at_price’: ‘25.00’, ‘option1’: ‘Default Title’, ‘option2’: None, ‘option3’: None, ‘created_at’: ‘2024-08-13T17:35:13+01:00’, ‘updated_at’: ‘2024-10-02T10:11:41+01:00’, ‘taxable’: True, ‘barcode’: ‘9359082762438’, ‘fulfillment_service’: ‘manual’, ‘grams’: 250, ‘inventory_management’: ‘shopify’, ‘requires_shipping’: True, ‘sku’: ‘000MHE-9741’, ‘weight’: 0.5512, ‘weight_unit’: ‘lb’, ‘inventory_item_id’: 50320095904009, ‘inventory_quantity’: 0, ‘old_inventory_quantity’: 0, ‘admin_graphql_api_id’: ‘gid://shopify/ProductVariant/48276516176137’, ‘image_id’: None}}
Updated Inventory Quantity: 0

As you can see the quantity is not getting set to 6 like it states it is.

We are using Python and if the code is needed to test this issue let us know.

Thanks

Hardcloud