active-service

Activate new service

Purchase and activate a new service for your account. After activation, assign the service to a camera using the returned active service id.

post/billing/active-services/

Request

  • Base URL
    https://api.angelcam.com/v1
  • Auth
    • OAuth 2
      Authorization codehttps://my.angelcam.com/oauth/authorize/, token URL https://my.angelcam.com/oauth/token/
      PasswordToken URL https://api.angelcam.com/oauth/token/
      Scopesactive_services_manage
    • or API key in header Authorization
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body

codestring required

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

period'P1M' | 'P1Y' duration required

Billing period — P1M for monthly, P1Y for annual.

Example request

{
  "code": "3-days",
  "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.