User Notification Edit the file on GitHub

Note

To access any of the User Notification endpoints, an access_token containing the notifications permission is required.

Notifications are events (price changes of favorite products, subscribed discussion messages, etc).

Table of Contents

Available Notification Types

Type Description
generic A generic type of notification
price_drop The price of an SKU favorited by the User has been reduced
price_up The price of an SKU favorited by the User has increased
availability_true An SKU favorited by the User is again available at a Shop
sku_review Review(s) have been published for an SKU favorited by the User
expert_review Review(s) have been published for an SKU favorited by the User
guide A new shopping guide has been published
sku_deletion An SKU favorited by the User is no longer available in Skroutz
sku_release A "future" SKU has been released
sku_comment A new SKU comment has been published on a discussion the User is subscribed to
sku_comment_reply A new reply has been published on an SKU comment posted by the User
sku_comment_mention The User has been mentioned in an SKU comment

List notifications

  GET /notifications

GET http://api.skroutz.gr/notifications

View Response
Show Headers
Status: 200
{
  "notifications": [
    {
      "id": 314233664,
      "etype": "price_drop",
      "eventable_id": 4672057,
      "eventable_type": "Sku",
      "eventable_name": "Omron M6 HEM-7321",
      "eventable_url": "http://api.skroutz.gr/s/4672057/Omron-M6-HEM-7321.html?from=account_notifications",
      "event_text": null,
      "snapshot": {
        "price_min": 56.19,
        "latest_price": 56.89,
        "change_rate": 0.012,
        "from_threshold": false
      },
      "is_viewed": true,
      "aggregated": false,
      "created_at": "2016-10-05T16:16:29+03:00",
      "updated_at": "2016-10-05T16:46:32+03:00",
      "sku": {
        "id": 4672057,
        "category_id": 1339,
        "display_name": "Omron M6 HEM-7321",
        "images": {
          "main": "https://d.scdn.gr/images/sku_main_images/004672/4672057/medium_14967045-orig.jpg",
          "alternatives": [

          ]
        },
        "click_url": null,
        "virtual": false,
        "future": false,
        "first_product_shop_info": null
      },
      "category_name": "Πιεσόμετρα"
    }
  ],
  "meta": {
    "pagination": {
      "total_results": 100,
      "total_pages": 100,
      "page": 1,
      "per": 1
    }
  }
}

Retrieve a single notification

  GET /notifications/:id

GET http://api.skroutz.gr/notifications/314233664

View Response
Show Headers
Status: 200
{
  "notification": {
    "id": 314233664,
    "etype": "price_drop",
    "eventable_id": 4672057,
    "eventable_type": "Sku",
    "eventable_name": "Omron M6 HEM-7321",
    "eventable_url": "http://api.skroutz.gr/s/4672057/Omron-M6-HEM-7321.html?from=account_notifications",
    "event_text": null,
    "snapshot": {
      "price_min": 56.19,
      "latest_price": 56.89,
      "change_rate": 0.012,
      "from_threshold": false
    },
    "is_viewed": true,
    "aggregated": false,
    "created_at": "2016-10-05T16:16:29+03:00",
    "updated_at": "2016-10-05T16:46:32+03:00",
    "sku": {
      "id": 4672057,
      "category_id": 1339,
      "display_name": "Omron M6 HEM-7321",
      "images": {
        "main": "https://d.scdn.gr/images/sku_main_images/004672/4672057/medium_14967045-orig.jpg",
        "alternatives": [

        ]
      },
      "click_url": null,
      "virtual": false,
      "future": false,
      "first_product_shop_info": null
    },
    "category_name": "Πιεσόμετρα"
  }
}

Mark notifications as viewed

  POST /notifications/view{?ids[]}
Name Type Description
ids Array The notification ids to mark as viewed

POST http://api.skroutz.gr/notifications/view

View Response
Show Headers
Status: 204