Available services API

List available services by parent subscription

GET /rest/v1/subjects/customers/:customer_id/available_services?n_account_id=:n_account_id&n_equipment_id=:n_equipment_id&n_contract_id=:n_contract_id&n_par_subscription_id=:n_par_subscription_id

Request

Headers

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

Route

GET /rest/v1/subjects/customers/78065201/available_services?n_account_id=78065501&n_equipment_id=78179301&n_contract_id=78066701&n_par_subscription_id=78069101

Query Parameters

n_account_id: 78065501
n_equipment_id: 78179301
n_contract_id: 78066701
n_par_subscription_id: 78069101

Response

Headers

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

Status

200 OK

Body

{"available_services":[{"n_contract_id":78066701,"n_service_id":40217401,"vc_code":"\u0414\u043e\u0441\u0442\u0443\u043f \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442","vc_name":"\u0414\u043e\u0441\u0442\u0443\u043f \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442","n_price":"0","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":40216101,"vc_code":"\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441","vc_name":"\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441","n_price":"150","vc_unit":"UNIT_Piece","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50555501,"vc_code":"\u0421\u043c\u0435\u043d\u0430 \u0442\u0430\u0440\u0438\u0444\u0430","vc_name":"\u0421\u043c\u0435\u043d\u0430 \u0442\u0430\u0440\u0438\u0444\u0430","n_price":"0","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":54815301,"vc_code":"\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c","vc_name":"\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c","n_price":"100","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"}],"navigation":{"self":"http://example.org/rest/v1/subjects/customers/78065201/available_services?n_account_id=78065501&n_equipment_id=78179301&n_contract_id=78066701&n_par_subscription_id=78069101","customer":"http://example.org/rest/v1/subjects/customers/78065201"}}