Customer Account UI Extension: Order Status API: Order Line Items, Missing Metafields

Hi everyone,

I’m building a Customer Account UI Extension, specially for the Order Status Page. Within my extension, I want to read the metafields of each Line Item from that specific order. As per the documentation, I thought the line items should have all the metafields. But apparently they don’t. Am I missing something here? I don’t want to request every metafield for every line item via the API.

I use this to get all line items: const { lines, order } = useApi();
And here you can see an example response:

You need to define which metafields are available to your extension.

Please note that Line Items do not have metafields.

1 Like