| POST | /company |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UniqueId | body | string | No | |
| CreatedDateTime | body | DateTime | No | |
| ClientId | body | int | No | |
| GroupId | body | string | No | |
| CompanyId | body | int | No | |
| ExternalCompanyId | body | string | No | |
| CompanyName | body | string | No | |
| Address1 | body | string | No | |
| Address2 | body | string | No | |
| City | body | string | No | |
| State | body | string | No | |
| ZipCode | body | string | No | |
| Country | body | string | No | |
| Website | body | string | No | |
| PhoneNumber | body | string | No | |
| Fax | body | string | No | |
| StateId | body | int | No | |
| CountryId | body | int | No | |
| ChapId | body | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UniqueId | form | string | No | |
| CompanyId | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ErrorCode | form | int | No | |
| ErrorMessage | form | string | No | |
| IsError | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}