Shopify-api-node icon indicating copy to clipboard operation
Shopify-api-node copied to clipboard

Missing `customAttributes` on `AbandonedCheckout` in GraphQL Admin API

Open SidNewman opened this issue 8 months ago • 0 comments

Hey 👋

Issue: The customAttributes field is not available on AbandonedCheckout in the Shopify Admin API, even though it exists in Shopify’s GQLi app and in the docs.

Expected Behaviour:

  • customAttributes should be accessible under abandonedCheckoutPayload in the latest API version (2025-04).
  • It is not listed in the schema when introspecting AbandonedCheckout.

Steps to Reproduce:

  1. Query the AbandonedCheckout object in the Shopify Admin API.
  2. The response does not include customAttributes, and introspection confirms the field is missing.
  3. However, it works in the Shopify GQLi app.

Environment:

  • API Version: 2025-04
  • Shopify API Node Package: ^3.14.2

Please confirm if customAttributes was intentionally removed or if this is a bug. If it's an oversight, can it be added back in a future API version? I think some other fields are also missing here as the returned from this query:

{
  __type(name: "AbandonedCheckout") {
    fields {
      name
    }
  }
}

Returns:

{
   "__type":{
      "fields":[
         {
            "name":"abandonedCheckoutUrl"
         },
         {
            "name":"defaultCursor"
         },
         {
            "name":"id"
         },
         {
            "name":"lineItems"
         },
         {
            "name":"totalPriceSet"
         }
      ]
   }
}

But the full list is here: https://shopify.dev/docs/api/admin-graphql/latest/objects/AbandonedCheckout

Cheers!

SidNewman avatar Apr 03 '25 12:04 SidNewman