Hi,
I’m looking to create order metafields with the admin rest api. However, I also want that value visible in the UI, since some metafields created via the API are not shown in the UI. I was planning on creating the metafield definition in the UI and then use the admin rest api to create an order with the value for the metafield. However, that doesn’t look possible because at the point that the order is created, the metafield is null and therefore not retrievable. If I write the appropriate metafield value in the ui after the order is created, the admin API can grab the metafield. But, that defeats the purpose of doing it programmatically. This is the closest article on the topic: https://community.shopify.com/c/shopify-apis-and-sdks/not-able-to-retrieve-list-of-metafields/td-p/1466369?lightbox-message-images-1469861=187910i5E207626DCE3E852
Is this possible and if not, what do you suggest? My fallback plan is to make use of line item properties, which would show the values in the UI. But, they are not changeable in the UI, which I’d like to have changeable in the UI if possible.
Thanks.