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
|
Start date
|
d_end
|
End date
|
immediate
|
Change actual charge log
|
Request
Headers
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": "2019-07-26T10:49:47+03:00",
"d_end": "2019-08-25T10:49:47+03:00",
"n_quant": 1,
"immediate": true
}
}
Response
Headers
Status
201 Created
Body
{
"additional_service": {
"n_subscription_id": 93740801,
"n_service_id": 40216101,
"n_quant": "1",
"d_begin": "2019-07-26T10:49:47+03:00",
"d_end": "2019-08-25T10:49:47+03:00",
"n_par_subscription_id": 78069101,
"actions": {
"show": "http://example.org/rest/v1/subjects/customers/78065201/subscriptions/93740801",
"edit": "http://example.org/rest/v1/subjects/customers/78065201/subscriptions/93740801/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"
}
}