I have a software platform that creates products on Shopify with Rest API calls.
The variants of these products have a metafield ‘supplierRef’ in the ‘descriptor’ namespace.
When I create a product with variants with that metafield it works fine.
When I try to update an existing product variant I get an error because the metafield I try to push already exists.
When creating the product the variants in the body response do not have the metafield data attached to them.
How can I get the metafield Id of all the variants with a Rest API call?
Or how can I make the create/update call return the metafield data?