POST api/Account/RegisterCompany
Request Information
URI Parameters
None.
Body Parameters
CompanyRegisterBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| User | RegisterBindingModel |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 125 |
|
| Address | string |
Required Data type: Text |
|
| Telephone | string |
Required |
|
| FaxNbr | string |
Required |
|
| string |
None. |
||
| CountryId | string |
Required String length: inclusive between 0 and 5 |
|
| EmployeeRangeId | integer |
Required |
|
| BranchRangeId | integer |
Required |
|
| RevenueRangeId | integer |
Required |
|
| TradelicenseNbr | string |
String length: inclusive between 0 and 50 |
|
| ImageContent | string |
None. |
|
| IATANbr | string |
String length: inclusive between 0 and 100 |
|
| AssociationNumber | string |
String length: inclusive between 0 and 100 |
|
| CurrencyId | string |
Required String length: inclusive between 0 and 5 |
|
| Level | integer |
None. |
|
| CompanyBusiness | CompanyBusiness |
None. |
|
| ImageName | string |
None. |
|
| PaymentSchemeId | integer |
None. |
|
| AccountManagerId | string |
String length: inclusive between 0 and 256 |
Request Formats
application/json, text/json
Sample:
{
"User": {
"Email": "sample string 1",
"Username": "sample string 2",
"Firstname": "sample string 3",
"Lastname": "sample string 4",
"Address": "sample string 5",
"CountryId": "sample string 6",
"Telephone": "sample string 7",
"Password": "sample string 8",
"ConfirmPassword": "sample string 9"
},
"Name": "sample string 1",
"Address": "sample string 2",
"Telephone": "sample string 3",
"FaxNbr": "sample string 4",
"Email": "sample string 5",
"CountryId": "sample string 6",
"EmployeeRangeId": 1,
"BranchRangeId": 1,
"RevenueRangeId": 1,
"TradelicenseNbr": "sample string 7",
"ImageContent": "sample string 8",
"IATANbr": "sample string 9",
"AssociationNumber": "sample string 10",
"CurrencyId": "sample string 11",
"Level": 1,
"CompanyBusiness": 1,
"ImageName": "sample string 12",
"PaymentSchemeId": 1,
"AccountManagerId": "sample string 13"
}
application/xml, text/xml
Sample:
<CompanyRegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
<AccountManagerId>sample string 13</AccountManagerId>
<Address>sample string 2</Address>
<AssociationNumber>sample string 10</AssociationNumber>
<BranchRangeId>1</BranchRangeId>
<CompanyBusiness>Supplier</CompanyBusiness>
<CountryId>sample string 6</CountryId>
<CurrencyId>sample string 11</CurrencyId>
<Email>sample string 5</Email>
<EmployeeRangeId>1</EmployeeRangeId>
<FaxNbr>sample string 4</FaxNbr>
<IATANbr>sample string 9</IATANbr>
<ImageContent>sample string 8</ImageContent>
<ImageName>sample string 12</ImageName>
<Level>1</Level>
<Name>sample string 1</Name>
<PaymentSchemeId>1</PaymentSchemeId>
<RevenueRangeId>1</RevenueRangeId>
<Telephone>sample string 3</Telephone>
<TradelicenseNbr>sample string 7</TradelicenseNbr>
<User xmlns:d2p1="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models">
<d2p1:Address>sample string 5</d2p1:Address>
<d2p1:ConfirmPassword>sample string 9</d2p1:ConfirmPassword>
<d2p1:CountryId>sample string 6</d2p1:CountryId>
<d2p1:Email>sample string 1</d2p1:Email>
<d2p1:Firstname>sample string 3</d2p1:Firstname>
<d2p1:Lastname>sample string 4</d2p1:Lastname>
<d2p1:Password>sample string 8</d2p1:Password>
<d2p1:Telephone>sample string 7</d2p1:Telephone>
<d2p1:Username>sample string 2</d2p1:Username>
</User>
</CompanyRegisterBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.