Pulling customer level metafields using API endpoint

Topic summary

Problem: A REST Admin API call to retrieve a specific customer (2022-07 /customers/{id}.json) returns no metafields, even though the customer has them. The requester cites Shopify docs indicating metafields should be part of the response and asks if a request body parameter is needed.

Latest update: Support advises that, provided the access token has the correct scopes, the endpoint should return the customer resource. To investigate further, they ask the requester to log into the store and contact support from an authenticated account with the necessary permissions.

Key terms: Metafields = custom key‑value data attached to resources (e.g., customers). Scopes = API permissions granted to the access token. Endpoint = the specific API URL being called.

Outcome/next steps: No resolution yet. Action items are to verify the app’s access token scopes and reach out from an authenticated store account so support can examine the request and store configuration. The question about whether a special request body is required remains unanswered in the thread.

Summarized with AI on February 7. AI used: gpt-5.

Hello,

We are not able to pull the customer metafields using the API endpoint mentioned in the dev docs… here is the endpoint i am using:

https://shop-the-sak.myshopify.com/admin/api/2022-07/customers/5567846023226.json

If you click it you will see the response, it contains no customer metafields, and this customer definitely has them.

In the dev docs it shows that metafield is part of the response… is there something i need to include in the body of the request that allows these to come through?

https://shopify.dev/api/admin-rest/2022-07/resources/customer

Thanks in advance for anyones help!

Jordan

Hi @jkatz-23 :waving_hand:

As long as your access token has appropriate scopes, the /customer/{customer_id}.json endpoint should return the customer resource. In order to investigate this, we would need a request from an authenticated account with permissions to this store. I’d recommend logging into the store, then reaching out from your authenticated account so that we can take a closer look.

Hope that helps!