Hi @raztamim!
I’m going to check with Engineering on this and I’ll update the thread ASAP!
Best,
Brian
Hi @raztamim!
My apologies for the delay here!
Are you able to try importing this request into a testing tool like Postman, so that we can determine if this is an issue with the payload data?
I tested on my account with Postman and the request was accepted (response: 1), simulating your payload as below:
curl --request POST \
--url https://a.klaviyo.com/api/track \
--header 'accept: text/html' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'data={"token": "PUBLIC_KEY", "event": "Ordered Product", "customer_properties": {"$email": "abraham.lincoln@klaviyo.com"}, "properties": {}}'
It also looks like your missing the header ‘accept: text/html’, although that’s probably not the issue. Also, I’d make sure you verify that the email address is valid before testing. If the call is accepted via Postman, then the issue will likely be found elsewhere in your code.
Best,
Brian