Create a rate table
Creates a new rate-table container scoped to the caller's organization. Versions and entries are added through the version sub-routes.
Create a rate table › Request Body
default_valuedescriptionnameon_missing_keyrequires_continuous_coverageslugtable_typeCreate a rate table › Responses
Created rate table
created_atdefault_valuedeleted_atdescriptionhead_version_ididlifecycle_statusdraft | active | archived
nameon_missing_keyerror | zero | default_value
organization_idrequires_continuous_coverageslugtable_typelookup | bracket
updated_atGet a rate table
Returns a single rate table by ID, scoped to the caller's organization.
path Parameters
idRate table ID
Get a rate table › Responses
Rate table
created_atdefault_valuedeleted_atdescriptionhead_version_ididlifecycle_statusdraft | active | archived
nameon_missing_keyerror | zero | default_value
organization_idrequires_continuous_coverageslugtable_typelookup | bracket
updated_atUpdate a rate table
Updates editable fields on a rate table (name, description, etc.). Version data is mutated through the version sub-routes.
path Parameters
idRate table ID
Update a rate table › Request Body
default_valuedescriptioneffective_atADR-0006 edit-as-publish controls.
nameon_missing_keyrequires_continuous_coveragesave_as_draftUpdate a rate table › Responses
Updated rate table
created_atdefault_valuedeleted_atdescriptionhead_version_ididlifecycle_statusdraft | active | archived
nameon_missing_keyerror | zero | default_value
organization_idrequires_continuous_coverageslugtable_typelookup | bracket
updated_atList rate-table versions (with lifecycle filter)
path Parameters
idRate table UUID
query Parameters
statusLifecycle status filter (repeatable)
List rate-table versions (with lifecycle filter) › Responses
OK
archived_reasoncreated_atcreated_byeffective_fromeffective_toidID is the *_versions.id UUID. Phase 2.D needs it so the FE stage-mode chip can wire selection→pin map without a separate number→ID lookup; older clients can ignore the field.
published_atstatususage_countversionCreate a draft rate-table version
Creates a new draft version under the given rate table. Entries must be added separately via the import endpoint before the version can be published.
path Parameters
idRate table ID
Create a draft rate-table version › Request Body
clone_from_version_ideffective_fromeffective_tonoteCreate a draft rate-table version › Responses
Created draft version
archived_atcreated_ateffective_fromeffective_toidnotepublished_atpublished_byrate_table_idstatusdraft | active | archived
versionGet the currently active rate-table version
Returns the rate-table version that is active at the current wall-clock time. Useful for clients that just want "the prices in effect right now".
path Parameters
idRate table ID
Get the currently active rate-table version › Responses
Active rate-table version
archived_atcreated_ateffective_fromeffective_toidnotepublished_atpublished_byrate_table_idstatusdraft | active | archived
versionGet a rate-table version snapshot
path Parameters
idRate table UUID
versionVersion number
Get a rate-table version snapshot › Responses
OK
archived_atcreated_ateffective_fromeffective_toidnotepublished_atpublished_byrate_table_idstatusdraft | active | archived
versionCopy a rate-table version into a new draft
Creates a new draft version cloned from the named source (any status). Entries are duplicated. Used to revive archived versions or to branch a new edit from an already-active version.
path Parameters
idRate table ID
vidSource rate-table version ID
Copy a rate-table version into a new draft › Request Body
effective_fromeffective_tonoteCopy a rate-table version into a new draft › Responses
New draft version
archived_atcreated_ateffective_fromeffective_toidnotepublished_atpublished_byrate_table_idstatusdraft | active | archived
versionExport rate-table version entries as CSV
Streams the version's entries as CSV with columns lookup_key, range_min, range_max, value. Suitable for round-tripping back through ImportEntries.
path Parameters
idRate table ID
vidRate-table version ID
Export rate-table version entries as CSV › Responses
CSV body
Import entries into a draft rate-table version
Replaces the draft version's entries with the supplied list (full replace, not merge). After importing, the version can be published or scheduled.
path Parameters
idRate table ID
vidRate-table version ID
Import entries into a draft rate-table version › Responses
Updated version with imported entries
archived_atcreated_ateffective_fromeffective_toidnotepublished_atpublished_byrate_table_idstatusdraft | active | archived
version