How can I retrieve a customer's note in my website's registration data?

Topic summary

A developer is attempting to retrieve customer notes from Shopify registration data using Liquid code in their theme. While the notes appear correctly in the Shopify dashboard, they aren’t displaying on the website.

Key Points:

  • Initial attempt used Liquid markup to access customer notes directly in the theme
  • Customer notes are visible in Shopify admin but not rendering on the frontend

Solution Provided:
Customer notes cannot be accessed through Liquid templating. Instead, they must be retrieved via:

  • Shopify Admin API (REST or GraphQL)
  • The Customer object in the API contains the note field
  • Example provided using GraphQL Admin API to fetch customer by ID

Current Issue:
The developer is encountering authentication errors when attempting the API approach:

  • Error: “Invalid API key or access token (unrecognized login or wrong password)”
  • Suggests incorrect API credentials or access token configuration

The discussion remains open with the authentication issue unresolved.

Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

I am using the following snipper to get the custom data of customer upon new registration to my website


              

              

I can see the information on the customer account details page on my Shopify dashboard.

I tried retrieving the data with the following code, but the data is not showing up.

{% if customer %}
      

{{ customer.note }}

      {% endif %}

Hi @praveen995

Hope you’re having a great day!

The customer note isn’t accessible through Liquid, but can be accessed through the Customer object of the Admin API.

Here’s an example via GraphQL ADMIN API:

Hi I tried as per the idea above, i am continuously getting the following error

{
    "errors": "[API] Invalid API key or access token (unrecognized login or wrong password)"
}

I used the following rest api

https://xxxx.myshopify.com/admin/api/2021-07/orders/{order_id}.json?fields=customer&X-Shopify-Access-Token=...abcd1234....