VendorPrice
One vendor list price row (1.38.0): a Provider, stage, model and unit with its price, the instant it takes effect, its derived end and state, its source and who entered it. A list price, never a bill. Rows are insert-only: a wrong figure is corrected by a later row, and the wrong one stays in the history.
An object with 21 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
charge | PriceCharge | yes | |
currency | "USD" | yes | |
effective_from | Timestamp | yes | The instant, in UTC, from which the row is in force for its key. Never before the instant it was entered, except for a row migrated from the price list. |
effective_until | Timestamp or null | yes | Derived, never stored: the effective_from of the next later row of the same key, so the row is in force before that instant; null while no later row exists and on a replaced row. |
entered_at | Timestamp | yes | The instant of the transaction that wrote the row. |
entered_by | ActorRef | yes | Who entered the row: the Member, or an operator actor for the command add_price and for a migration. |
id | VendorPriceId | yes | |
model | string or null | yes | The model priced: the language or recognizer model, or the model a voice is spoken with, never the voice. Null only on telephony and platform, where a row prices a carrier item or a platform unit. |
note | string or null | yes | |
object | "vendor_price" | yes | |
origin | VendorPriceOrigin | yes | |
plan | string or null | yes | The vendor's plan or tier the price belongs to; null when it has none. |
provider | CostProvider | yes | |
region | string or null | yes | The region the price applies to, as the vendor names it; null when it has none. |
source | DescriptorSource | yes | The vendor page the price was read from, and the date it was read. |
source_figure | string or null | yes | The figure as the source states it, such as a price per million tokens; null on a row migrated without one. |
stage | CostStage | yes | |
state | VendorPriceState | yes | |
unit | CostUnit | yes | |
unit_price_micros | number | yes | The list price of one unit in micro-USD, fractional for tokens: above 0 on a vendor row, 0 on a none row. A quote in another currency or per second is converted, and note states the conversion. |
verified | boolean | yes | True only when the price was read from source on its read_at. |