Needio.Services

<back to all web services

GetUserNotificationsRequest

Requires Authentication
The following routes are available for this service:
All Verbs/GetUserNotifications/
GetUserNotificationsRequest Parameters:
NameParameterData TypeRequiredDescription
CountqueryintNo
PagequeryintNo
NotificationTypequeryNotificationTypes?No
RelatedIdquerystringNo
ShowDeletedqueryboolNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
GetUserNotificationsResponse Parameters:
NameParameterData TypeRequiredDescription
NotificationListformList<NotificationDTO>No
UnReadCountformlongNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
NotificationDTO Parameters:
NameParameterData TypeRequiredDescription
NotificationIdformintNo
UserIdformintNo
NotificationTypeformNotificationTypesNo
TitleformstringNo
MessageTextformstringNo
MessageDataformstringNo
CreatedDateformDateTimeNo
SendDateformDateTimeNo
IsReadformboolNo
RelatedRecordformstringNo
RelatedIdformstringNo
TemplateCodeformstringNo
RelatedUserIdformint?No
NotificationTypes Enum:
NameValue
Common1
NewMessage2
HelpDesk3
DailyReport11
TransRejectedBySaler12
TransApprovedBySaler13
NewTransaction14
TransactionIsRated15
PostIsExpried16
CampaingIsEnding17
TransApprovedByAdmin32
TransRejectedByAdmin33
NewPost51
PriceChange52
RememberTransApprove53
RememberTransRate54
TransApprovedByBuyer55
TransRejectedByBuyer56
TransCancelledByBuyer57
TransExtendShippingDate58
TransAutoRejectForNoCargo59
TransRememberForCargo60
Advertisement61
NewCampaign62
SalerStartShippment63
ReturnCreatedByBuyer71
ReturnApprovedBySaler72
ReturnRejectedBySaler73
PostSendApprove80
PostSave81
PostApprove82
PostReject83
PostIsUpdated84
PostPublish85
PostUnpublished86
StoreSendApprove90
StoreSave91
StoreApprove92
StoreReject93
StoreIsUpdated94
StorePublish95
StoreUnpublished96
FollowUser101
FollowStore102
FollowPost103
GetUserNotificationsResponse Parameters:
NameParameterData TypeRequiredDescription
NotificationListformList<NotificationDTO>No
UnReadCountformlongNo

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

HTTP + CSV

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

POST /GetUserNotifications/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Count":0,"Page":0,"NotificationType":0,"RelatedId":"String","ShowDeleted":false,"start":"\/Date(1593708508343+0300)\/"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"NotificationList":[{"NotificationId":0,"UserId":0,"NotificationType":1,"Title":"String","MessageText":"String","MessageData":"String","CreatedDate":"\/Date(-62135596800000-0000)\/","SendDate":"\/Date(-62135596800000-0000)\/","IsRead":false,"RelatedRecord":"String","RelatedId":"String","TemplateCode":"String","RelatedUserId":0}],"UnReadCount":0,"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"}}