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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	confirmEmail: String,
	confirmPassword: String,
	context: String,
	forceResetPassword: False,
	contactId: String,
	retailerId: String,
	billingZip: String,
	salesRepId: String,
	newSalesRepId: String,
	salesRep: 
	{
		id: String,
		name: String,
		email: String,
		bio: String,
		regionId: String,
		repGroupId: String,
		commissionGroup: String,
		phone: String,
		manager: String,
		address: String,
		city: String,
		state: String,
		zip: String,
		country: String,
		isActive: False,
		customerServiceEmailAddress: String
	},
	role: Administrator,
	primaryEmail: String,
	address: String,
	address2: String,
	city: String,
	state: String,
	zip: String,
	country: String,
	parentRepId: String,
	registrationStatus: String,
	roles: 
	[
		Administrator
	],
	permissions: 
	[
		String
	],
	personName: 
	{
		salutation: "",
		first: String,
		middle: "",
		last: String,
		suffix: "",
		full: String String
	},
	fullName: String String,
	name: String String,
	firstName: String,
	lastName: String,
	shard: String,
	meta: 
	{
		String: String,
		Tags: "{
			String: 
			[
				String
			]
		}"
	},
	tags: 
	{
		String: 
		[
			String
		]
	},
	userName: String,
	displayName: String,
	email: String,
	password: String,
	autoLogin: False,
	continue: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	userId: String,
	sessionId: String,
	userName: String,
	referrerUrl: String,
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	},
	meta: 
	{
		String: String
	}
}