GET | /billing |
---|
"use strict";
export class BillingCustomerInfo {
/** @param {{customerId?:string,internationalCosts?:number,hasCallRecording?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
customerId;
/** @type {number} */
internationalCosts;
/** @type {boolean} */
hasCallRecording;
}
export class BillingInfo {
/** @param {{customers?:BillingCustomerInfo[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {BillingCustomerInfo[]} */
customers;
}
export class GetBilling {
/** @param {{accountId?:string,startDate?:string,endDate?:string,customerId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Your Evo Voice Account ID */
accountId;
/**
* @type {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) */
startDate;
/**
* @type {string}
* @description The end of the date range you want to query for (we will include this entire day in the billing) */
endDate;
/**
* @type {string}
* @description Specify this to filter to a specific customer. */
customerId;
}
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}]}