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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
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.20905-0e2b1c2cc5+bernhardthospitality-20231128+bernhardthospitality+umbraco+prod+cms","staticAssetsEndpoint":"//s3.amazonaws.com/emuncloud-staticassets/","assetsPath":"//s3.amazonaws.com/emuncloud-staticassets/","databaseVersion":"0273","databaseLastUpdated":"2022-07-05T15:08:26.6570000Z","clientId":"bh074-hospitality","website":"https://bh074-hosp-b2b.ws.emuncloud.com/","crm":false,"salesManagementMode":false,"agencyMode":false,"localMode":false,"showMode":false,"debugMode":false,"envTags":["Prod","Cms","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-01T00:00:00.0000000Z","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-01T00:00:00.0000000Z","lastModified":"0001-01-01T00:00:00.0000000Z","roles":["String"],"permissions":["String"],"isAuthenticated":false,"fromToken":false,"profileUrl":"String","sequence":"String","tag":0,"authProvider":"String","providerOAuthAccess":[{}]}