Billhighway Cloud API

<back to all web services

Company

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

public class dtos
{

    public static class Company
    {
        public String UniqueId = null;
        public Date CreatedDateTime = null;
        public Integer ClientId = null;
        public String GroupId = null;
        public Integer CompanyId = null;
        public String ExternalCompanyId = null;
        public String CompanyName = null;
        public String Address1 = null;
        public String Address2 = null;
        public String City = null;
        public String State = null;
        public String ZipCode = null;
        public String Country = null;
        public String Website = null;
        public String PhoneNumber = null;
        public String Fax = null;
        public Integer StateId = null;
        public Integer CountryId = null;
        public Integer ChapId = null;
        
        public String getUniqueId() { return UniqueId; }
        public Company setUniqueId(String value) { this.UniqueId = value; return this; }
        public Date getCreatedDateTime() { return CreatedDateTime; }
        public Company setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
        public Integer getClientId() { return ClientId; }
        public Company setClientId(Integer value) { this.ClientId = value; return this; }
        public String getGroupId() { return GroupId; }
        public Company setGroupId(String value) { this.GroupId = value; return this; }
        public Integer getCompanyId() { return CompanyId; }
        public Company setCompanyId(Integer value) { this.CompanyId = value; return this; }
        public String getExternalCompanyId() { return ExternalCompanyId; }
        public Company setExternalCompanyId(String value) { this.ExternalCompanyId = value; return this; }
        public String getCompanyName() { return CompanyName; }
        public Company setCompanyName(String value) { this.CompanyName = value; return this; }
        public String getAddress1() { return Address1; }
        public Company setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public Company setAddress2(String value) { this.Address2 = value; return this; }
        public String getCity() { return City; }
        public Company setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public Company setState(String value) { this.State = value; return this; }
        public String getZipCode() { return ZipCode; }
        public Company setZipCode(String value) { this.ZipCode = value; return this; }
        public String getCountry() { return Country; }
        public Company setCountry(String value) { this.Country = value; return this; }
        public String getWebsite() { return Website; }
        public Company setWebsite(String value) { this.Website = value; return this; }
        public String getPhoneNumber() { return PhoneNumber; }
        public Company setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
        public String getFax() { return Fax; }
        public Company setFax(String value) { this.Fax = value; return this; }
        public Integer getStateId() { return StateId; }
        public Company setStateId(Integer value) { this.StateId = value; return this; }
        public Integer getCountryId() { return CountryId; }
        public Company setCountryId(Integer value) { this.CountryId = value; return this; }
        public Integer getChapId() { return ChapId; }
        public Company setChapId(Integer value) { this.ChapId = value; return this; }
    }

    public static class CompanyReply extends ReplyBase
    {
        public String UniqueId = null;
        public Integer CompanyId = null;
        
        public String getUniqueId() { return UniqueId; }
        public CompanyReply setUniqueId(String value) { this.UniqueId = value; return this; }
        public Integer getCompanyId() { return CompanyId; }
        public CompanyReply setCompanyId(Integer value) { this.CompanyId = value; return this; }
    }

    public static class ReplyBase implements IHaveErrorField
    {
        public Integer ErrorCode = null;
        public String ErrorMessage = null;
        public Boolean IsError = null;
        
        public Integer getErrorCode() { return ErrorCode; }
        public ReplyBase setErrorCode(Integer value) { this.ErrorCode = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public ReplyBase setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public Boolean getIsError() { return IsError; }
        public ReplyBase setIsError(Boolean value) { this.IsError = value; return this; }
    }

}

Java Company DTOs

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

HTTP + JSV

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

POST /company HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UniqueId: String,
	CreatedDateTime: 0001-01-01,
	ClientId: 0,
	GroupId: String,
	CompanyId: 0,
	ExternalCompanyId: String,
	CompanyName: String,
	Address1: String,
	Address2: String,
	City: String,
	State: String,
	ZipCode: String,
	Country: String,
	Website: String,
	PhoneNumber: String,
	Fax: String,
	StateId: 0,
	CountryId: 0,
	ChapId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	UniqueId: String,
	CompanyId: 0,
	ErrorCode: 0,
	ErrorMessage: String,
	IsError: False
}