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
117 29 46

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