Contract Pricing

Contract register with newest invoice check and open inputs

Changed on

One row per contract (a chain of price-model versions, shown by its latest version), with the newest invoice check, the amount the workbook expects to be billed for the period, and how many inputs are still open. The register is cached per workspace and year; a request during a rebuild may receive the last built rows. The response is a bare array, not wrapped in data.

get/v1/price-baseline/register

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Query parameters

year, integer

Plan year of the expected amounts. Default: the last full calendar year.

inputs, '0'

Pass 0 to leave out the per-contract inputs lists (each row then carries an empty array).

Response

The register rows.

PriceBaselineRegisterRow[] required
id, string uuid

The contract's latest version.

contract_key, string nullable
contract_number, string nullable
customer, string nullable
customer_number, string nullable
site, string nullable
expected, PriceBaselineExpected nullable

What the customer should be billed for the period.

contract_label, string
valid_from, string nullable
versions, integer
amended, boolean
priced, boolean

Whether any version states a price at all.

invoice, object nullable

The newest invoice check.

open, object nullable

Open inputs of the workbook; null when the workbook could not be built.

inputs, object[]

The data the contract still needs for the year.

contract, object nullable

What the Contracts app last published about this contract; null when it does not know the key.

direction, 'sell' | 'buy' | 'internal'

Which side the workspace is on. Only sell counts toward what customers should be billed.

identifiers, object

Every id the contract is known by outside its key, for matching exports in the customer's own systems.

customer_from, 'contract' | 'same_number' | 'null' nullable

Whether customer comes from the contract's own versions or from another contract with the same number.

duplicates, object[]

Rows of the same contract kept apart by their keys, listed here so their plan counts once.

Changes