# Current User notifications

## Fetch current user notifications

<mark style="color:blue;">`GET`</mark> `https://emart.castleindia.in /api/notifications?secret=xxxx`

#### Query Parameters

| Name | Type   | Description                                    |
| ---- | ------ | ---------------------------------------------- |
|      | String | Secret key which is obtained from admin panel. |

#### Headers

| Name | Type   | Description  |
| ---- | ------ | ------------ |
|      | String | Bearer Token |

{% tabs %}
{% tab title="200: OK Upon successful response you will get the following" %}
```javascript
{
    "notifications": [
        {
            "data": {
                "data": "Your order #EODD61d2d43917c8f placed successfully !",
                "n_type": "order",
                "url": "61d2d43917c8f"
            },
            "created_at": "2022-01-03T10:47:50.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61d2d3c3117f3 placed successfully !",
                "n_type": "order",
                "url": "61d2d3c3117f3"
            },
            "created_at": "2022-01-03T10:45:52.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61d2d289487ee placed successfully !",
                "n_type": "order",
                "url": "61d2d289487ee"
            },
            "created_at": "2022-01-03T10:40:32.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD placed successfully !",
                "n_type": "order",
                "url": null
            },
            "created_at": "2022-01-03T10:29:47.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61d291c01f5b7 placed successfully !",
                "n_type": "order",
                "url": "61d291c01f5b7"
            },
            "created_at": "2022-01-03T06:04:20.000000Z"
        },
        {
            "data": {
                "data": "Your Item Maggi Masala Ae Magic 6 g (Pack of 12)(  ) has been Cancelled",
                "n_type": "order",
                "url": "61ae04e449f1f"
            },
            "created_at": "2021-12-06T12:41:55.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ae04e449f1f placed successfully !",
                "n_type": "order",
                "url": "61ae04e449f1f"
            },
            "created_at": "2021-12-06T12:41:09.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab5c39ae90c placed successfully !",
                "n_type": "order",
                "url": "61ab5c39ae90c"
            },
            "created_at": "2021-12-04T12:16:59.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab5b5e6cbf3 placed successfully !",
                "n_type": "order",
                "url": "61ab5b5e6cbf3"
            },
            "created_at": "2021-12-04T12:13:18.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab5a71b4af1 placed successfully !",
                "n_type": "order",
                "url": "61ab5a71b4af1"
            },
            "created_at": "2021-12-04T12:09:21.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab5a134bd46 placed successfully !",
                "n_type": "order",
                "url": "61ab5a134bd46"
            },
            "created_at": "2021-12-04T12:07:48.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab302ecf437 placed successfully !",
                "n_type": "order",
                "url": "61ab302ecf437"
            },
            "created_at": "2021-12-04T09:09:02.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab2977a3363 placed successfully !",
                "n_type": "order",
                "url": "61ab2977a3363"
            },
            "created_at": "2021-12-04T08:40:25.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61ab0e360e9bd placed successfully !",
                "n_type": "order",
                "url": "61ab0e360e9bd"
            },
            "created_at": "2021-12-04T06:44:07.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61963e9e25972 placed successfully !",
                "n_type": "order",
                "url": "61963e9e25972"
            },
            "created_at": "2021-11-18T11:54:32.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD618fa5529f60a placed successfully !",
                "n_type": "order",
                "url": "618fa5529f60a"
            },
            "created_at": "2021-11-13T11:48:08.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD618cdbe7316d1 placed successfully !",
                "n_type": "order",
                "url": "618cdbe7316d1"
            },
            "created_at": "2021-11-11T09:17:06.000000Z"
        },
        {
            "data": {
                "data": "Your Item iTab(  ) has been Delivered",
                "n_type": "order",
                "url": "6175302cad557"
            },
            "created_at": "2021-11-09T05:33:18.000000Z"
        },
        {
            "data": {
                "data": "Your Item iTab(  ) has been Delivered",
                "n_type": "order",
                "url": "61753832753b0"
            },
            "created_at": "2021-11-09T04:07:43.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61753832753b0 placed successfully !",
                "n_type": "order",
                "url": "61753832753b0"
            },
            "created_at": "2021-10-24T05:11:01.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD6175302cad557 placed successfully !",
                "n_type": "order",
                "url": "6175302cad557"
            },
            "created_at": "2021-10-24T04:37:37.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD617529fb3c5b3 placed successfully !",
                "n_type": "order",
                "url": "617529fb3c5b3"
            },
            "created_at": "2021-10-24T04:10:34.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD placed successfully !",
                "n_type": "order",
                "url": null
            },
            "created_at": "2021-10-24T04:05:15.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616c1fb0d9dde placed successfully !",
                "n_type": "order",
                "url": "616c1fb0d9dde"
            },
            "created_at": "2021-10-17T07:36:38.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616c1eb70b831 placed successfully !",
                "n_type": "order",
                "url": "616c1eb70b831"
            },
            "created_at": "2021-10-17T07:32:42.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616c1790b1e73 placed successfully !",
                "n_type": "order",
                "url": "616c1790b1e73"
            },
            "created_at": "2021-10-17T07:01:40.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616aa95b0271d placed successfully !",
                "n_type": "order",
                "url": "616aa95b0271d"
            },
            "created_at": "2021-10-16T04:59:26.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616aa5f735782 placed successfully !",
                "n_type": "order",
                "url": "616aa5f735782"
            },
            "created_at": "2021-10-16T04:45:40.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616aa1d5577fd placed successfully !",
                "n_type": "order",
                "url": "616aa1d5577fd"
            },
            "created_at": "2021-10-16T04:27:24.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61697cb3cdeda placed successfully !",
                "n_type": "order",
                "url": "61697cb3cdeda"
            },
            "created_at": "2021-10-15T07:41:56.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD6169743751314 placed successfully !",
                "n_type": "order",
                "url": "6169743751314"
            },
            "created_at": "2021-10-15T07:01:20.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61696103ce7d4 placed successfully !",
                "n_type": "order",
                "url": "61696103ce7d4"
            },
            "created_at": "2021-10-15T05:38:22.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61695fed1877d placed successfully !",
                "n_type": "order",
                "url": "61695fed1877d"
            },
            "created_at": "2021-10-15T05:33:42.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61695f39a3086 placed successfully !",
                "n_type": "order",
                "url": "61695f39a3086"
            },
            "created_at": "2021-10-15T05:30:39.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD616936dfd5aaa placed successfully !",
                "n_type": "order",
                "url": "616936dfd5aaa"
            },
            "created_at": "2021-10-15T02:39:16.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61693109c97ac placed successfully !",
                "n_type": "order",
                "url": "61693109c97ac"
            },
            "created_at": "2021-10-15T02:15:00.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD6167da18c96b9 placed successfully !",
                "n_type": "order",
                "url": "6167da18c96b9"
            },
            "created_at": "2021-10-14T01:50:26.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD6167bfae59ce2 placed successfully !",
                "n_type": "order",
                "url": "6167bfae59ce2"
            },
            "created_at": "2021-10-14T00:04:31.000000Z"
        },
        {
            "data": {
                "data": "Your Item MOTOROLA Edge 20 (Frosted Emerald, 128 GB)  (8 GB RAM)(  ) has been Delivered",
                "n_type": "order",
                "url": "614b2cf5bee2f"
            },
            "created_at": "2021-09-22T13:19:06.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD614b2cf5bee2f placed successfully !",
                "n_type": "order",
                "url": "614b2cf5bee2f"
            },
            "created_at": "2021-09-22T13:18:41.000000Z"
        },
        {
            "data": {
                "data": "Your Item MOTOROLA Edge 20 (Frosted Emerald, 128 GB)  (8 GB RAM)(  ) has been Delivered",
                "n_type": "order",
                "url": "614b2954cb0a0"
            },
            "created_at": "2021-09-22T13:05:05.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD614b2954cb0a0 placed successfully !",
                "n_type": "order",
                "url": "614b2954cb0a0"
            },
            "created_at": "2021-09-22T13:02:51.000000Z"
        },
        {
            "data": {
                "data": "Your Item MOTOROLA Edge 20 (Frosted Emerald, 128 GB)  (8 GB RAM)(  ) has been Delivered",
                "n_type": "order",
                "url": "614b1fc9e55e2"
            },
            "created_at": "2021-09-22T12:25:49.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD614b1fc9e55e2 placed successfully !",
                "n_type": "order",
                "url": "614b1fc9e55e2"
            },
            "created_at": "2021-09-22T12:22:27.000000Z"
        },
        {
            "data": {
                "data": "Your Ticket Status has been changed to closed",
                "n_type": "ticket_replay",
                "url": "66735"
            },
            "created_at": "2021-09-21T13:05:47.000000Z"
        },
        {
            "data": {
                "data": "Your Item Maggi Masala Ae Magic 6 g (Pack of 12)(  ) has been Cancelled",
                "n_type": "order",
                "url": "6141b8d9013cb"
            },
            "created_at": "2021-09-15T09:47:59.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD6141b8d9013cb placed successfully !",
                "n_type": "order",
                "url": "6141b8d9013cb"
            },
            "created_at": "2021-09-15T09:13:11.000000Z"
        },
        {
            "data": {
                "data": "Your Item MOTOROLA Edge 20 (Frosted Emerald, 128 GB)  (8 GB RAM)(  ) has been Delivered",
                "n_type": "order",
                "url": "61403c091fd0e"
            },
            "created_at": "2021-09-14T06:09:03.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61403c091fd0e placed successfully !",
                "n_type": "order",
                "url": "61403c091fd0e"
            },
            "created_at": "2021-09-14T06:08:19.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD613b55ee7e8f6 placed successfully !",
                "n_type": "order",
                "url": "613b55ee7e8f6"
            },
            "created_at": "2021-09-10T13:00:25.000000Z"
        },
        {
            "data": {
                "data": "Your order #EODD61335d3d62db6 placed successfully !",
                "n_type": "order",
                "url": "61335d3d62db6"
            },
            "created_at": "2021-09-04T11:49:55.000000Z"
        }
    ],
    "count": 51
}
If user is not authorized 
```
{% endtab %}

{% tab title="401: Unauthorized If user is not authorized" %}
```javascript
{
    "message": "Unauthenticated."
}  
```
{% endtab %}
{% endtabs %}
