Dear Community,
I have a problem creating a GraphQL bulkrequest. I can issue the normal query in Postman with successful response. But if I try to use the same query in a bulkrequest, polling the result gives an error: “ACCESS_DENIED”. I use the same X-Shopify-Access-Token header for the request(which has the read_orders access scope). I would be really glad, to get help on this topic, since I’am a Graphql beginner!
Single Request:
{
orders (first: 20) {
edges {
node {
id,
email,
name,
fullyPaid,
customer {
firstName,
lastName,
email
},
lineItems(first: 10) {
edges {
node {
id,
image(maxHeight: 65, maxWidth: 65) {
originalSrc
},
title,
quantity
}
}
}
}
}
}
}
BulkRequest:
mutation {
bulkOperationRunQuery(
query: """
{
orders (first: 20) {
edges {
node {
id,
email,
name,
fullyPaid,
customer {
firstName,
lastName,
email
},
lineItems(first: 10) {
edges {
node {
id,
image(maxHeight: 65, maxWidth: 65) {
originalSrc
},
title,
quantity
}
}
}
}
}
}
}
""") {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
admin/oauth/access_scopes.json :
{
"access_scopes": [
{
"handle": "read_third_party_fulfillment_orders"
},
{
"handle": "read_fulfillments"
},
{
"handle": "write_products"
},
{
"handle": "write_shipping"
},
{
"handle": "read_orders"
},
{
"handle": "read_all_orders"
},
{
"handle": "read_products"
},
{
"handle": "read_shipping"
}
]
}
Greetings, Tommy