--- title: CartMetafieldsSetPayload - Storefront API description: Return type for `cartMetafieldsSet` mutation. api_version: 2025-01 api_name: storefront type: payload api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/2025-01/payloads/cartmetafieldssetpayload md: https://shopify.dev/docs/api/storefront/2025-01/payloads/cartmetafieldssetpayload.md --- # Cart​Metafields​Set​Payload payload Return type for `cartMetafieldsSet` mutation. ## Fields * metafields [\[Metafield!\]](https://shopify.dev/docs/api/storefront/2025-01/objects/Metafield) The list of cart metafields that were set. * user​Errors [\[Metafields​Set​User​Error!\]!](https://shopify.dev/docs/api/storefront/2025-01/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/2025-01/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/2025-01/types/cartMetafieldsSet)