HASH717
1
I’m getting “400 Bad Request” when I’m trying to send GraphQL query on my development store.
My URL: https://MYSTORE.myshopify.com/admin/api/2023-10/graphql.json
Method: POST
Header:
Content-Type |
application/json |
X-Shopify-Access-Token |
{my_access_token} |
Query:
{
shop {
name
}
}
Errors attached.
SBD
2
Hey @HASH717
Are you able to capture the request ID from the response headers?
SBD
4
Above the response body where you see 400 bad request there’s a ‘headers’ tab.
HASH717
5
Name: x-request-id
Value: 62a77728-6a25-4d0b-9a9c-c2edcb2fb21b
SBD
6
Thanks. Looks like there’s no body/query attached to your request.
Not super familiar with Postman GraphQL but had success with:
- New > GraphQL.
-
Set the URL to https://{store}.myshopify.com/admin/api/2023-10/graphql.json
-
Add a X-Shopify-Access-Token
header with your token.
1 Like
HASH717
7
Thank you, SBD
The first issue was the content type, and the second issue was the Syntax.
ZOEVA
8
Hey HASH717, I just run into the same problem. Can you tell me more about the solution you found for make.com?