How do you create a profile and track orders to their profile via API?

  • 2 June 2022
  • 2 replies

Badge +2

Hi !

I want to create custom order on Klaviyo. I only have customer name, email and phone number for creating customer on klaviyo.

and for order creating I have products name, qty , and price. Can anyone please tell me exact API's for create customer and create order against that customer.

thanks in advance.


Abdul Majid


Best answer by Taylor Tarpley 2 June 2022, 23:50

View original

2 replies

Userlevel 7
Badge +60

Hi @majid


Welcome to the Community! Glad to have you and happy to help! 


You can definitely use the information you have to create a profile in Klaviyo via API.  I’d recommend taking these steps to do so:

  1. Using the Identify Endpoint to create the profile via API
curl --request POST \
--url \
--header 'Accept: text/html' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'data={"token": "PUBLIC_KEY","properties": {"$email":""}}'
  1. Using the the Track Endpoint to track their activity
curl --request GET \
--url '' \
--header 'Accept: application/json'


Additionally, if you are looking to create a profile via API and add it to a List in Klaviyo, I’d use the steps in our API documentation here. It should be noted however, that users would need to confirm their email address via the double opt-in process before they are created and added to the List. Our Klaviyo Developer Portal has many resources averrable at your fingertips that I’d recommend checking out to get more familiar with API.


Finally, another Community members had a similar question that I’d suggest checking out to gain further insight!


Thanks for participating in the Community!


Userlevel 7
Badge +45

@majid adding to what @Taylor Tarpley mentioned I've found these instructions/examples also to be very helpful


Hope it helps!


Omar Lovert

Polaris Growth