Billing

Retrieve tenant billing configurations.

get

Retrieve details of tenant billing configurations.

Authorizations
Responses
200
OK
application/json
get
GET /api/tenant/billing HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "enabled": false,
  "account": "TENANT",
  "type": "OFFLINE"
}

Update tenant billing configurations.

post

Update tenant billing configurations.

Authorizations
Body
enabledbooleanOptional

Enable call billing or not.

Default: false
accountstring · enumOptional

The billing account:
Can be either:

  • TENANT: Use company account for billing.
  • USER: Use private user account for billing.
Default: TENANTPossible values:
typestring · enumOptional

The billing type:
Can be either:

  • OFFLINE: Use offline charging for billing.
  • ONLINE: Use online charging for billing.
Default: OFFLINEPossible values:
Responses
200
OK
post
POST /api/tenant/billing HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "enabled": false,
  "account": "TENANT",
  "type": "OFFLINE"
}

No content