Is it possible to get Product Metafields in a Checkout UI Extension?

I would like to do external validation based on a custom metafield set on the user’s cart items inside my Checkout Extension.

Understand that you can use useCartLines() to fetch the current cart items (https://shopify.dev/docs/api/checkout-ui-extensions/unstable/apis/cart-lines#useCartLines) but is there any way to query your cart item metafields in Checkout Extension?

Hello @triplesingle

Yes, this is Possible Using External API,
You can make an external API call by passing the productId to retrieve metafield data from that API.

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.
(GD)