A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi Guys,
Any one can help me for getting the Giftcard with GraphQL based on BulkOperation. When running bulk operation of Giftcard after creating the bulk operation and fetching status giving me "FAILED".
I get status: FAILED - ACCESS_DENIED and It is very weird and point me what wrong I am doing in entire process?
Shop id: myexportleftovers
Bulk Operation id: "gid://shopify/BulkOperation/1503860981939"
FAILED - ACCESS_DENIED
app permissions:
read_gift_cards
write_gift_cards
write_gift_card_adjustments
read_gift_card_adjustments
Please help me it is very serious issue.
Hey @zainmirza60 - thanks for getting in touch, this is definitely odd. One common reason these "Access Denied" errors are returned is due to the Gift Card Resource/Object itself being available only for custom or private apps installed on shops that are subscribed to the Shopify Plus plan.
That said, if the store you are working on is a Plus store, could you share an X-Request-ID from the response headers we would have sent back as part of the response to your API call? I'd be able to use this to look into our logs to see what could be causing the error - and to confirm if this is due to the shop's plan restricting access to the Gift Card Resource/Object.
Let us know if we can clarify anything on our end - hope this has provided some next steps.
Alan | API 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
Hi @Alan
We are on shopify plus plan. Please note the x-request-id →f4d4a039-21f5-4ae4-8c46-a951699873d8.
Also please find attached file. I hope now you can find the solution ? Please let me know.
Hey @zainmirza60 , thanks for that X-Request-ID. I was able to pull some more information from our logs and I was able to narrow down the error. Could you confirm if part of the bulk operation was to place funds back onto the gift cards through a createRefund mutation?
At the moment the createRefund mutation isn't supported through bulkOperations - but if you could confirm this or share which mutation you're using as part of the bulkOperation, I'd be able to get in touch with some members of our team to confirm this.
Hope to hear from you soon and thanks again for your patience on this - we don't monitor this forum 24/7, but do try to get back in touch when we can. It's much appreciated.
Alan | API 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
Issue resolved. because this was app type using the private app for this solve our issue.
Thanks!
Zain