| Required role: | Admin |
| POST | /Outbound/Campaigns/{CampaignId}/Conversions |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class OutboundCampaignConversionsRequest
{
public Integer campaignId = null;
public Integer windowHours = null;
public Integer getCampaignId() { return campaignId; }
public OutboundCampaignConversionsRequest setCampaignId(Integer value) { this.campaignId = value; return this; }
public Integer getWindowHours() { return windowHours; }
public OutboundCampaignConversionsRequest setWindowHours(Integer value) { this.windowHours = value; return this; }
}
public static class OutboundCampaignConversionsResult
{
public Integer campaignId = null;
public Integer sentPeople = null;
public Integer sentConverted = null;
public BigDecimal sentRate = null;
public Integer holdoutPeople = null;
public Integer holdoutConverted = null;
public BigDecimal holdoutRate = null;
public BigDecimal liftPoints = null;
public String note = null;
public Integer statusCode = null;
public String message = null;
public Integer getCampaignId() { return campaignId; }
public OutboundCampaignConversionsResult setCampaignId(Integer value) { this.campaignId = value; return this; }
public Integer getSentPeople() { return sentPeople; }
public OutboundCampaignConversionsResult setSentPeople(Integer value) { this.sentPeople = value; return this; }
public Integer getSentConverted() { return sentConverted; }
public OutboundCampaignConversionsResult setSentConverted(Integer value) { this.sentConverted = value; return this; }
public BigDecimal getSentRate() { return sentRate; }
public OutboundCampaignConversionsResult setSentRate(BigDecimal value) { this.sentRate = value; return this; }
public Integer getHoldoutPeople() { return holdoutPeople; }
public OutboundCampaignConversionsResult setHoldoutPeople(Integer value) { this.holdoutPeople = value; return this; }
public Integer getHoldoutConverted() { return holdoutConverted; }
public OutboundCampaignConversionsResult setHoldoutConverted(Integer value) { this.holdoutConverted = value; return this; }
public BigDecimal getHoldoutRate() { return holdoutRate; }
public OutboundCampaignConversionsResult setHoldoutRate(BigDecimal value) { this.holdoutRate = value; return this; }
public BigDecimal getLiftPoints() { return liftPoints; }
public OutboundCampaignConversionsResult setLiftPoints(BigDecimal value) { this.liftPoints = value; return this; }
public String getNote() { return note; }
public OutboundCampaignConversionsResult setNote(String value) { this.note = value; return this; }
public Integer getStatusCode() { return statusCode; }
public OutboundCampaignConversionsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public OutboundCampaignConversionsResult setMessage(String value) { this.message = value; return this; }
}
}
Java OutboundCampaignConversionsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Outbound/Campaigns/{CampaignId}/Conversions HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"campaignId":0,"windowHours":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"campaignId":0,"sentPeople":0,"sentConverted":0,"sentRate":0,"holdoutPeople":0,"holdoutConverted":0,"holdoutRate":0,"liftPoints":0,"note":"String","statusCode":0,"message":"String"}