GET | /billing |
---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Voice.Api.Billing;
namespace Voice.Api.Billing
{
public partial class BillingCustomerInfo
{
public virtual string CustomerId { get; set; }
public virtual double InternationalCosts { get; set; }
public virtual bool HasCallRecording { get; set; }
}
public partial class BillingInfo
{
public virtual List<BillingCustomerInfo> Customers { get; set; }
}
///<summary>
///Get the billing totals for the specified date range. Please note that we do not support getting billing at the hourly time granularity.
///</summary>
[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.")]
public partial class GetBilling
{
///<summary>
///Your Evo Voice Account ID
///</summary>
[ApiMember(Description="Your Evo Voice Account ID", IsRequired=true)]
public virtual string AccountId { get; set; }
///<summary>
///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)
///</summary>
[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)]
public virtual string StartDate { get; set; }
///<summary>
///The end of the date range you want to query for (we will include this entire day in the billing)
///</summary>
[ApiMember(Description="The end of the date range you want to query for (we will include this entire day in the billing)", IsRequired=true)]
public virtual string EndDate { get; set; }
///<summary>
///Specify this to filter to a specific customer.
///</summary>
[ApiMember(Description="Specify this to filter to a specific customer.")]
public virtual string CustomerId { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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: team.evovoice.io Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"customers":[{"customerId":"String","internationalCosts":0,"hasCallRecording":false}]}