Sessions API

List sessions by customer

GET /rest/v1/sessions?customer_id=:customer_id&begin_date=:begin_date

This method lists sessions by customer

Request

Headers

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

Route

GET /rest/v1/sessions?customer_id=55006601&begin_date=2015-08-07T14:41:10+04:00

Query Parameters

customer_id: 55006601
begin_date: 2015-08-07T14:41:10 04:00

Response

Headers

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

Status

200 OK

Body

{"sessions":[{"n_session_id":78221101,"n_type_id":280101,"vc_type_name":"test session type","n_state_id":3182,"vc_ext_id":"UO0YW2NE","vc_par_ext_uniq_id":null,"vc_ext_uniq_id":"st0gl55ws0r1s1gemmrus5p1ymx8za3r","vc_termination_code":null,"n_customer_equipment_id":55009301,"n_provider_equipment_id":54749401,"n_equipment_bind_id":320101,"n_customer_id":55006601,"n_start_customer_profile_id":634001,"n_start_provider_profile_id":null,"n_customer_profile_id":634001,"t_cust_child_profile_ids":null,"n_prev_customer_profile_id":null,"t_prev_child_profile_ids":null,"n_provider_profile_id":null,"n_prev_provider_profile_id":null,"n_service_profile_id":634001,"d_start":"2015-08-07T14:41:10+03:00","d_finish":"2015-08-07T14:41:12+03:00","d_last_upd":"2015-08-17T12:39:55+03:00","d_last_load":"2015-08-17T12:39:55+03:00","c_fl_killed":"Y","t_start_attributes":{"Test start attribute":"Hello world"},"n_firm_id":100,"vc_src_app":"Test sessions generator","vc_load_seance_id":"Test seance","n_scn":"18557301"}],"actions":{"index":"http://example.org/rest/v1/sessions"}}