Graphql http

Solved
poojafmile
Tourist
13 1 0

Hello, 

Am trying to implement a GET request using Postman.

POST          https://shopname/admin/api/2021-04/graphql.json

with the following headers: ( I have input the 'Password' from my private app) 

poojafmile_1-1618873051659.png

 

and with the following body:

poojafmile_2-1618873211997.png

 

But am getting the following error:

poojafmile_3-1618873254745.png

 

 

To my understanding, when retrieving data from the API, we should use POST right ? Can someone please point out where am going wrong?

Thanks

 

 

0 Likes
_JB
Shopify Staff
Shopify Staff
809 95 176

Hey @poojafmile,

From the screenshot everything looks fine so I'm not sure why that isn't working. I haven't used Postman in some time so maybe someone else can chime in as well.

You can also consider using Insomnia, which I find extremely beneficial for GraphQL since they have built in schema support which allows auto-complete while writing queries.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

poojafmile
Tourist
13 1 0

This is an accepted solution.

Hello, 


It was a mistake on my side, I was copying the wrong data as password.  Thanks for your help

0 Likes