subscriptions

GET https://api.bootic.net/v1/hub/{hub_id}/subscriptions

List a shop’s webhook subscriptions.

Status: 200 OK
Content-Type: application/json; charset=utf-8
Connection: keep-alive
ETag: "0728e2965bd03e20a7f1c33add2f8775"
Last-Modified: Fri, 20 Jun 2014 22:34:14 GMT
Cache-Control: must-revalidate, private, max-age=0
Date: Wed, 31 Jul 2013 21:11:52 GMT
X-OAuth-Scopes: public
{
  "_class": [
    "results",
    "hubSubscriptions"
  ],
  "_links": {
    "curies": [
      {
        "name": "btc",
        "href": "https://api.bootic.net/rels/{rel}",
        "templated": true
      }
    ],
    "self": {
      "href": "http://api.bootic.net/v1/hub/47/subscriptions?page=1&per_page=30",
      "name": "self"
    },
    "btc:shop": {
      "href": "http://api.bootic.net/v1/shops/47",
      "docs": "https://api.bootic.net/rels/shop",
      "name": "shop"
    }
  },
  "total_items": 2,
  "per_page": 30,
  "page": 1,
  "_embedded": {
    "items": [
      {
        "_class": [
          "hubSubscription"
        ],
        "_links": {
          "self": {
            "href": "http://api.bootic.net/v1/hub/47/subscriptions/7"
          },
          "btc:history": {
            "title": "All event history for this topic",
            "templated": true,
            "href": "http://api.bootic.net/v1/hub/47/subscriptions/7/history{?page,per_page,sort,item_type,item_id,user_id,since,topic,created_on_gte,created_on_lte}"
          }
        },
        "channel_id": "hook_7",
        "id": 7,
        "status": "active",
        "topic": "orders",
        "url": "http://localhost:3000/events",
        "auth": {
          "type": "none"
        },
        "error_count": 0,
        "last_error": null,
        "created_on": "2018-02-16T19:15:35Z",
        "updated_on": "2018-02-16T19:15:35Z"
      },
      {
        "_class": [
          "hubSubscription"
        ],
        "_links": {
          "self": {
            "href": "http://api.bootic.net/v1/hub/47/subscriptions/3"
          },
          "btc:history": {
            "title": "All event history for this topic",
            "templated": true,
            "href": "http://api.bootic.net/v1/hub/47/subscriptions/3/history{?page,per_page,sort,item_type,item_id,user_id,since,topic,created_on_gte,created_on_lte}"
          }
        },
        "channel_id": "hook_3",
        "id": 3,
        "status": "active",
        "topic": "products",
        "url": "http://localhost:3000/events",
        "auth": {
          "type": "none"
        },
        "error_count": 0,
        "last_error": null,
        "created_on": "2018-02-15T19:16:56Z",
        "updated_on": "2018-02-15T19:16:56Z"
      }
    ]
  }
}

The response is a results entity for a paginated list of items.