Error customer metafield API (Status code: 502)

Hi!

I’m develop an Shopify App and that app to create a metafield for customers.

However, when I tried to create a metafield using a webhook from one of the stores, I got an error.

If necessary, you can also provide a request header etc.

Thanks!

What call are you making?

Hi Jason.

The request is as follows

Request method: POST

Request URL: https://xxx.myshopify.com/admin/api/2019-10/customers/{customerId}/metafields.json

Request header: { “X-Shopify-Access-Token”: “shpat_xxx” }

Request body: { “metafield”: { “namespace”: “joolen”, “key”:“points”, “value”:0, “value_type”: “integer” } }

Regards.