body: {
"product": {
"title": "Naga Custom Freestyle 0077",
"body_html": "**Good suncream!**",
"vendor": "acegym",
"product_type": "Suncream",
"product_tags": [
"Barnes & Noble 1",
"Big Air 2",
"John's Fav 3"
]
}
}
This is the URL (method: “POST”)
const response = await fetch(`https://${api_key}:${admin_api_access_token}@${shop_name}.myshopify.com/admin/api/${api_version}/${api_name}.json`, {
method,
body
});
The same request working in Postman but when I do it in NodeJs it is throwing this error.
{"errors":{"product":"Required parameter missing or invalid"}}
Can someone help me?
Thank you