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
Hey @tommydev ,
Happy to help you out with this. Could you provide the x-request-id from the response headers from the ACCESS_DENIED request. With the request-id I can review our logs to hopefully help identify the cause of the issue.
Regards,
John
John C | 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
User | Count |
---|---|
14 | |
9 | |
8 | |
7 | |
5 |