Charge logs API

List charge logs by subscription

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

Request

Headers

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

Route

GET /rest/v1/subjects/customers/50162901/subscriptions/61661001/charge_logs

Response

Headers

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

Status

200 OK

Body

{"charge_logs":[{"d_begin":"2016-07-24T00:00:00+03:00","d_end":"2016-08-24T00:00:00+03:00","n_quant":null,"n_sum":"100","n_charged_sum":"100","n_add_services_charges_sum":"150","n_account_id":50163301,"n_service_id":50164601,"n_charge_log_id":80533801,"vc_doc_state":"DOC_STATE_Executed","vc_unit":"UNIT_Unknown","n_equipment_id":61659401,"vc_currency":"CURR_Ruble","additional_services":[{"n_service_id":40216101,"n_quant":"1","n_sum":"150","d_begin":"2016-07-24T15:03:48+03:00","d_end":"2016-08-24T15:03:47+03:00","n_charge_log_id":80533801,"vc_unit":"UNIT_Piece","n_equipment_id":61659401,"vc_currency":"CURR_Ruble"},{"n_service_id":40217401,"n_quant":null,"n_sum":"0","d_begin":"2016-07-24T15:03:48+03:00","d_end":"2016-08-24T15:03:47+03:00","n_charge_log_id":80533801,"vc_unit":"UNIT_Unknown","n_equipment_id":61659401,"vc_currency":"CURR_Ruble"}],"access_services":[]},{"d_begin":"2016-08-24T00:00:00+03:00","d_end":"2016-09-24T00:00:00+03:00","n_quant":null,"n_sum":"100","n_charged_sum":"100","n_add_services_charges_sum":"150","n_account_id":50163301,"n_service_id":50164601,"n_charge_log_id":86794801,"vc_doc_state":"DOC_STATE_Executed","vc_unit":"UNIT_Unknown","n_equipment_id":61659401,"vc_currency":"CURR_Ruble","additional_services":[{"n_service_id":40217401,"n_quant":null,"n_sum":"0","d_begin":"2016-08-24T15:03:48+03:00","d_end":"2016-09-24T15:03:47+03:00","n_charge_log_id":86794801,"vc_unit":"UNIT_Unknown","n_equipment_id":61659401,"vc_currency":"CURR_Ruble"},{"n_service_id":40216101,"n_quant":"1","n_sum":"150","d_begin":"2016-08-24T15:03:48+03:00","d_end":"2016-09-24T15:03:47+03:00","n_charge_log_id":86794801,"vc_unit":"UNIT_Piece","n_equipment_id":61659401,"vc_currency":"CURR_Ruble"}],"access_services":[]},{"d_begin":"2016-09-24T00:00:00+03:00","d_end":"2016-10-24T00:00:00+03:00","n_quant":null,"n_sum":"100","n_charged_sum":"100","n_add_services_charges_sum":"150","n_account_id":50163301,"n_service_id":50164601,"n_charge_log_id":88406801,"vc_doc_state":"DOC_STATE_Actual","vc_unit":"UNIT_Unknown","n_equipment_id":61659401,"vc_currency":"CURR_Ruble","additional_services":[{"n_service_id":40217401,"n_quant":null,"n_sum":"0","d_begin":"2016-09-24T15:03:48+03:00","d_end":"2016-10-24T15:03:47+03:00","n_charge_log_id":88406801,"vc_unit":"UNIT_Unknown","n_equipment_id":61659401,"vc_currency":"CURR_Ruble"},{"n_service_id":40216101,"n_quant":"1","n_sum":"150","d_begin":"2016-09-24T15:03:48+03:00","d_end":"2016-10-24T15:03:47+03:00","n_charge_log_id":88406801,"vc_unit":"UNIT_Piece","n_equipment_id":61659401,"vc_currency":"CURR_Ruble"}],"access_services":[{"n_service_id":40217401,"vc_currency":"CURR_Ruble","n_charge_log_id":88406801,"n_equipment_id":61659401,"connected":true}]}],"navigation":{"self":"http://example.org/rest/v1/subjects/customers/50162901/subscriptions/61661001/charge_logs","customer":"http://example.org/rest/v1/subjects/customers/50162901"}}