Needio.Services

<back to all web services

GetUserPrivilagesRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/GetUserPrivilages/
GetUserPrivilagesRequest Parameters:
NameParameterData TypeRequiredDescription
UserIdqueryint?No
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
GetUserPrivilagesResponse Parameters:
NameParameterData TypeRequiredDescription
UserPrivilageformUserPrivilagesDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
UserPrivilagesDTO Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
Privilagesformstring[]No
IsBlockedformboolNo
IsSalerformboolNo
IsBuyerformboolNo
IsApiUserformboolNo
IsAdminformboolNo
HasPerPostsformboolNo
HasCorpStoresformboolNo
HasPersTransformboolNo
CanCreatePersPostformboolNo
CanCreateStoreformboolNo
BuyerMessageformstringNo
SalerMessageformstringNo
CanAcceptanceOrderformboolNo
GetUserPrivilagesResponse Parameters:
NameParameterData TypeRequiredDescription
UserPrivilageformUserPrivilagesDTONo

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 /User/GetUserPrivilages/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	UserId: 0,
	start: 2020-07-06T00:58:21.9375372+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	UserPrivilage: 
	{
		UserId: 0,
		Privilages: 
		[
			String
		],
		IsBlocked: False,
		IsSaler: False,
		IsBuyer: False,
		IsApiUser: False,
		IsAdmin: False,
		HasPerPosts: False,
		HasCorpStores: False,
		HasPersTrans: False,
		CanCreatePersPost: False,
		CanCreateStore: False,
		BuyerMessage: String,
		SalerMessage: String,
		CanAcceptanceOrder: False
	},
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	}
}