Shopify Admin API unable to create new product.

Shopify Admin API unable to create new product.

arjunpanwar
Visitor
1 0 0

Hi Team,

 

I am following the documentation provided by Shopify to create a new product instead of creating it's showing list of all the existing products.

 

CURL Request:  

curl --location --globoff 'https://{{My-Store-Name}}.myshopify.com/admin/api/2024-01/products.json' \
--header 'Content-Type: application/json' \
--header 'X-Shopify-Access-Token: {{My-Admin-API-Access-Token}}' \
--header 'Cookie: request_method=POST; request_method=POST' \
--data '{
"product": {
"title": "Hiking backpack"
}
}'

 

I am attaching the screenshots below.

Documentation: https://shopify.dev/docs/api/admin-rest

arjunpanwar_0-1705726962672.png

 

My Postman Screenshot: I have hide the Storename and Access token for security purposes.

arjunpanwar_1-1705727086523.png

 

Regards,

Arjun Panwar

 

 

Reply 1 (1)

NexaStudio
Excursionist
65 1 0

Hi Team,

I noticed an issue while following the Shopify documentation to create a new product. Instead of creating, it displays a list of existing products.

Here's the CURL request:

 

Any insights on what might be causing this?

Thanks,

Nexa Studio