Api >

Service Portal REST API

GET Customer subscriptions
Test setup
Given there is a Customer with ID K0002
Given I am authenticated as Customer K0002
When I send /api/customers/K0002/subscriptions
Then I should receive HTTP/1.1 200 OK
and body with following fields:
{
  "href": "/api/customers/K0002/subscriptions?_offset=0&_pagesize=16",
  "offset": 0,
  "total": 1,
  "size": 1,
  "links": [],
  "items": [{
    "href": null,
    "links": [],
    "data": [{
      "name": "type",
      "value": "FAX_PER_EXTENSION"
    }, {
      "name": "amount",
      "value": 2
    }, {
      "name": "used",
      "value": 1
    }]
  }]
}