Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Metafields on a cart in extension

Metafields on a cart in extension

PriyankaR
Shopify Partner
1 0 0

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

Reply 1 (1)

Nick_Wesselman
Shopify Staff
171 43 71

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