Business Objects Overview
Read the current state and decision history of invoices, loads, payments, contracts, leases and ledger rows, and record a decision, via /v1/objects.
Business objects hold the decisions the apps record: an invoice paid, a load ready to bill, a lease checked, a ledger row resolved. Each object has a type, a key, a current state and a history of decisions with who made them and the evidence.
Read the counts per state, the objects in one state, or one object with its history. POST /v1/objects/{type}/{key}/events records a decision; it is attributed to the credential (actor_kind: app), never to a person. Reads need read (or records:read); recording needs records:write, and the person behind the credential must be allowed to edit.
cURL: record a decision on a lease
curl -X POST "https://api.talonic.com/v1/objects/lease/LEASE-0042/events" \
-H "Authorization: Bearer $TALONIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to_state": "checked", "note": "Rent matches the indexation clause."}'Endpoints
/v1/objects/recentParameters
/v1/objects/{type}Parameters
invoice, load, payment, money_found_row.paid./v1/objects/{type}/{key}Parameters
/v1/objects/{type}/{key}/eventsParameters
Body
document_id + field, or reference_data_id, each with a label.