--- title: CartMetafieldsSetPayload - Storefront API description: Return type for `cartMetafieldsSet` mutation. api_version: 2025-10 api_name: storefront type: payload api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/payloads/cartmetafieldssetpayload md: https://shopify.dev/docs/api/storefront/latest/payloads/cartmetafieldssetpayload.md --- # Cart​Metafields​Set​Payload payload Return type for `cartMetafieldsSet` mutation. ## Fields * metafields [\[Metafield!\]](https://shopify.dev/docs/api/storefront/latest/objects/Metafield) Token access required The list of cart metafields that were set. * user​Errors [\[Metafields​Set​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/MetafieldsSetUserError) non-null The list of errors that occurred from executing the mutation. *** ## Mutations with this payload * [cart​Metafields​Set](https://shopify.dev/docs/api/storefront/latest/mutations/cartMetafieldsSet) mutation Sets cart metafield values. Cart metafield values will be set regardless if they were previously created or not. Allows a maximum of 25 cart metafields to be set at a time. *** ## Map ### Mutations with this payload * [cart​Metafields​Set](https://shopify.dev/docs/api/storefront/latest/types/cartMetafieldsSet)