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