"400 - Bad Request" GraphQL query on Postman and Make.com

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.

Hey @HASH717

Are you able to capture the request ID from the response headers?

How do I get that?

Above the response body where you see 400 bad request there’s a ‘headers’ tab.

Name: x-request-id
Value: 62a77728-6a25-4d0b-9a9c-c2edcb2fb21b

Thanks. Looks like there’s no body/query attached to your request.

Not super familiar with Postman GraphQL but had success with:

  1. New > GraphQL.

  1. Set the URL to https://{store}.myshopify.com/admin/api/2023-10/graphql.json

  2. Add a X-Shopify-Access-Token header with your token.

1 Like

Thank you, SBD

The first issue was the content type, and the second issue was the Syntax.

Hey HASH717, I just run into the same problem. Can you tell me more about the solution you found for make.com?