POST api/Account/RegisterCompany/SimpleCustomer

Request Information

URI Parameters

None.

Body Parameters

CompanyRegisterSimpleBindingModel
NameDescriptionTypeAdditional information
CompanyName

string

Required

String length: inclusive between 0 and 125

CompanyAddress

string

Data type: Text

CompanyPhone

string

String length: inclusive between 0 and 25

CountryId

string

Required

String length: inclusive between 0 and 5

CurrencyId

string

Required

String length: inclusive between 0 and 5

Firstname

string

String length: inclusive between 0 and 100

Lastname

string

String length: inclusive between 0 and 100

UserPhone

string

String length: inclusive between 0 and 25

Email

string

String length: inclusive between 0 and 100

CompanyEmail

string

String length: inclusive between 0 and 100

Request Formats

application/json, text/json

Sample:
{
  "CompanyName": "sample string 1",
  "CompanyAddress": "sample string 2",
  "CompanyPhone": "sample string 3",
  "CountryId": "sample string 4",
  "CurrencyId": "sample string 5",
  "Firstname": "sample string 6",
  "Lastname": "sample string 7",
  "UserPhone": "sample string 8",
  "Email": "sample string 9",
  "CompanyEmail": "sample string 10"
}

application/xml, text/xml

Sample:
<CompanyRegisterSimpleBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <CompanyAddress>sample string 2</CompanyAddress>
  <CompanyEmail>sample string 10</CompanyEmail>
  <CompanyName>sample string 1</CompanyName>
  <CompanyPhone>sample string 3</CompanyPhone>
  <CountryId>sample string 4</CountryId>
  <CurrencyId>sample string 5</CurrencyId>
  <Email>sample string 9</Email>
  <Firstname>sample string 6</Firstname>
  <Lastname>sample string 7</Lastname>
  <UserPhone>sample string 8</UserPhone>
</CompanyRegisterSimpleBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserInfoViewModel
NameDescriptionTypeAdditional information
Username

string

None.

Email

string

None.

HasRegistered

boolean

None.

LoginProvider

string

None.

CompanyCode

string

None.

UserProfileId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Email": "sample string 2",
  "HasRegistered": true,
  "LoginProvider": "sample string 4",
  "CompanyCode": "sample string 5",
  "UserProfileId": "sample string 6"
}

application/xml, text/xml

Sample:
<UserInfoViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models">
  <CompanyCode>sample string 5</CompanyCode>
  <Email>sample string 2</Email>
  <HasRegistered>true</HasRegistered>
  <LoginProvider>sample string 4</LoginProvider>
  <UserProfileId>sample string 6</UserProfileId>
  <Username>sample string 1</Username>
</UserInfoViewModel>