Contract Pricing Endpoint Reference
Reference for 1 Contract Pricing endpoint of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Contract Pricing turns a supply contract's price clause (heat, cooling, power, gas) into one standard, evaluable price model, recomputes every price per price period from the public indices the clause names, and checks invoices against those prices. Every number in a model, an index table or a comparison carries its source: a verified quote from a workspace document, or a publisher URL plus the publisher's own line. These endpoints belong to the Contract Pricing app (catalog slug price-baseline); they return 404 in a workspace that has not added the app — GET /v1/apps lists a workspace's apps by slug.
Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.
/v1/price-baseline/register/pageRequired scope: read
Query parameters
assumed = rows with assumed inputs. Default: alldraft, active, expired, terminated, unknown), none for contracts the Contracts app does not know, or all. Default: allallcustomer keeps customer groups together, named customers first. Default: customerascen1100curl
curl -X GET 'https://api.talonic.com/v1/price-baseline/register/page' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/price-baseline/register/page", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — One page of the register.
{
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"contract_key": "string",
"contract_number": "string",
"customer": "string",
"customer_number": "string",
"site": "string",
"expected": {
"basis": "invoice",
"net": 1.5,
"vat": 1.5,
"gross": 1.5,
"complete": true,
"currency": "string",
"assumed_net": 1.5,
"lines": [],
"check": {},
"held_net": 1.5
},
"contract_label": "string",
"valid_from": "string",
"versions": 1,
"amended": true,
"priced": true,
"invoice": {
"comparison_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"invoice_number": "string",
"period_from": "string",
"period_to": "string"
},
"open": {
"price": 1,
"waiting": 1,
"assumed": 1,
"invoice": true,
"period": {}
}
}
],
"shown": 1,
"total": 1,
"page": 1,
"limit": 1,
"stats": {
"contracts": 1,
"priced": 1,
"complete": 1,
"billed": 1,
"open_inputs": 1,
"assumed": 1,
"ended": 1,
"not_sold": 1,
"expected_net": 1.5,
"currency": "string"
},
"counts": {
"state": {},
"contract": {},
"cost_unit": {
"yes": 1,
"no": 1
}
}
}- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.