Subscriptions API

List subscriptions by customer

GET /rest/v1/subjects/customers/:customer_id/subscriptions

Request

Headers

Accept: application/json
Content-Type: application/json

Route

GET /rest/v1/subjects/customers/302/subscriptions

Response

Headers

Content-Type: application/json; charset=utf-8

Status

200 OK

Body

{
  "subscriptions": [
    {
      "n_subscription_id": 40240701,
      "n_service_id": 40219001,
      "n_customer_id": 302,
      "n_account_id": 40233401,
      "n_object_id": 40236101,
      "n_quant": null,
      "n_unit_id": 2009,
      "d_begin": "2011-01-19T23:12:48+03:00",
      "d_end": null,
      "c_fl_closed": "N",
      "n_line_no": 1000000,
      "n_par_subscription_id": null,
      "n_prev_subscription_id": null,
      "n_contract_id": 40233901,
      "actions": {
        "show": "http://example.org/rest/v1/subjects/customers/302/subscriptions/40240701",
        "edit": "http://example.org/rest/v1/subjects/customers/302/subscriptions/40240701/edit"
      }
    },
    {
      "n_subscription_id": 40240801,
      "n_service_id": 40217401,
      "n_customer_id": 302,
      "n_account_id": 40233401,
      "n_object_id": 40236101,
      "n_quant": null,
      "n_unit_id": 2009,
      "d_begin": "2011-01-19T23:12:48+03:00",
      "d_end": null,
      "c_fl_closed": "N",
      "n_line_no": 1000001,
      "n_par_subscription_id": 40240701,
      "n_prev_subscription_id": null,
      "n_contract_id": 40233901,
      "actions": {
        "show": "http://example.org/rest/v1/subjects/customers/302/subscriptions/40240801",
        "edit": "http://example.org/rest/v1/subjects/customers/302/subscriptions/40240801/edit"
      }
    }
  ],
  "navigation": {
    "self": "http://example.org/rest/v1/subjects/customers/302/subscriptions",
    "customer": "http://example.org/rest/v1/subjects/customers/302"
  }
}