EMUN1 ASP.NET

<back to all web services

GetSession

The following routes are available for this service:
All Verbs/service/auth/session
EmunAuthSession Parameters:
NameParameterData TypeRequiredDescription
MetaformDictionary<string, string>No
WebSiteLogoformstringNo
EnableServerEventsformboolNo
InformationalVersionformstringNo
StaticAssetsEndpointformstringNo
AssetsPathformstringNo
DatabaseVersionformstringNo
DatabaseLastUpdatedformDateTime?No
ClientIdformstringNo
WebsiteformstringNo
CrmformboolNo
SalesManagementModeformboolNo
AgencyModeformboolNo
LocalModeformboolNo
ShowModeformboolNo
DebugModeformboolNo
EnvTagsformHashSet<EnvTags>No
TagsformDictionary<string, HashSet<String>>No
ClientNameformstringNo
AvailableBusinessModelsformBusinessModels[]No
VendorIdformstringNo
SalesRepIdformstringNo
RetailerIdformstringNo
VendorGroupformstringNo
UseOrderPdfformbool?No
MaxShipDatesPerOrderformint?No
MinShipDatesPerOrderformint?No
BusinessModelformBusinessModelsNo
CustomerIdformstringNo
ContactIdformstringNo
ShardformstringNo
AspMembershipIdformGuidNo
AuthUserSession Parameters:
NameParameterData TypeRequiredDescription
ReferrerUrlformstringNo
IdformstringNo
UserAuthIdformstringNo
UserAuthNameformstringNo
UserNameformstringNo
TwitterUserIdformstringNo
TwitterScreenNameformstringNo
FacebookUserIdformstringNo
FacebookUserNameformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
RequestTokenSecretformstringNo
CreatedAtformDateTimeNo
LastModifiedformDateTimeNo
RolesformList<string>No
PermissionsformList<string>No
IsAuthenticatedformboolNo
FromTokenformboolNo
ProfileUrlformstringNo
SequenceformstringNo
TagformlongNo
AuthProviderformstringNo
ProviderOAuthAccessformList<IAuthTokens>No
IAuthTokens Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
UserIdformstringNo
AccessTokenformstringNo
AccessTokenSecretformstringNo
RefreshTokenformstringNo
RefreshTokenExpiryformDateTime?No
RequestTokenformstringNo
RequestTokenSecretformstringNo
ItemsformDictionary<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/session HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	meta: 
	{
		String: String,
		Tags: "{
			String: 
			[
				String
			]
		}"
	},
	webSiteLogo: "https://bh074-hosp-b2b.ws.emuncloud.com/media/3050/bh-hospitality-logo.jpg",
	enableServerEvents: False,
	informationalVersion: 1.0.81.20890-ded7397a19+bernhardthospitality-20231128+bernhardthospitality+umbraco+cms+prod,
	staticAssetsEndpoint: //s3.amazonaws.com/emuncloud-staticassets/,
	assetsPath: //s3.amazonaws.com/emuncloud-staticassets/,
	databaseVersion: 0273,
	databaseLastUpdated: 2022-07-05T15:08:26.6570000+00:00,
	clientId: bh074-hospitality,
	website: "https://bh074-hosp-b2b.ws.emuncloud.com/",
	crm: False,
	salesManagementMode: False,
	agencyMode: False,
	localMode: False,
	showMode: False,
	debugMode: False,
	envTags: 
	[
		Cms,
		Prod,
		NetFramework
	],
	tags: 
	{
		String: 
		[
			String
		]
	},
	clientName: Bernhardt Hospitality,
	availableBusinessModels: 
	[
		Wholesale,
		Retail
	],
	salesRepId: String,
	retailerId: String,
	vendorGroup: String,
	useOrderPdf: True,
	businessModel: Retail,
	customerId: String,
	contactId: String,
	shard: String,
	referrerUrl: String,
	id: String,
	userAuthId: String,
	userAuthName: String,
	userName: String,
	twitterUserId: String,
	twitterScreenName: String,
	facebookUserId: String,
	facebookUserName: String,
	firstName: String,
	lastName: String,
	displayName: String,
	company: String,
	email: String,
	primaryEmail: String,
	phoneNumber: String,
	birthDate: 0001-01-01,
	birthDateRaw: String,
	address: String,
	address2: String,
	city: String,
	state: String,
	country: String,
	culture: String,
	fullName: String,
	gender: String,
	language: String,
	mailAddress: String,
	nickname: String,
	postalCode: String,
	timeZone: String,
	requestTokenSecret: String,
	createdAt: 0001-01-01,
	lastModified: 0001-01-01,
	roles: 
	[
		String
	],
	permissions: 
	[
		String
	],
	isAuthenticated: False,
	fromToken: False,
	profileUrl: String,
	sequence: String,
	tag: 0,
	authProvider: String,
	providerOAuthAccess: 
	[
		{
			
		}
	]
}