Skip to main content

@dialstack/sdk-dev / js/src / EffectivePricing

Interface: EffectivePricing

Defined in: sdk/js/src/types/account-onboarding.ts:215

What an account is billed today, and any agreed change that has not started yet. Rates are in cents per month.

This is the resource to read when showing a customer what something costs: the top-level rates are the ones in force, and next says whether that is about to change.

A rate of 0 means no rate has been agreed for that line. It is not a price — an unagreed line bills at a default that is not the customer's agreed rate — so show no figure for a 0 rather than "$0.00".

Properties​

effective_from​

TypeScript
effective_from: string;

Defined in: sdk/js/src/types/account-onboarding.ts:227

The month start the rates above took effect, YYYY-MM-DD.


next​

TypeScript
next:
| {
effective_from: string;
per_did_rate: number;
per_user_rate: number;
per_voiceai_location_rate?: number;
}
| null;

Defined in: sdk/js/src/types/account-onboarding.ts:229

An agreed change that has not taken effect yet; null in the steady state.

Union Members​

Type Literal​
TypeScript
{
effective_from: string;
per_did_rate: number;
per_user_rate: number;
per_voiceai_location_rate?: number;
}
effective_from​
TypeScript
effective_from: string;

The month start the change applies from, YYYY-MM-DD.

per_did_rate​
TypeScript
per_did_rate: number;
per_user_rate​
TypeScript
per_user_rate: number;
per_voiceai_location_rate?​
TypeScript
per_voiceai_location_rate?: number;

Omitted on the same condition as the in-force leg.


null


object​

TypeScript
object: "effective_pricing";

Defined in: sdk/js/src/types/account-onboarding.ts:216


per_did_rate​

TypeScript
per_did_rate: number;

Defined in: sdk/js/src/types/account-onboarding.ts:218


per_user_rate​

TypeScript
per_user_rate: number;

Defined in: sdk/js/src/types/account-onboarding.ts:217


per_voiceai_location_rate?​

TypeScript
per_voiceai_location_rate?: number;

Defined in: sdk/js/src/types/account-onboarding.ts:225

Absent when the account can neither create a Managed VoiceAI agent nor already has one: a fee it cannot incur is not an effective rate. Absence and 0 differ — 0 is a billable line with no agreed price, absence is a line that does not apply. Render only the legs present.