To try sample data, create a free workspace and choose the SaaS Affiliate sample during setup.
On This Page
Details
What to know
Contract object
A contract response lists its parties, the catalog items it covers, its accounts and its version history.
A contract is created as a draft. It does not affect calculations until someone activates it in Allocora.
Activating contracts, amendments and balance transfers are done in the Allocora workspace.
Party payees, catalog items and recoupment pools must belong to the same workspace.
Writes run as the Allocora user who created the API key. If that user no longer has Owner, Admin or Finance access to the workspace, they return 403.
Accounts and balances
Each account shows the payee, the currency, the configured opening balance, advance, expenses and clawback, the recoupment pool, and balance with the unrecouped amounts after the latest locked calculation run.
balance is null until a locked calculation includes the account.
For an account in a pool, balance shows the pool balance and account the part that belongs to this contract.
Amounts are decimal strings.
Endpoint Examples
Requests and responses
Each example shows the request shape and a shortened successful response. Replace placeholder IDs with values from your workspace.
GET/api/v1/contracts
List contracts
Returns contracts with their status and current terms dates.
The list endpoint accepts page and per_page (default 25, maximum 100) and returns meta with current_page, last_page, per_page and total. An unknown filter value returns 422.
Endpoint
Filter
Values
/api/v1/contracts
status
current (default, everything except archived), draft, active, expired, terminated, archived or all
/api/v1/contracts
type
recording, publishing, license_in, license_out, distribution or other
/api/v1/contracts
payee_id
Contracts where this payee is a party
/api/v1/contracts
search
Title or reference
/api/v1/contracts
include_default
true to include the Default agreement of each payee
Related
Continue through the docs
Move from concepts to setup, then to statement output and audit review.