POST | /billables |
---|
"use strict";
export class NewBillable {
/** @param {{accountId?:string,customerId?:string,sessionId?:string,callSid?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description The account to associate the billable with */
accountId;
/**
* @type {string}
* @description The customer to associate the billable with */
customerId;
/**
* @type {string}
* @description The session ID to associate the billable with. You must specify either this or (AccountId + CustomerID) */
sessionId;
/**
* @type {string}
* @description The call SID to report */
callSid;
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /billables HTTP/1.1
Host: team.evovoice.io
Accept: application/json
Content-Type: application/json
Content-Length: length
{"accountId":"String","customerId":"String","sessionId":"String","callSid":"String"}