Cannot query cartTransforms from custom app

Cannot query cartTransforms from custom app

katy4
Shopify Partner
4 0 4

I'm only able to query cartTransforms from the shopify graphiql app, and not my custom app. My app has read and write cart transforms permissions. I can set metafields on the cartTransform via the metafieldsSet mutation, but cannot query for the current values. No errors are returned, just a blank array.

 

query cartTransforms ($first: Int!){
  cartTransforms(first: $first) {
    edges {
      node {
        id
        metafields (first: 10) {
          edges {
            node {
              key
              namespace
              id
              value
            }
          }
        }
      }
    }
  }
}

This same query correctly returns cartTransforms from the graphiql app. This is what is returned from my custom app:

{
  "data": {
    "cartTransforms": {
      "edges": []
    }
  }
}
Replies 2 (2)

oscprofessional
Shopify Partner
16343 2438 3177

Cart Transform API is not available for Custom Apps. It works with Shopify Plus Plan. Also, are you testing on Development store or Live Store?

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
katy4
Shopify Partner
4 0 4

I have the Shopify plus plan. I'm using the Admin API to query this. It does not work on either the live or development stores - both return the same empty array