Additional services API

Add additional service subscription without unit

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

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":54815301,"d_begin":"2016-09-26T04:26:41+03:00","d_end":"2016-10-26T04:26:41+03:00","immediate":true}}

Response

Headers

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

Status

201 Created

Body

{"additional_service":{"n_subscription_id":88436901,"n_service_id":54815301,"n_quant":null,"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/88436901","edit":"http://example.org/rest/v1/subjects/customers/78065201/subscriptions/88436901/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"}}