Additional services API

Add additional service subscription

POST /rest/v1/subjects/customers/:customer_id/subscriptions/:subscription_id/additional_services

Parameters

Name Description
n_subscription_id Subscription
n_service_id Service
n_quant Quant
n_par_subscription_id Parent subscription
d_begin Date of begin
d_end Date of end
immediate Change actual charge log

Request

Headers

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

Route

POST /rest/v1/subjects/customers/78065201/subscriptions/78069101/additional_services

Body

{"additional_service":{"n_par_subscription_id":78069101,"n_service_id":40216101,"d_begin":"2016-09-26T04:26:41+03:00","d_end":"2016-10-26T04:26:41+03:00","n_quant":1,"immediate":true}}

Response

Headers

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

Status

201 Created

Body

{"additional_service":{"n_subscription_id":88436601,"n_service_id":40216101,"n_quant":"1","d_begin":"2016-09-26T04:26:41+03:00","d_end":"2016-10-26T04:26:41+03:00","n_par_subscription_id":78069101,"actions":{"show":"http://example.org/rest/v1/subjects/customers/78065201/subscriptions/88436601","edit":"http://example.org/rest/v1/subjects/customers/78065201/subscriptions/88436601/edit"}},"navigation":{"self":"http://example.org/rest/v1/subjects/customers/78065201/subscriptions/78069101/additional_services","customer":"http://example.org/rest/v1/subjects/customers/78065201","additional_services":"http://example.org/rest/v1/subjects/customers/78065201/subscriptions/78069101/additional_services"}}