How to update product options and quantities via API?

Topic summary

Issue: Updating Shopify product variant prices, quantities, and product options from NetSuite via API; the observed PUT endpoint appears to handle prices but not quantities or adding options.

Key guidance:

  • Quantities = inventory. Use the Admin REST InventoryLevel endpoints to manage stock levels, or implement via Shopify’s inventory management app framework.
  • Product options are limited to a maximum of 3 per product. You can create/update products and variants (with options) via the Admin REST Product endpoints or use the Admin GraphQL productUpdate mutation for richer updates.
  • Variant prices can be updated through the standard product/variant update endpoints; quantities must be handled through inventory APIs, not variant price endpoints.

Alternative solution:

  • Consider a third‑party connector (e.g., a NetSuite–Shopify integrator app) to synchronize variant prices, quantities, and options without custom API orchestration.

Status: No confirmed resolution. Actionable paths identified: use InventoryLevel for quantities; REST/GraphQL product endpoints for options/variants, observing the 3‑option limit.

Summarized with AI on January 4. AI used: gpt-5.

Hello, I hope you are doing well.

I am currently working on a script to update Shopify product options and variants from Netsuite. I have explored the PUT API, but it only seems to update variant prices and does not handle quantity updates. Additionally, it does not support adding more options to a product. Could you please provide guidance on how to update variant prices and quantities, as well as modify or add options using the API? Any assistance you can offer would be greatly appreciated.

Best regards.

quantities, meaning Inventory?

https://shopify.dev/docs/api/admin-rest/2023-10/resources/inventorylevel

https://shopify.dev/docs/apps/fulfillment/inventory-management-apps

Note: products can only have 3 options ,currently.

https://shopify.dev/docs/api/admin-rest/2023-10/resources/product#post-products

https://shopify.dev/docs/api/admin-rest/2023-10/resources/product#post-products:~:text=Create%20a%20new%20product%20with%20multiple%20product%20variants%20and%20multiple%20options

Also see the graphql api

https://shopify.dev/docs/api/admin-graphql/2023-01/mutations/productUpdate

It sounds like you’re facing some challenges with updating Shopify product options and variants from NetSuite using the Shopify API. While the PUT API may have limitations in handling quantity updates and adding more options to a product, there’s a solution that can streamline this process for you.

I recommend trying out the Robust NetSuite Integrator. This tool is specifically designed to address the complexities of integrating NetSuite with Shopify, offering seamless synchronization of product data including variant prices, quantities, and options.