What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Solved, how do I add a cart transformation function to my store via Graphql mutation

Solved, how do I add a cart transformation function to my store via Graphql mutation

fwallace
Shopify Partner
45 1 4

Here is the mutation:

 

mutation { 
  cartTransformCreate( 
    blockOnFailure: true,
    functionId: "<YOUR ID HERE>" 
    
  )  {
     
     userErrors {
      field
      message
     }
  }
  
  
}

Hope this helps

Reply 1 (1)

Nick_Wesselman
Shopify Staff
171 43 73

For others , here's the relevant API Documentation.

 

Nick Wesselman | 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 the Shopify Help Center or the Shopify Blog