Subscriptions API

Close subscription and charge log

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

Request

Headers

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

Route

PUT /rest/v1/subjects/customers/78052201/subscriptions/78060801

Body

{"subscription":{"d_end":"2016-09-26T04:26:43+03:00","close_charge_log":true}}

Response

Headers

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

Status

200 OK

Body

{"subscription":{"n_subscription_id":78060801,"n_service_id":50164701,"n_customer_id":78052201,"n_account_id":78052501,"n_object_id":78056701,"n_quant":null,"n_unit_id":2009,"d_begin":"2015-07-11T18:45:34+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":78060101,"actions":{"show":"http://example.org/rest/v1/subjects/customers/78052201/subscriptions/78060801","edit":"http://example.org/rest/v1/subjects/customers/78052201/subscriptions/78060801/edit"}},"navigation":{"self":"http://example.org/rest/v1/subjects/customers/78052201/subscriptions/78060801","customer":"http://example.org/rest/v1/subjects/customers/78052201","subscriptions":"http://example.org/rest/v1/subjects/customers/78052201/subscriptions"}}