MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
946 stars 277 forks source link

Support for retrieving and creating Metafields for a resource #215

Closed Tails closed 6 years ago

Tails commented 6 years ago

Shopify supports creating a Metafield for a specific resource. This connector currently seems unable to do that, since a POST request to edit a Resource's Metafield requires a base-child path such as POST /admin/products/#{product_id}/metafields.json

See: https://help.shopify.com/en/api/reference/metafield#create

lpinca commented 6 years ago

See https://github.com/MONEI/Shopify-api-node#metafields

alxvallejo commented 4 years ago

@lpinca

I'm hitting a HTTPError: Response code 422 (Unprocessable Entity) when trying to save metafield on both 'product' and 'product_variant'. I know this is an old ticket, but why would i get this response?