Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

set inventory_levels by REST Admin API 404 response

Solved

set inventory_levels by REST Admin API 404 response

clarelv
Shopify Partner
3 1 0

When I updated the inventory, the API returned the message :

clarelv_0-1720686674863.png

x-request-id : 0dc73f1e-5b7d-49d4-a13f-f75edfe7c879-1720685795.

I understood that the product was not found in this inventory location, but I was able to find the information of this product.

clarelv_1-1720686738722.png

I want to know if there is a problem with my API call or the API itself. I tried the 2024-07 and 2023-07 versions of the API. Thank you everyone.

Accepted Solution (1)

clarelv
Shopify Partner
3 1 0

This is an accepted solution.

I found the problem. The api address is different from the myshopify_domain value in the /admin/api/2024-07/shop.json interface. When posting the interface, it will redirect to the myshopify_domain address.

clarelv_0-1720689762069.png

 

View solution in original post

Reply 1 (1)

clarelv
Shopify Partner
3 1 0

This is an accepted solution.

I found the problem. The api address is different from the myshopify_domain value in the /admin/api/2024-07/shop.json interface. When posting the interface, it will redirect to the myshopify_domain address.

clarelv_0-1720689762069.png