A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
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 👋
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!
Umiko | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog