Subscriptions API

Show subscription

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

Request

Headers

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

Route

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

Response

Headers

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

Status

200 OK

Body

{
  "subscription": {
    "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"
    }
  },
  "navigation": {
    "self": "http://example.org/rest/v1/subjects/customers/302/subscriptions/40240701",
    "customer": "http://example.org/rest/v1/subjects/customers/302",
    "subscriptions": "http://example.org/rest/v1/subjects/customers/302/subscriptions"
  }
}