Cart Metafields Set Payload
Return type for mutation.
Anchor to FieldsFields
- metafields ([Metafield!])
- userErrors ([MetafieldsSetUserError!]!)
- Anchor to metafieldsmetafields•[Metafield!]Token access required
The list of cart metafields that were set.
- Anchor to userErrorsuser•[Metafields
Errors Set User Error!]! non-null The list of errors that occurred from executing the mutation.
Anchor to Mutations with this payloadMutations with this payload
- cartMetafieldsSet (CartMetafieldsSetPayload)
- •mutation
Sets
Metafieldvalues on a cart, creating new metafields or updating existing ones. Accepts up to 25 metafields per request.Cart metafields can automatically copy to order metafields when an order is created, if there's a matching order metafield definition with the cart to order copyable capability enabled.
NoteThis mutation doesn't trigger Shopify Functions. Changes aren't available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
Note:This mutation doesn't trigger Shopify Functions. Changes aren't available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
Note: This mutation doesn't trigger <a href="https://shopify.dev/docs/api/functions">Shopify Functions</a>. Changes aren't available to Shopify Functions until the buyer goes to checkout or performs another cart interaction that triggers the functions.
- Anchor to metafieldsmetafields•[Cart
Metafields Set Input!]! required The list of Cart metafield values to set. Maximum of 25.
The input must not contain more than
250values.
Arguments