Billhighway Cloud API

<back to all web services

Company

The following routes are available for this service:
POST/company
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO.SalesForce
Imports BH.CloudAPI.Common.DTO

Namespace Global

    Namespace BH.CloudAPI.Common.DTO

        Public Partial Class ReplyBase
            Implements IHaveErrorField
            Public Overridable Property ErrorCode As Integer
            Public Overridable Property ErrorMessage As String
            Public Overridable Property IsError As Boolean
        End Class
    End Namespace

    Namespace BH.CloudAPI.Common4.DTO.SalesForce

        Public Partial Class Company
            Public Overridable Property UniqueId As String
            Public Overridable Property CreatedDateTime As Date
            Public Overridable Property ClientId As Integer
            Public Overridable Property GroupId As String
            Public Overridable Property CompanyId As Integer
            Public Overridable Property ExternalCompanyId As String
            Public Overridable Property CompanyName As String
            Public Overridable Property Address1 As String
            Public Overridable Property Address2 As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property ZipCode As String
            Public Overridable Property Country As String
            Public Overridable Property Website As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property Fax As String
            Public Overridable Property StateId As Integer
            Public Overridable Property CountryId As Integer
            Public Overridable Property ChapId As Integer
        End Class

        Public Partial Class CompanyReply
            Inherits ReplyBase
            Public Overridable Property UniqueId As String
            Public Overridable Property CompanyId As Integer
        End Class
    End Namespace
End Namespace

VB.NET Company 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 /company HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","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: application/json
Content-Length: length

{"UniqueId":"String","CompanyId":0,"ErrorCode":0,"ErrorMessage":"String","IsError":false}