Available services API

List available services

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

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

Query Parameters

n_account_id: 78065501
n_equipment_id: 78179301
n_contract_id: 78066701

Response

Headers

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

Status

200 OK

Body

{"available_services":[{"n_contract_id":78066701,"n_service_id":50164901,"vc_code":"\u0412\u0435\u043d\u0435\u0440\u0430","vc_name":"\u0412\u0435\u043d\u0435\u0440\u0430","n_price":"280","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50165101,"vc_code":"\u0417\u0435\u043c\u043b\u044f","vc_name":"\u0417\u0435\u043c\u043b\u044f","n_price":"380","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50164701,"vc_code":"\u041c\u0430\u0440\u0441","vc_name":"\u041c\u0430\u0440\u0441","n_price":"200","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50164601,"vc_code":"\u041c\u0435\u0440\u043a\u0443\u0440\u0438\u0439","vc_name":"\u041c\u0435\u0440\u043a\u0443\u0440\u0438\u0439","n_price":"100","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50165301,"vc_code":"\u041d\u0435\u043f\u0442\u0443\u043d","vc_name":"\u041d\u0435\u043f\u0442\u0443\u043d","n_price":"500","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50165501,"vc_code":"\u0421\u0430\u0442\u0443\u0440\u043d","vc_name":"\u0421\u0430\u0442\u0443\u0440\u043d","n_price":"700","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50165701,"vc_code":"\u042e\u043f\u0438\u0442\u0435\u0440","vc_name":"\u042e\u043f\u0438\u0442\u0435\u0440","n_price":"1000","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Manual","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50188901,"vc_code":"\u0411\u0435\u0437\u043b\u0438\u043c\u0438\u0442 100","vc_name":"\u0411\u0435\u0437\u043b\u0438\u043c\u0438\u0442 100","n_price":"1500","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50189001,"vc_code":"\u0411\u0435\u0437\u043b\u0438\u043c\u0438\u0442 200","vc_name":"\u0411\u0435\u0437\u043b\u0438\u043c\u0438\u0442 200","n_price":"1800","vc_unit":"UNIT_Unknown","vc_subscription_permission":"SERV_CONTYPE_Auto","vc_currency":"CURR_Ruble"},{"n_contract_id":78066701,"n_service_id":50189201,"vc_code":"\u0411\u0435\u0437\u043b\u0438\u043c\u0438\u0442 300","vc_name":"\u0411\u0435\u0437\u043b\u0438\u043c\u0438\u0442 300","n_price":"2000","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","customer":"http://example.org/rest/v1/subjects/customers/78065201"}}