Billhighway Cloud API

<back to all web services

CreateUpdateEvent

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

public class dtos
{

    public static class CreateUpdateEvent
    {
        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 CreateUpdateEvent setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public CreateUpdateEvent setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public CreateUpdateEvent setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public CreateUpdateEvent setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public CreateUpdateEvent setGroupId(String value) { this.GroupId = value; return this; }
        public String getEventName() { return EventName; }
        public CreateUpdateEvent setEventName(String value) { this.EventName = value; return this; }
        public String getEventDescription() { return EventDescription; }
        public CreateUpdateEvent setEventDescription(String value) { this.EventDescription = value; return this; }
        public String getRegion() { return Region; }
        public CreateUpdateEvent setRegion(String value) { this.Region = value; return this; }
        public String getCostCenter() { return CostCenter; }
        public CreateUpdateEvent setCostCenter(String value) { this.CostCenter = value; return this; }
        public String getRegionCostCenter() { return RegionCostCenter; }
        public CreateUpdateEvent setRegionCostCenter(String value) { this.RegionCostCenter = value; return this; }
    }

    public static class CreateUpdateEventReply 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 CreateUpdateEventReply setClassName(String value) { this.ClassName = value; return this; }
        public String getUniqueId() { return UniqueId; }
        public CreateUpdateEventReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public CreateUpdateEventReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public CreateUpdateEventReply setClientId(Integer value) { this.ClientId = value; return this; }
        public String getBillhighwaycampaignId() { return BillhighwaycampaignId; }
        public CreateUpdateEventReply setBillhighwaycampaignId(String value) { this.BillhighwaycampaignId = value; return this; }
        public Integer getErrorCode() { return ErrorCode; }
        public CreateUpdateEventReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public CreateUpdateEventReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public Boolean getIsError() { return IsError; }
        public CreateUpdateEventReply setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java CreateUpdateEvent DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /event HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","EventName":"String","EventDescription":"String","Region":"String","CostCenter":"String","RegionCostCenter":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"BillhighwaycampaignId":"String","ErrorCode":0,"ErrorMessage":"String","IsError":false}