Alve API Access Application no longer accepts requests.

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
price_drop The price of an SKU favorited by the User has been reduced
availability_true An SKU favorited by the User is again available at a Shop
sku_release A "future" SKU has been released
sku_review Review(s) have been published for an SKU favorited by the User
sku_review_rephrase_request Rephrase request for a SKU review
sku_review_approve_after_update A SKU review has been approved after rephrasing

List notifications

  GET /notifications

GET https://api.alve.com/notifications

View Response Params
{
  "per": 1
}
Show Headers
Status: 200
{
  "notifications": [
    {
      "id": 45030,
      "etype": "price_up",
      "eventable_id": 705848,
      "eventable_type": "Sku",
      "eventable_name": "General Mobile Discovery Elite 32GB",
      "eventable_url": "https://www.alve.com/s/705848/General-Mobile-Discovery-Elite-32GB.html?from=account_notifications",
      "event_text": null,
      "snapshot": {
        "price_min": 1019.0,
        "latest_price": 1008.81,
        "change_rate": 0.01
      },
      "is_viewed": true,
      "aggregated": false,
      "created_at": "2015-03-10T12:10:38+02:00",
      "updated_at": "2015-03-11T16:00:39+02:00",
      "sku": {
        "id": 705848,
        "display_name": "General Mobile Discovery Elite 32GB",
        "images": {
          "main": "http://alve-d.scdn.gr/images/sku_main_images/000705/705848/medium_discoveryElite_size.png",
          "alternatives": [
            "http://alve-a.scdn.gr/images/sku_images/000815/815720/discoveryElite_Detail _right.png",
            "http://alve-c.scdn.gr/images/sku_images/000815/815721/discoveryElite_Detail_01.png",
            "http://alve-c.scdn.gr/images/sku_images/000815/815722/discoveryElite_Detail_02.png",
            "http://alve-c.scdn.gr/images/sku_images/000815/8157 23/discoveryElite_Detail_03.png",
            "http://alve-c.scdn.gr/images/sku_images/000815/815724/discoveryElite_Detail_04.png"
          ]
        },
        "click_url": null,
        "virtual": false,
        "future": false
      },
      "category_name": "Cep Telefonu"
    }
  ],
  "meta": {
    "pagination": {
      "total_results": 3,
      "total_pages": 3,
      "page": 1,
      "per": 1
    }
  }
}

Retrieve a single notification

  GET /notifications/:id

GET https://api.alve.com/notifications/10850

View Response
Show Headers
Status: 200
{
  "notification": {
    "id": 10850,
    "etype": "price_drop",
    "eventable_id": 705848,
    "eventable_type": "Sku",
    "eventable_name": "General Mobile Discovery Elite 32GB",
    "eventable_url": "https://www.alve.com/s/705848/General-Mobile-Discovery-Elite-32GB.html?from=account_notifications",
    "event_text": null,
    "snapshot": {
      "price_min": 1169.9,
      "latest_price": 1195.87,
      "change_rate": 0.022
    },
    "is_viewed": true,
    "aggregated": false,
    "created_at": "2014-07-18T18:18:59+03:00",
    "updated_at": "2014-07-21T12:06:27+03:00"
  }
}

Mark notifications as viewed

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

POST https://api.alve.com/notifications/view

View Response Params
{
  "ids": [
    42478,
    45030
  ]
}
Show Headers
Status: 204