Skip to main content
mutation

Requires write_cart_transforms access scope. Also: The shop must have upgraded to Checkout Extensibility and the user must have products and preferences permission to create a cart transform function.

Create a CartTransform function to the Shop.

•Boolean
Default:false

Whether a run failure should block cart and checkout operations.

•String!
required

The identifier of the Function providing the cart transform.

•[MetafieldInput!]
Default:[]

Additional metafields to associate to the cart transform.


Was this section helpful?

Anchor to CartTransformCreatePayload returnsCartTransformCreatePayload returns

•CartTransform

The newly created cart transform function.

•[CartTransformCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?