# Shopify, trying to make api calls - FAIL

**URL:** <https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871>\
**Category:** General\
**Tags:** http-request\
**Created:** [23 March 2023 15:39 UTC](https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871 "2023-03-23T15:39:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![estoylive](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/estoylive/32/77859_2.png) [@estoylive](https://discourse.nodered.org/u/estoylive)\
**Post date:** [23 March 2023 15:39 UTC](https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871/1 "2023-03-23T15:39:04Z")

</div>

Guys, i have been trying to connect node-red-contrib-shopify to make some API calls with no luck at all.

I am not sure why because I don't even have a log to check (or i don't know where to find it.. i am pretty new to node-red)

The thing is that using postman i just need to send a header with X-Shopify-Access-Token and the admin token and that's it!

i have been trying for almost two days with no luck, i am so frustrated. Anyone using shopify with node-red out there? pls help

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [23 March 2023 16:34 UTC](https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871/2 "2023-03-23T16:34:19Z")

</div>

Not used it but it appears to have many API's and 3 different authentication/authorisation models. So I'm guessing it may be quite complex anyway.

Which API and which authentication model are you using?

---

<div class="post-metadata">

**Author:** ![estoylive](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/estoylive/32/77859_2.png) [@estoylive](https://discourse.nodered.org/u/estoylive)\
**Post date:** [23 March 2023 19:38 UTC](https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871/3 "2023-03-23T19:38:53Z")

</div>

i am trying to use a custom app with Admin API and i have an access token that starts with "shpat\_" if sent in headers with "X-Shopify-Access-Token" it works perfectly!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [23 March 2023 22:20 UTC](https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871/4 "2023-03-23T22:20:19Z")

</div>

Then try using the http\_request node, add the headers in the http request node (depending on node-red version) Or set them prior to the node using a change or function node, using `msg.headers["X-Shopify-Access-Token"]` the request body goes in msg.payload.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 May 2023 22:20 UTC](https://discourse.nodered.org/t/shopify-trying-to-make-api-calls-fail/76871/5 "2023-05-22T22:20:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
