10. Stream multiple conversion events to the conversion rule

POST {{baseUrl}}/conversionEvents

Create one or more conversion rules with this endpoint and set conversionMethod to CONVERSIONS_API for streaming conversions through API.

Request Body

{"elements"=>[{"conversion"=>"urn:lla:llaPartnerConversion:{{conversion_id}}", "conversionHappenedAt"=>1695739275000, "conversionValue"=>{"currencyCode"=>"USD", "amount"=>"1500.0"}, "user"=>{"userIds"=>[{"idType"=>"SHA256_EMAIL", "idValue"=>"bad8677b6c86f5d308ee82786c183482a5995f066694246c58c4df37b0cc41f1"}, {"idType"=>"LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID", "idValue"=>"df5gf5-gh6t7-ph4j7h-fgf6n1"}], "userInfo"=>{"firstName"=>"mike", "lastName"=>"smith", "title"=>"software engineer", "companyName"=>"microsoft", "countryCode"=>"US"}}, "eventId"=>"abc12345"}, {"conversion"=>"urn:lla:llaPartnerConversion:{{conversion_id}}", "conversionHappenedAt"=>1695950057000, "conversionValue"=>{"currencyCode"=>"USD", "amount"=>"2000.0"}, "user"=>{"userIds"=>[{"idType"=>"SHA256_EMAIL", "idValue"=>"dsfgrtg56u767ujy982fgnbmcsdocl46c58c56b650cik230bb9"}, {"idType"=>"LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID", "idValue"=>"ufh8h5-gh6t7-ph4j7h-mkl86n1"}], "userInfo"=>{"firstName"=>"jason", "lastName"=>"bourne", "title"=>"tech lead", "companyName"=>"linkedin", "countryCode"=>"US"}}, "eventId"=>"xyz345"}]}

HEADERS

KeyDatatypeRequiredDescription
LinkedIn-Versionstring
X-Restli-Protocol-Versionstring
X-RestLi-Methodstring

RESPONSES

status: OK

{"elements":[{"status":201},{"status":201}]}