Billhighway Cloud API

<back to all web services

SalesForceCreateUpdateEvent

The following routes are available for this service:
POST/api/SalesForce/Event
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SalesForceCreateUpdateEvent
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public String EventName = null;
        public String EventDescription = null;
        public String Region = null;
        public String CostCenter = null;
        public String RegionCostCenter = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCreateUpdateEvent setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCreateUpdateEvent setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCreateUpdateEvent setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCreateUpdateEvent setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public SalesForceCreateUpdateEvent setGroupId(String value) { this.GroupId = value; return this; }
        public String getEventName() { return EventName; }
        public SalesForceCreateUpdateEvent setEventName(String value) { this.EventName = value; return this; }
        public String getEventDescription() { return EventDescription; }
        public SalesForceCreateUpdateEvent setEventDescription(String value) { this.EventDescription = value; return this; }
        public String getRegion() { return Region; }
        public SalesForceCreateUpdateEvent setRegion(String value) { this.Region = value; return this; }
        public String getCostCenter() { return CostCenter; }
        public SalesForceCreateUpdateEvent setCostCenter(String value) { this.CostCenter = value; return this; }
        public String getRegionCostCenter() { return RegionCostCenter; }
        public SalesForceCreateUpdateEvent setRegionCostCenter(String value) { this.RegionCostCenter = value; return this; }
    }

    public static class SalesForceCreateUpdateEventReply implements IHaveErrorField
    {
        public String ClassName = null;
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String BillhighwaycampaignId = null;
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public Boolean IsError = null;
        
        public String getClassName() { return ClassName; }
        public SalesForceCreateUpdateEventReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public SalesForceCreateUpdateEventReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public SalesForceCreateUpdateEventReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public SalesForceCreateUpdateEventReply setClientId(Integer value) { this.ClientId = value; return this; }
        public String getBillhighwaycampaignId() { return BillhighwaycampaignId; }
        public SalesForceCreateUpdateEventReply setBillhighwaycampaignId(String value) { this.BillhighwaycampaignId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public SalesForceCreateUpdateEventReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public SalesForceCreateUpdateEventReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public Boolean getIsError() { return IsError; }
        public SalesForceCreateUpdateEventReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java SalesForceCreateUpdateEvent DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SalesForce/Event HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SalesForceCreateUpdateEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <ClassName>String</ClassName>
  <ClientId>0</ClientId>
  <CostCenter>String</CostCenter>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <EventDescription>String</EventDescription>
  <EventName>String</EventName>
  <GroupId>String</GroupId>
  <Region>String</Region>
  <RegionCostCenter>String</RegionCostCenter>
  <UniqueId>String</UniqueId>
</SalesForceCreateUpdateEvent>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SalesForceCreateUpdateEventReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <BillhighwaycampaignId>String</BillhighwaycampaignId>
  <ClassName>String</ClassName>
  <ClientId>0</ClientId>
  <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <UniqueId>String</UniqueId>
</SalesForceCreateUpdateEventReply>