Anchor to cartTransformCreatecart
mutationcart Transform Create
Requires 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.
Anchor to Arguments
Arguments
- Anchor to blockOnFailureblock•BooleanDefault:false
On Failure Whether a run failure should block cart and checkout operations.
- Anchor to functionIdfunction•String!required
Id The identifier of the Function providing the cart transform.
- Anchor to metafieldsmetafields•[Metafield
Input!]Default:[] Additional metafields to associate to the cart transform.
Was this section helpful?
- Anchor to cartTransformcart•Cart
Transform Transform The newly created cart transform function.
- Anchor to userErrorsuser•[Cart
Errors Transform Create User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?