Create a recipient event
A recipient event can be used for tracking campaign engagement and conversions. Events can also be recorded so communication can be triggered automatically.
Request
using RestSharp;
var client = new RestClient("https://api-us1.stannp.com/v1/recipientEvents/create?api_key={API_KEY}");
var request = new RestRequest(Method.POST);
request.AddParameter("name", "PURCHASE");
request.AddParameter("value", "24.99");
request.AddParameter("conversion", "true");
request.AddParameter("recipient_id", "12345");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Response
{ "success": true, "data": 266 }