Skip to main content
Thomas_Rodier
Contributor IV
Contributor IV
March 16, 2021
Solved

API - Attribution regarding Placed order event

  • March 16, 2021
  • 13 replies
  • 1588 views

Hey Klaviyo community,

 

I’m trying to export my data from klaviyo in order to do analytics stuff.

Here what i want to achieve :

→ Allocate my event “placed_order” to a specific campaign / flow in my Airtable.

Klaviyo is connected to my Shopify store.


Do you know if there is a way to achieve this ?
I dig into the API documentation but nothing helped me.

 

Thanks for your help :relaxed:

Thomas.

    Best answer by jallain

    @Thomas_Rodier That looks like it should work for your first use case although I know that there can sometimes be a few different values to choose from in the spot that you used $attributed_message depending on whether it is a Campaign, Flow, or A/B Test Variation, and which conversion metric you are using.

     

    So if you have any troubles getting the data you are looking for, try experimenting with: $attributed_flow, $message, $campaign, $flow, and $attributed_variation.

     

    Hope that helps!

    13 replies

    Contributor II
    June 3, 2022

    Hi @jallain!

     

    I’m trying to get a simple dump of flow ids and names… running:

    a.klaviyo.com/api/v1/flows?api_key=******

    now errors with: 

    {

    "status": 400,

    "message": "This request is missing the following required params: \"name\"."

    }

    Has this changed?  other suggestions?

    Thanks in advance!

    • Team Cohley!
    Contributor II
    June 3, 2022

    Amazing impact of POST vs. GET… got it working now!

    Contributor I
    April 8, 2025

    Hi,

    Can we have $message included on the “Placed order” event type? or how can we associate compaign with an event?
    It is included in other event types but not in placedorder.
    Thanks