Hi there, thanks for contributing to the Community!
You should be able to leverage the Identity API to update existing profile’s custom properties. If you don’t mind could you send me the request you are currently using that is returning the 0? Additionally for your reference this is our documentation on the Track and Identity API.
Thanks so much!
Kelsey
Hi Kelsey
I am facing same issues
My request url is https://a.klaviyo.com/api/identify?data=eyJ0b2tlbiI6IlVzNHl0bSIsInByb3BlcnRpZXMiOnsiJGV2ZW50X2lkIjpudWxsLCJpdGVtcyI6W119fQ==}
I want to post First name , last name , email , phone no ,city , state , zip code and country field
Thanks so much!
Ramesh
Hi Ramesh,
When I decode the payload you’re attempting to send in your API call, I get the following:
{"token":"Us4ytm","properties":{"$event_id":null,"items":s]}}
To use the Identify API, you must identify the person by their email address ($email). For example, a valid payload would be:
{
"token" : "WtKVQ4",
"properties" : {
"$email" : "thomas.jefferson@klaviyo.com",
"$first_name" : "Thomas",
"$last_name" : "Jefferson",
"Plan" : "Premium",
"SignUpDate" : "2016-05-01 10:10:00"
}
}
Our API documentation provides additional information.
Hope this helps!
Best,
Caroline
Hi Caroline
Thank you very much for prompt useful response
API is working now
HI everyone:
I’m having this same problem trying to save the utm_id from the referring URL using _learnq.push in an EventListener for a Submit button on a Klaviyo embedded form. _learnq is populated correctly in the debugger and returns 1.
_learnq.push(h‘indentify’, {
'$email' : e.detail.metaDatam"$email"],
'$first_name' : e.detail.metaDatal"$first_name"],
'Campaign ID' : utm_id
}]);
Campaign ID is not coming through to the profile, even though _learnq.push is returning 1.
Can anyone on this thread help me?
Thanks!
Roy