I’m experiencing a persistent 422 error when trying to add a specific product to cart via the Cart API, even though all product settings are configured correctly.
Error Details
Request: POST /cart/add
Response: 422 Unprocessable Content
Error Message: "Het product 'Babulino Tandjesroller' is al uitverkocht"
(Dutch: “Product is sold out”)
json
{
"status": 422,
"message": "Het product 'Babulino Tandjesroller' is al uitverkocht.",
"description": "Het product 'Babulino Tandjesroller' is al uitverkocht."
}
Product Configuration (All Correct)
- Product Status: Active
- Variant Status: Active
- Track Quantity: DISABLED
- Inventory Management: Not tracked by Shopify
- Continue Selling When Out of Stock: Enabled
- Available for Sale:
Yes
Product Details
- Store: babulino.nl
- Product ID: 15071731745112
- Variant ID: 55066889617752
- Product Handle: babulino-tandjesroller
What I Need Help With
Shopify Support suggested testing with the Storefront API GraphQL to determine if this is a server-side inventory validation issue vs. a theme/app conflict.
Could someone help me:
- Write the correct GraphQL mutation to test adding this variant to cart
- Verify if this 422 error reproduces via Storefront API
- Identify potential server-side inventory conflicts when tracking is disabled
Expected vs Actual Behavior
Expected: Product should add to cart successfully since inventory tracking is disabled
Actual: Cart API blocks the product with “sold out” error despite correct settings
Additional Context
- Issue affects only this specific product
- Other products work fine
- Problem persists across all browsers/devices
- No recent changes to product settings
- Checked for duplicate handles/IDs (none found)
Any guidance on the proper GraphQL test or insights into Shopify’s inventory validation logic would be greatly appreciated!