active-service

Change service

put/billing/active-services/{active_service_id}/

Request

Path parameters

active_service_idinteger required

Active service ID

Request body

codestring required

Code of service, this code together with type is unique identifier of service

period'P1M' | 'P1Y' duration required
force_downgradeboolean

If set to false, the downgrade occurs after the current period concludes. If set to true, the downgrade happens immediately, applying the prorated price of the current service towards the new service. Should the prorated price exceed the cost of the new service, the new service will be extended for a period that matches the full price value.

Example request

{
  "code": "3days",
  "period": "P1M"
}

Response

Newly activated service

idinteger required
renew_periodstring duration nullable required
valid_untilstring datetime required
in_useboolean required

Says if service is in use for example by a camera

Example response

{
  "current_service": {
    "type": "cloud-recording",
    "code": "3-days"
  },
  "renew_service": {
    "type": "cloud-recording",
    "code": "3-days"
  },
  "renew_period": "P1M"
}

Changes

No recorded changes to this operation across all 1 revision of this API.