GET | /billing |
---|
export class NodeParameterMap
{
[key:string] : NodeParameter;
public constructor(init?: Partial<NodeParameterMap>) { (Object as any).assign(this, init); }
}
export class BillingCustomerInfo
{
public customerId: string;
public internationalCosts: number;
public hasCallRecording: boolean;
public constructor(init?: Partial<BillingCustomerInfo>) { (Object as any).assign(this, init); }
}
export class BillingInfo
{
public customers: BillingCustomerInfo[];
public constructor(init?: Partial<BillingInfo>) { (Object as any).assign(this, init); }
}
/** @description 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.")
export class GetBilling
{
/** @description Your Evo Voice Account ID */
// @ApiMember(Description="Your Evo Voice Account ID", IsRequired=true)
public accountId: string;
/** @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) */
// @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 startDate: string;
/** @description 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)
public endDate: string;
/** @description Specify this to filter to a specific customer. */
// @ApiMember(Description="Specify this to filter to a specific customer.")
public customerId: string;
public constructor(init?: Partial<GetBilling>) { (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"customers":[{"customerId":"String","internationalCosts":0,"hasCallRecording":false}]}