Quantity for [Name] couldn't be set because inventory can only be managed by Shopify or fulfillment?

tanishqandmac
New Member
2 0 0

We are facing a weird issue while using GraphQL API, Seems like productCreate was working fine till last week, However now its returning this error whenever we try to create a product variant via GraphQL productCreate- "Quantity for [Product Variant Name] couldn't be set because inventory can only be managed by Shopify or a fulfillment service." 

Surprisingly this endpoint is also working perfectly fine on our other shopify account. Can someone please help us to determine the cause of this issue ?

 

Here's the response log that we are getting - 

{'query': '\n          mutation productCreate($input: ProductInput!) {\n            productCreate(input: $input) {\n              product {\n                id\n              }\n              shop {\n                id\n              }\n              userErrors {\n                field\n                message\n              }\n            }\n          }\n  ', 'variables': {'input': {'title': Purse', 'published': True, 'descriptionHtml': '<br />•Crossbody <br />•9”H x 9”W x 9” D<br />•Polyurethane, Mixed Metal <br /><br />', 'variants': [{'sku': 'NOV0XX', 'options': ['Regular'], 'requiresShipping': True, 'price': 45.0, 'position': 1, 'inventoryManagement': 'SHOPIFY', 'inventoryQuantities': [{'locationId': 'gid://shopify/Location/5900677XXXX', 'availableQuantity': 0}, {'locationId': 'gid://shopify/Location/484485XXXX', 'availableQuantity': 0}]}]}}} {'data': {'productCreate': {'product': None, 'shop': {'id': 'gid://shopify/Shop/410626XXXX'}, 'userErrors': [{'field': ['variants', '0', 'inventoryQuantities'], 'message': "Quantity for Regular couldn't be set because inventory can only be managed by Shopify or a fulfillment service."}]}}, 'extensions': {'cost': {'requestedQueryCost': 10, 'actualQueryCost': 10, 'throttleStatus': {'maximumAvailable': 1000.0, 'currentlyAvailable': 990, 'restoreRate': 50.0}}}}

0 Likes