Product/Inventory Issues

Hi, we use the graphQL api for creating products and syncing inventory to our database however we are having issues with some products recently created that don’t show up when querying by SKU, for example:

query getAvailable($sku: String){
  product(sku:$sku){
		data{
			warehouse_products{
				warehouse_id
				on_hand
				available
				warehouse_identifier
			}
		}
	}
}

and on Shiphero dashboard the section that shows which store is connected is empty

here’s a sample response from API.

{
	"errors": [
		{
			"message": "Product not found",
			"operation": "product",
			"field": "data",
			"request_id": "66b0df533e920a6dae896fa7",
			"code": 5
		}
	],
	"data": {
		"product": {
			"data": null
		}
	},

also the product has been created using public-api, any help will be appreciated, thanks!

Hi @apopelka

Thank you for providing the request_id.
By looking at the query, I see it was done using a user registered to ACC ID 61515, but the SKU in the query D419YYKIOS0101 is non-existent for that account.

Have a nice day!

Hi @Luisperrone thanks for your quick reply! The SKU exists, shows up on the shiphero dashboard, and is also included in the daily inventory snapshot we create.

There are other skus affected by the same issue like D419YYKIOS1418.

I am not sure if I’m missing something or if something changed recently with the API, thanks for your help

Yes, it exists, but under account 4269.
The request was made with the user technology@italic.com which is registered in ACC 61515.

The query needs to be made with a user and token created from ACC 4269.

Have a nice day!

1 Like

thanks, I’m so sorry @Luisperrone just found out my auth tokens got changed, my apologies. thank you

2 Likes