Evo Voice

<back to all web services

GetBilling

Get the billing totals for the specified date range. Please note that we do not support getting billing at the hourly time granularity.

Requires Authentication
The following routes are available for this service:
GET/billing
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* Get the billing totals for the specified date range. Please note that we do not support getting billing at the hourly time granularity.
*/
@Api(Description="Get the billing totals for the specified date range. Please note that we do not support getting billing at the hourly time granularity.")
open class GetBilling
{
    /**
    * Your Evo Voice Account ID
    */
    @ApiMember(Description="Your Evo Voice Account ID", IsRequired=true)
    var accountId:String? = null

    /**
    * The start of the date range that you want to query for (we will only use the date portion, so it will include the entire day even if you specify a time as well)
    */
    @ApiMember(Description="The start of the date range that you want to query for (we will only use the date portion, so it will include the entire day even if you specify a time as well)", IsRequired=true)
    var startDate:String? = null

    /**
    * The end of the date range you want to query for (we will include this entire day in the billing)
    */
    @ApiMember(Description="The end of the date range you want to query for (we will include this entire day in the billing)", IsRequired=true)
    var endDate:String? = null

    /**
    * Specify this to filter to a specific customer.
    */
    @ApiMember(Description="Specify this to filter to a specific customer.")
    var customerId:String? = null
}

open class BillingInfo
{
    var customers:ArrayList<BillingCustomerInfo> = ArrayList<BillingCustomerInfo>()
}

open class BillingCustomerInfo
{
    var customerId:String? = null
    var internationalCosts:Double? = null
    var hasCallRecording:Boolean? = null
}

Kotlin GetBilling DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /billing HTTP/1.1 
Host: evovoice.io 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"customers":[{"customerId":"String","internationalCosts":0,"hasCallRecording":false}]}