XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Shopify Developer Community Forums - Topics tagged general-gql-troubles

Topics tagged general-gql-troubles

When will waived balances (write-offs) get their own sale type instead of `UnknownSale`?

When a merchant waives an order balance, the order gets an order-edit agreement with an UnknownSale (lineType: UNKNOWN, actionType: ORDER, negative totalAmount, totalTaxAmount 0). Cancelling the order reverses it with an UnknownSale UNKNOWN / RETURN (positive amount). We query API 2026-07. The SaleActionType docs already say “the WRITE_OFF line type identifies the entry as a write-off”, but SaleLineType has no WRITE_OFF value in 2026-07, 2026-10, 2027-01 or unstable. The docs list…

Collection Invisible from API

Hi all, My app has a merchant who has a particular collection that exists in their store, which is invisible to my app when I try to look it up in the API. I’ve tried queries that list all collections, and have looked up the collection by ID using both graph QL and rest. For example: { collection(id: "gid://shopify/Collection/674353021256") { id title } } { "data": { "collection": null } } According to Shopify, the collection does not exist, but I’m fairly certain this is wrong. Is anyone else…

Bulk query (bulkOperationRunQuery) still returns "Access denied... Only accessible by supported access tokens" after enabling Bulk queries, allowlisting IP, and using an expiring offline token

I run a standalone backend app (not embedded in the Shopify admin) that connects stores via the standard OAuth Authorization Code Grant flow. I’m trying to use bulkOperationRunQuery against a connected dev store, but every attempt fails with: Access denied for bulkOperationRunQuery field. Required access: Only accessible by supported access tokens: https://shopify.dev/docs/api/usage/bulk-operations/queries#access-token-considerations. The linked #access-token-considerations anchor appears to be…

Order Events no longer returning events older than 3 months (limit is supposed to be 1 year)?

Hi there, The last announcement I can find in the changelog for Events was this one which limited it to 1 year: Events data now limited to one year retention - Shopify developer changelog It seems this was limited further to 3 months recently, but I don’t see anything in the changelog about it. Can someone from Shopify confirm whether this was an intentional change? 3 posts - 2 participants Read full topic

Order.additionalFees: What does this actually contain? Duties on order but still empty

Hi, I am an integrator that listens to the orders/create webhook, fetches the order via the GraphQL Admin API (read_orders) in order to create invoices in our own system. For that we need every customer-facing charge. The API docs claim about additionalFees: “Additional fees applied to an Order beyond the standard product and shipping costs.” In practice I have observed that the field doesn’t behave that way and I could not find any reliable information about that either. What the docs promise:…

shippingLabelPurchase fails for fulfillment orders assigned to a fulfillment service location ("Line items can't be blank")

Hello, We are testing the shippingLabelPurchase mutation (Admin GraphQL API, version 2026-10) on a development store, using a custom app. The mutation works for fulfillment orders at a merchant-managed location. It fails for fulfillment orders assigned to a fulfillment service location, even when our app owns that fulfillment service and the fulfillment request has been accepted. WHAT WE EXPECTED As the app that owns the fulfillment service, we expected to be able to buy a Shopify Shipping…

metafieldsDelete Requires Unique Keys and Returns Unhelpful Error Otherwise

If the entries are not unique (key, namespace, ownerId) one gets: An unexpected error occurred while deleting metafields. Not helpful and took me some time to track down! If this was an informative error then it would have been clear what the issue is. The uniqueness requirement is not documented, and given the message it looks like the duplicate keys are triggering something server side that should be coded for but is not. 2 posts - 2 participants Read full topic

How to link discountCodeBasicCreate to specific app page?

Searching has some results for discountCodeAppCreate, but is there a good way to have Shopify link to a dedicated page from the discountCodeBasicCreate? Right now it contains a link to the app’s main page, there doesn’t seem to be any metadata we can grab. Does it really need to be function only? 2 posts - 2 participants Read full topic

storefrontAccessTokenCreate returns ACCESS_DENIED after converting an app into a sales channel (channel_config)

Hi everyone, We have a public app that powers a mobile storefront. On install, our backend creates a Storefront access token for the shop through the Admin API, saves it, and the mobile app uses it for all Storefront API calls (products, cart, checkout). This has worked for a long time. To support product bundles on the mobile storefront, we turned the app into a sales channel by adding a channel_config extension and deploying a new app version: [[extensions]] type = "channel_config" name =…

Metafield.translations can't replace TranslatableResourceType.METAFIELD for unpublished locales

Hi Shopify, With 2026-10, TranslatableResourceType.METAFIELD is deprecated, and the migration guide points apps to Metafield.translatable andMetafield.translations instead. For a translation app, Metafield.translations can’t fully take over yet, because it only returns translations for published locales. Merchants translate a language before they publish it, so a translation app has to read translations of unpublished locales. translatableResources(resourceType: METAFIELD) returns them, but…

Identify B2B Orders with Payment Terms on Vaulted Credit Cards

Scenario: Company Location with Net Payment Terms we plan to invoice later via NetSuite ERP. Shopify allows customer to checkout on the Net Payment Terms with a saved/vaulted credit card. Expected behaviour should be we charge the card automatically when invoice is due. We need a mechanism for differentiating Net Term orders that the customer chose the Vaulted Card vs the choose payment method later option, so we can monitor and charge the card (and tell NetSuite its a Credit Card Payment…

Shopify app subs renewals

For activeSubscriptions gql; whether remainingDurationInIntervals has already gone down when the new cycle’s webhook arrives at app_subs_update webhook? Shopify Anchor to FieldsFields - AppInstallation - GraphQL Admin An app installed on a shop. Each installation tracks the permissions granted to the app through AccessScope objects, along with billing subscriptions and Metafield objects. | An app installed on a shop. Each installation tracks the permissions... 3 posts - 2 participants Read full…

Finding link between two items when customAttributes are empty

Below is a simplified version of the GraphQL I am using to get back details of a test order with the returned data. The problem is that, unlike other orders, the “customAttributes” array is blank (normally it is filled with _boldVariantIds etc.) which means that there is no link between the ‘Georgian Skirting Board’ and the ‘MDF Finish’ option for it . Is there any expansion of the GraphQL that will show that the item and the option is linked? GRAPHQL { orders(first: 1, sortKey: CREATED_AT,…

Incident on the bulk operation's graphql query today?

Hi, we observed in our logs many http requests timing out on the bulkOperation graphql query today. For example this one: query BulkOperationQuery($id: ID!){ node(id: $id) { ... on BulkOperation { url status errorCode } } } Was there any down time around it today? It started at 2026-10-30 06:21:01.148 CET Peak of error registered arround 2026-10-30 10:45:52.546 CET. A random bulk operation ID that got error: 8753527619672 I do not have request IDs to share because it’s timing out before getting…

Can we customize the /checkouts/ exclusions in the auto-generated AASA file?

Hi, Our store (Shopify Plus) has Universal Links enabled for an iOS app, via a custom app in Shopify admin (Storefront API / Buy SDK settings: Apple App ID + “Use iOS universal links”). Shopify generates this AASA file: "paths": [ "NOT /admin/*", "NOT /*/amazon_payments/callback", "NOT /*/checkouts/*/express/callback", "NOT /checkouts/*/*", "NOT /checkouts/*/*/*", "NOT /checkouts/*/*/*/*", "/*" ] We’d like to remove these three exclusions so checkout links can open in our app: NOT…

translationsRegister on ONLINE_STORE_THEME_LOCALE_CONTENT: a second write before the first is served loses the first one

API version: Admin GraphQL 2026-10, development store, Dawn-based main theme, unpublished locale es. All keys are SINGLE_LINE_TEXT_FIELD; keys don’t overlap between calls or runs. Context. A theme’s locale content resource (gid://shopify/OnlineStoreThemeLocaleContent/<themeId>) has about 4,500 keys, and translationsRegister takes at most 100 keys per call (TOO_MANY_KEYS_FOR_RESOURCE above that), so a language has to be written in several calls. Steps to reproduce: translationsRegister with 100…

How to update taxes on an existing order using GraphQL?

I need to update taxes on an existing order using the GraphQL API. Can tax lines and tax amounts be updated directly, or is there a supported way to recalculate them? Which mutation should I use? An example request would be helpful. This functionality is available when creating an order, but I also need it when updating an existing order. How can I update tax lines and tax amounts using GraphQL? 2 posts - 2 participants Read full topic

Non-expiring offline access token still usable after migration to expiring tokens

Good evening, I have a question regarding the required migration to the expiring offline access tokens (Migrate to expiring offline access tokens). We are currently implementing the necessary changes and noticed that even after the non-expiring offline token has been successfully exchanged for the expiring access token (which we can successfully use for subsequent GraphQL API calls, including the occasional refresh of the new token), going back to the “original” non-expiring access token still…

Orders created via GraphQL API without customer are missing `destination` on fulfillment orders

We noticed, that some orders that are created via GraphQL API with the orderCreate mutation don’t have a fulfillment record set on fulfillment orders. After debugging this with the Shopify support, it was confirmed to be a bug: This is a confirmed bug on our side, not something wrong with your integration. The shipping address is present, so the destination can be inferred. Here is their summary: When an order is created via orderCreate without a customer attached, the internal…

Inconsistency on metafield fields returned by queries

Hello, On my queries requests on metafields, I notice a strange behavior (tested in 2026-04 and unstable). Query 1: query getShopMetafield { shop { metafields(first: 1) { nodes { namespace value key } } } } Data 1: { "shop": { "metafields": { "nodes": [ { "namespace": "custom", "value": "value", "key": "my_metafield" } ] } } } Query 2: query getFilteredShopMetafield { shop { metafields(first: 1, keys: ["custom.my_metafield"]) { nodes { namespace value key } } } } Data 2: { "shop": {…

Admin GraphQL Orders: INTERNAL_SERVER_ERROR at 200 Orders despite small nested pages (2026-07)

Hi Shopify developers, Our service repeatedly receives INTERNAL_SERVER_ERROR when fetching 200 Orders with nested data. Smaller Orders pages succeed with all selected fields retained, but reducing only the nested page sizes does not resolve the failure. Could you please investigate the request IDs, confirm whether this can be addressed on Shopify’s side, and recommend a reliable fetching strategy? We have also opened private Partner Support ticket 71411227. Environment Test store:…

Fulfillment orders on "custom fulfillment locations" advertise their capabilities incorrectly

When a fulfillment order is assigned to a “custom fulfillment service” location, the capabilitlies are incorrectly reported. MOVE and SPLIT are missing. But a MOVE mutation works without any issue. This causes checks for capabilities in Shopify Flow to fail and the button to change location in the admin interface to be missing. 4 posts - 2 participants Read full topic

Early access to tax on return shipping fees for app testing (Oct 23 change)

Hi! We’re preparing for the change where Shopify starts calculating tax on return shipping fees for US orders using Shopify Tax on October 23, 2026. We are planning to update our refund calculation to read CalculatedReturnShippingFee.taxAmountSet (API 2026-10). Along with the finalized Shipping Fee, ReturnShippingFee.finalizedTaxAmountSet(API 2026-10). Currently in our dev store returns $0 because the change isn’t live yet, so we can’t check our refund amounts against real behavior before…

inventoryTransfer object / inventoryTransfers query

Hello, We are enjoying the Inventory Transfers feature in Shopify however not having an updatedAt or modifiedAt field available in the object/query means that keeping Shopify in sync with our inventory platforms is problematic and means we need to fetch more orders than we would like to via the API. When a retailer starts to get more and more physical locations this Transfer Order features becomes very useful as it can put the stores in charge of their own stock. Is this something we could…

Shipment barcode not saved when created through API

Hi everyone, I’m using the GraphQL Admin API version 2026-10 to create an in-transit inventory shipment with inventoryShipmentCreateInTransit. The shipment is created successfully, but the barcode supplied in InventoryShipmentCreateInput isn’t saved. My input includes: { "barcode": "1234567891", "movementId": "gid://shopify/InventoryTransfer/4688740533", "lineItems": [ { "inventoryItemId": "gid://shopify/InventoryItem/54862915436725", "quantity": 1 } ] } The example above is shortened. The…

Subscription Contract Calculation rejects subscription-only discount

We are testing SubscriptionContractCalculation API in our dev store but the coupon validation seems to be backwards. Coupon with purchase type subscription works with subscriptionDraftDiscountCodeApply, but applying it through discountCodes.redeemCode in the SubscriptionContractCalculation API returns: [{"code":"DISCOUNT_CODE_NOT_APPLIED","message":"<strong style="text-transform:uppercase">snowboard-15 discount code isn’t valid for the items in your cart"}] Changing its purchase type to…

Intermittent “Internal error” (500) on several Admin GraphQL queries and mutations

Hi everyone, Since around 11:15 UTC on 2026-10-14, our custom app (Admin GraphQL API, version [2025-07]) has been getting this response on a lot of unrelated queries and mutations: Internal error. Looks like something went wrong on our end. Request ID: <id> (include this in support requests). What we see It comes and goes: other requests made at the same time succeed (HTTP 200). Retrying works. One order failed on fulfillmentCreate at 11:15:49 UTC, and the same request for that order succeeded…

Bulk mutations remaining RUNNING with long pauses in progress

We’re seeing intermittent long stalls with productVariantsBulkUpdate through bulkOperationRunMutation on Admin API 2026-07, across several stores. Examples below, using the numeric part of each BulkOperation ID: 9537339195701 — 100 products / 493 variants. Ran for approximately 115 minutes with intermittent progress before we requested cancellation 8751834300671 — 2 products. Approximately 57 minutes before the first reported progress, completing after roughly 91 minutes 8613955797265 — 1…

Admin GraphQL: inventoryTransferSetItems returns INTERNAL_SERVER_ERROR when re-sending same payload with idempotency key

Hello: I am using Admin GraphQL version 2026-10. I create an Inventory Transfer with 250 items by using InventoryTransferCreateAsReadToShip, and then use InventoryTransferSetItems to add another 250 items to the same transfer. No error on both calls. Now when I re‑sent InventoryTransferSetItems agian, with the exact same payload and idempotent key, I got the following response: { “errors”: [ { “message”: “Internal error. Looks like something went wrong on our end.\nRequest ID:…