VoiceBilling

Get average voice spending forecast

Retrieve forecasted voice spending information based on your current month's billing activity. The response includes the estimated average daily spending, the estimated next payment date and amount, and the estimated number of days remaining until the next payment. All values are projections calculated from your current voice usage and billing data and are intended for informational purposes. If the forecast exceeds the maximum supported prediction horizon, the response indicates this via the is_limited_by_horizon field.

GET
/api/v1/voice/billing/spending

Header Parameters

Authorization*string

Your API token

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://dev-refactor-api-e.voipenv.uk/api/v1/voice/billing/spending" \  -H "Authorization: string"
{
  "code": 0,
  "data": {
    "days_left": 0,
    "is_limited_by_horizon": true,
    "next_payment_amount": 0,
    "next_payment_date": "string",
    "spending_per_day": 0
  },
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "ok"
}
{
  "code": 0,
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "error"
}
{
  "code": 0,
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "error"
}
{
  "code": 0,
  "error_details": {
    "property1": [
      "string"
    ],
    "property2": [
      "string"
    ]
  },
  "message": "string",
  "request_id": "string",
  "status": "error"
}
Form Call To Action

Contact us

You can always send us a message or email. Weʼd be happy to help you out.