Skip to main content
Solved

Value is Not Passing Through to Create Event API


Forum|alt.badge.img+1

We’re using the Create Events API endpoint https://a.klaviyo.com/api/events/ to pass the value of the order of our customer.  Attributes are passing fine and I can see the “Ordered Product” metric populating with data for the correct customer.  However, the “value” isn’t showing up in the metrics so we can’t run reports.  Here is the code we’re using direct from Klaviyo’s documentation. 

 

https://developers.klaviyo.com/en/docs/guide_to_integrating_a_platform_without_a_pre_built_klaviyo_integration#ordered-product

        

    "data": {
        "type": "event",
        "attributes": {
            "profile": {
                "$email": "john.smith@test.com",
                "$phone_number": "5551234567",
            },
            "metric": {
                "name": "Placed Order"
            },
            "properties": {
                "OrderId": "1234567890",
                }
            },
        "time": "2022-12-05T15:00:00Z",
        "value": 9.99,
        "unique_id": "1234567890"
        }

Anyone know why?

Best answer by ETMichael

The answer was that Revision was older version and I guess it caused issue.  I changed Revision to 2023-02-22 and it works

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

Forum|alt.badge.img+7
  • Klaviyo Employee
  • 169 replies
  • April 5, 2023

Try putting “value” under “properties”. See an example at https://developers.klaviyo.com/en/docs/integrate-an-ecommerce-platform-without-a-pre-built-klaviyo-integration#placed-order

"properties": {

                "Value": 29.98,

                "OrderId": "1234567890",


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 1 reply
  • Answer
  • April 5, 2023

The answer was that Revision was older version and I guess it caused issue.  I changed Revision to 2023-02-22 and it works