Have you taken a look at the API docs for this?
https://shopify.dev/docs/admin-api/rest/reference/metafield
That gives you a pretty good starting place for any calls you need to make. I can understand if you don’t want to use existing apps given that you’re a dev but you will need to use the API a… Answer from Jason on community.shopify.com
Top answer 1 of 2
2
Separate the JSON from the main code. use error check.
{% if customer %}
<script type="application/json" id="customer">
{{customer | json}}
</script>
{% endif %}
<script>
const customerJson = document.querySelector('#customer')?.innerHTML;
if(!customerJson) return;
const customer = JSON.parse(customerJson);
console.log(customer);
</script>
2 of 2
1
Try using something like this.
const customer = {{ customer | json}}
console.log(customer)
How to access liquid objects with JavaScript / JQuery
Hi there, My question might be easy to answer, but I could not find a solution after searching and trying things for hours now. So this is what I would like to do: My Status: Using Shopify Plus, I have access to the checkout.liquid which allows me to use Javascript/Jquery during the checkout ... More on community.shopify.com
GraphQL Admin API: Getting Customer object from CustomerSegmentMember
Hi, I’m looking to get a way to access the Customer Object from CustomerSegmentMember (https://shopify.dev/api/admin-graphql/2022-04/objects/CustomerSegmentMember#queries) This must somehow be possible because inside Shopify you can also click on the list of members inside a Customer Segment ... More on community.shopify.com
Customer liquid object always null with new customer account settings
I developped a theme app extension that strongly relied on customer liquid object. However, since my merchants upgraded their store to new customer accounts, the customer liquid object always returns null, even if the customer is logged in. Is there any object I can access to replace this ... More on community.shopify.com
design and develop customers/order template by using liquid
Hi, I’ve built a Shopify theme from scratch and am currently working on designing the customer orders page. I’ve placed test orders using the Bogus payment gateway, but when I try to display the orders using Liquid (e.g., customer.orders_count), it always shows 0. Could you guide me on ... More on community.shopify.com
Shopify
shopify.dev › docs › api › customer › latest › objects › Customer
Customer - Customer API
Anchor to Customer · object · Copy page MD · Represents the personal information of a customer. Apps using the Customer Account API must meet the protected customer data requirements.
Helpjuice
help.helpjuice.com › en_US › liquid-template-basics › juicers-liquid-global-objects
Shopify/Liquid Global Objects - Helpjuice
August 17, 2022 - account: Object that returns a list of properties related to the KB account;
Shopify
shopify.dev › docs › api › storefront › latest › objects › customer
Customer - Storefront API
A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout.
Shopify Community
community.shopify.com › technical q&a
How to access liquid objects with JavaScript / JQuery
July 14, 2019 - Hi there, My question might be easy to answer, but I could not find a solution after searching and trying things for hours now. So this is what I would like to do: My Status: Using Shopify Plus, I have access to the checkout.liquid which allows me to use Javascript/Jquery during the checkout process.
Shopify Community
community.shopify.com › c › shopify-discussions › customer-s-quot-company-quot-field-included-in-notifications › td-p › 2378988
Customer's "Company" field included in notifications
Shopify Community · Powered by Discourse, best viewed with JavaScript enabled
YouTube
youtube.com › watch
Shopify API Update: How to Access Customer Object in Your App (Fix Inside) - YouTube
Are you struggling to access the Customer object in your Shopify app after the recent Shopify API update? You're not alone! In this video, I’ll walk you thro...
Published June 23, 2025
Shopify Community
community.shopify.com › shopify apps
Customer liquid object always null with new customer account settings
April 16, 2025 - I developped a theme app extension that strongly relied on customer liquid object. However, since my merchants upgraded their store to new customer accounts, the customer liquid object always returns null, even if the customer is logged in. Is there any object I can access to replace this ...
Shopify Community
community.shopify.com › retired boards › appdev › customers discounts and orders
Issue with a customer. Liquid object {{ customer.tags | json }}
January 19, 2024 - Hi there. We are suddenly not getting the customer object on proxy pages and it’s causing a major outage for our app. If we put the {{ customer.tags | json }} into the theme files, we get the customer tags, but if we r…
Klaviyo
developers.klaviyo.com › en › docs › collect_email_and_sms_consent_via_api
Collect email and SMS consent via API
Note that subscriptions objects are always associated with a profile object. ... curl --request GET \ --url 'https://a.klaviyo.com/api/profiles/?additional-fields[profile]=subscriptions' \ --header 'Authorization: Klaviyo-API-Key your-private-api-key' \ --header 'accept: application/json' \ --header 'revision: 2023-10-15' { "data": [ { "type": "profile", "id": "01EFPSGTVXBGERQPGM3VQ734KS", "attributes": { "email": "str", ... "location": {...}, "properties": { "Shopify Tags": [], "Accepts Marketing": true, "$city__transformed": "Norwalk", "$country__transformed": "United States", "$first_name__
Shopify Community
community.shopify.com › technical q&a
How can I access the Shopify object in JavaScript?
December 8, 2015 - Hi Is there any docs regarding the ‘Shopify’ object available in javascript? I keep seeing functions in theme docs for example Shopify.money_format() but no specific reference? Thanks for any advice. Joe
OneSignal
onesignal.com › customer messaging delivered | send mobile & web push notifications, email, sms & in-app
Customer Engagement Platform for Email, Push… - OneSignal
July 10, 2025 - OneSignal makes reaching customers seamless and scalable.