Discussing Shopify Functions development, deployment, and usage in Shopify apps.
There is no input mention to get metafields stored on a cart
https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql/input
I need to access those metafields in this extension
https://shopify.dev/docs/apps/checkout/validation/server-side
Cart metafields are not (yet) available in Function APIs. You might try cart attributes as a workaround in the meantime.
Nick Wesselman | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog