EMUN1 ASP.NET

<back to all web services

RegisterUser

The following routes are available for this service:
All Verbs/service/auth/Register/{Role}
All Verbs/service/RegisterUser/{Role}
All Verbs/service/RegisterUser
RegisterUser Parameters:
NameParameterData TypeRequiredDescription
ConfirmEmailquerystringNo
ConfirmPasswordquerystringNo
ContextquerystringNo
ForceResetPasswordqueryboolNo
ContactIdquerystringNo
RetailerIdquerystringNo
BillingZipquerystringNo
SalesRepIdquerystringNo
NewSalesRepIdquerystringNo
SalesRepquerySalesRepNo
RolepathRolesNo
PrimaryEmailquerystringNo
AddressquerystringNo
Address2querystringNo
CityquerystringNo
StatequerystringNo
ZipquerystringNo
CountryquerystringNo
ParentRepIdquerystringNo
RegistrationStatusquerystringNo
RolesqueryList<string>No
PermissionsqueryList<string>No
PersonNamequeryPersonNameInfoNo
FullNamequerystringNo
NamequerystringNo
FirstNamequerystringNo
LastNamequerystringNo
ShardquerystringNo
MetaqueryDictionary<string, string>No
TagsqueryDictionary<string, HashSet<String>>No
Register Parameters:
NameParameterData TypeRequiredDescription
UserNameformstringNo
DisplayNameformstringNo
EmailformstringNo
PasswordformstringNo
AutoLoginformbool?No
ContinueformstringNo
FirstNameformstringNo
LastNameformstringNo
SalesRep Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
EmailformstringNo
BioformstringNo
RegionIdformstringNo
RepGroupIdformstringNo
CommissionGroupformstringNo
PhoneformstringNo
ManagerformstringNo
AddressformstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
IsActiveformboolNo
CustomerServiceEmailAddressformstringNo
PersonNameInfo Parameters:
NameParameterData TypeRequiredDescription
SalutationformstringNo
FirstformstringNo
MiddleformstringNo
LastformstringNo
SuffixformstringNo
FullformstringNo
RegisterResponse Parameters:
NameParameterData TypeRequiredDescription
UserIdformstringNo
SessionIdformstringNo
UserNameformstringNo
ReferrerUrlformstringNo
ResponseStatusformResponseStatusNo
MetaformDictionary<string, string>No

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

HTTP + XML

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

POST /service/auth/Register/{Role} HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RegisterUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun">
  <UserName xmlns="http://schemas.servicestack.net/types">String</UserName>
  <FirstName i:nil="true" xmlns="http://schemas.servicestack.net/types" />
  <LastName i:nil="true" xmlns="http://schemas.servicestack.net/types" />
  <DisplayName xmlns="http://schemas.servicestack.net/types">String</DisplayName>
  <Email xmlns="http://schemas.servicestack.net/types">String</Email>
  <Password xmlns="http://schemas.servicestack.net/types">String</Password>
  <AutoLogin xmlns="http://schemas.servicestack.net/types">false</AutoLogin>
  <Continue xmlns="http://schemas.servicestack.net/types">String</Continue>
  <Address>String</Address>
  <Address2>String</Address2>
  <BillingZip>String</BillingZip>
  <City>String</City>
  <ConfirmEmail>String</ConfirmEmail>
  <ConfirmPassword>String</ConfirmPassword>
  <ContactId>String</ContactId>
  <Context>String</Context>
  <Country>String</Country>
  <FirstName>String</FirstName>
  <ForceResetPassword>false</ForceResetPassword>
  <FullName>String String</FullName>
  <LastName>String</LastName>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>Tags</d2p1:Key>
      <d2p1:Value>{String:[String]}</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
  <Name>String String</Name>
  <NewSalesRepId>String</NewSalesRepId>
  <ParentRepId>String</ParentRepId>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Permissions>
  <PersonName>
    <First>String</First>
    <Full>String String</Full>
    <Last>String</Last>
    <Middle />
    <Salutation />
    <Suffix />
  </PersonName>
  <PrimaryEmail>String</PrimaryEmail>
  <RegistrationStatus>String</RegistrationStatus>
  <RetailerId>String</RetailerId>
  <Role>Administrator</Role>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>Administrator</d2p1:string>
  </Roles>
  <SalesRep xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Users">
    <d2p1:Address>String</d2p1:Address>
    <d2p1:Bio>String</d2p1:Bio>
    <d2p1:City>String</d2p1:City>
    <d2p1:CommissionGroup>String</d2p1:CommissionGroup>
    <d2p1:Country>String</d2p1:Country>
    <d2p1:CustomerServiceEmailAddress>String</d2p1:CustomerServiceEmailAddress>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:Id>String</d2p1:Id>
    <d2p1:IsActive>false</d2p1:IsActive>
    <d2p1:Manager>String</d2p1:Manager>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:Phone>String</d2p1:Phone>
    <d2p1:RegionId>String</d2p1:RegionId>
    <d2p1:RepGroupId>String</d2p1:RepGroupId>
    <d2p1:State>String</d2p1:State>
    <d2p1:Zip>String</d2p1:Zip>
  </SalesRep>
  <SalesRepId>String</SalesRepId>
  <Shard>String</Shard>
  <State>String</State>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
  <Zip>String</Zip>
</RegisterUser>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RegisterResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <UserId>String</UserId>
  <SessionId>String</SessionId>
  <UserName>String</UserName>
  <ReferrerUrl>String</ReferrerUrl>
  <ResponseStatus>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StackTrace>String</StackTrace>
    <Errors>
      <ResponseError>
        <ErrorCode>String</ErrorCode>
        <FieldName>String</FieldName>
        <Message>String</Message>
        <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Meta>
      </ResponseError>
    </Errors>
    <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Meta>
  </ResponseStatus>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
</RegisterResponse>