All Verbs | /GetUserNotifications/ |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Count | query | int | No | |
Page | query | int | No | |
NotificationType | query | NotificationTypes? | No | |
RelatedId | query | string | No | |
ShowDeleted | query | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
start | form | DateTime | No | |
DeviceUUID | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NotificationList | form | List<NotificationDTO> | No | |
UnReadCount | form | long | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | form | bool | No | |
ResMessage | form | string | No | |
Error | form | Error | No | |
PageInfo | form | BasePageInfo | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ErrorYn | form | bool | No | |
ErrorCode | form | string | No | |
ErrorDescription | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
TotalRecordCount | form | int | No | |
TotalPageCount | form | int | No | |
CurrentPage | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NotificationId | form | int | No | |
UserId | form | int | No | |
NotificationType | form | NotificationTypes | No | |
Title | form | string | No | |
MessageText | form | string | No | |
MessageData | form | string | No | |
CreatedDate | form | DateTime | No | |
SendDate | form | DateTime | No | |
IsRead | form | bool | No | |
RelatedRecord | form | string | No | |
RelatedId | form | string | No | |
TemplateCode | form | string | No | |
RelatedUserId | form | int? | No |
Name | Value |
---|---|
Common | 1 |
NewMessage | 2 |
HelpDesk | 3 |
DailyReport | 11 |
TransRejectedBySaler | 12 |
TransApprovedBySaler | 13 |
NewTransaction | 14 |
TransactionIsRated | 15 |
PostIsExpried | 16 |
CampaingIsEnding | 17 |
TransApprovedByAdmin | 32 |
TransRejectedByAdmin | 33 |
NewPost | 51 |
PriceChange | 52 |
RememberTransApprove | 53 |
RememberTransRate | 54 |
TransApprovedByBuyer | 55 |
TransRejectedByBuyer | 56 |
TransCancelledByBuyer | 57 |
TransExtendShippingDate | 58 |
TransAutoRejectForNoCargo | 59 |
TransRememberForCargo | 60 |
Advertisement | 61 |
NewCampaign | 62 |
SalerStartShippment | 63 |
ReturnCreatedByBuyer | 71 |
ReturnRequestApprovedBySaler | 72 |
ReturnRequestRejectedBySaler | 73 |
ReturnRequestCancelByBuyer | 74 |
ReturnApprovedByAdmin | 75 |
ReturnRejectedByAdmin | 76 |
BuyerStartShippment | 77 |
ReturnApprovedBySaler | 78 |
ReturnRejectedBySaler | 79 |
PostSendApprove | 80 |
PostSave | 81 |
PostApprove | 82 |
PostReject | 83 |
PostIsUpdated | 84 |
PostPublish | 85 |
PostUnpublished | 86 |
StoreSendApprove | 90 |
StoreSave | 91 |
StoreApprove | 92 |
StoreReject | 93 |
StoreIsUpdated | 94 |
StorePublish | 95 |
StoreUnpublished | 96 |
FollowUser | 101 |
FollowStore | 102 |
FollowPost | 103 |
ReturnAutoRejectForNoCargo | 104 |
ReturnRequestRemember | 105 |
ReturnRequestApprovedByAdmin | 106 |
ReturnRequestAutoApproved | 107 |
ReturnRememberDelivery | 108 |
ReturnRequestRejectedByAdmin | 109 |
ReturnAutoApproved | 110 |
ReturnAutoRejectForNoInStore | 111 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NotificationList | form | List<NotificationDTO> | No | |
UnReadCount | form | long | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
Count: 0,
Page: 0,
NotificationType: 0,
RelatedId: String,
ShowDeleted: False,
start: 2021-01-21T14:43:03.6943770+03:00,
DeviceUUID: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { NotificationList: [ { NotificationId: 0, UserId: 0, NotificationType: 1, Title: String, MessageText: String, MessageData: String, CreatedDate: 0001-01-01, SendDate: 0001-01-01, IsRead: False, RelatedRecord: String, RelatedId: String, TemplateCode: String, RelatedUserId: 0 } ], UnReadCount: 0, Result: False, ResMessage: String, Error: { ErrorYn: False, ErrorCode: String, ErrorDescription: String }, PageInfo: { TotalRecordCount: 0, TotalPageCount: 0, CurrentPage: 0 } }