Admin Rest AP, Create or Update Product(Write Permission)

Solved

Admin Rest AP, Create or Update Product(Write Permission)

samnang
Shopify Partner
2 1 0

Dear team support,
I have an issue with creating and updating the API access token generated from the developer app on Shopify.
- I have created a new developer app on Shopify admin and added admin API access scopes as below.
Screenshot 2024-04-01 at 11.22.50 AM.png

- I get an admin API access token from the development app. After that, I prepare my post body with the unique name sku and handle... to post a new product to store via a postman request with headers (X-Shopify-Access-Token,Content-Type:application/json) and method POST through admin/api/2024-01/products.json.

-I had to create one product manually on store admin.

- After preparing on Postman and making the send request, it's always response status 200 with the existing product I had created manually on store admin. You can see the image below:
Screenshot 2024-04-01 at 11.32.16 AM.png

Why is it not working with my store? The access token I got from the developer app is working with get requests, e.g., requests to retrieve a product or a product list, and other requests with post or put are not working.

Please help to check and provide me the solution to solve it. Thanks

Name: samnang
Working: Developer
Accepted Solution (1)

samnang
Shopify Partner
2 1 0

This is an accepted solution.

Everything works after changing domains to use the primary domain.

Name: samnang
Working: Developer

View solution in original post

Reply 1 (1)

samnang
Shopify Partner
2 1 0

This is an accepted solution.

Everything works after changing domains to use the primary domain.

Name: samnang
Working: Developer