Evo Voice

<back to all web services

NewBillable

Report/create a new billable

Requires Authentication
The following routes are available for this service:
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;
}

JavaScript NewBillable DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	accountId: String,
	customerId: String,
	sessionId: String,
	callSid: String
}