Overview
The Trust Accounting API is organized into endpoint groups that support a single goal: turn scanned brokerage statements into structured data that you can use for trust reporting. At a high level, you will work with endpoints that:- Upload documents – Send scanned brokerage statements into the system.
- Manage TPA plans and accounts – Represent plans and brokerage accounts in Stax.
- Attach and confirm statements – Link uploaded documents to plans/accounts and lock the parsed result.
- Work with parsed transactions – Retrieve and adjust the line items that will power your trust reports.
Common workflows
1. Set up plans and accounts
In most integrations, you first represent your plans and brokerage accounts in Stax using the TPA plan and TPA account endpoints:POST /tpa/plan/create– create aTpaPlanwith metadata such asplanName,planType,internalPlanId, and year-end configuration.POST /tpa/account/create– create aTpaAccountthat represents a specific brokerage account (for example, withprovider,number, andpayee).
GET /tpa/plan/getandGET /tpa/plan/listGET /tpa/account/getandGET /tpa/account/list
planId, accountId, accountNumber, and related fields) will be used when you
attach parsed statements and generate trust reports.
2. Upload brokerage statement documents
To ingest scanned statements, use the Document upload endpoint:POST /document/upload– upload one or more files usingmultipart/form-data.
GET /document/get– to retrieve document metadata, optional presigned URLs for pages/download, and (whenstatement=true) associatedTpaStatementinformation.
3. Attach and confirm TPA statements
Once a document is uploaded and parsed, you link it into the TPA model:POST /tpa/statement/attach– attach a statement to a document by providing:docId– the document you uploaded.planIdandaccountNumber– which plan and account this statement belongs to.
GET /tpa/statement/list– list existing statements, optionally filtered byplanIdoraccountId.POST /tpa/statement/confirm– confirm (lock) a statement bystatementIdonce you are satisfied with the parsed result.
4. Work with parsed transactions
Parsed line items from the statement are exposed via the TPA transaction endpoints:GET /tpa/transaction/list– listTpaTransactionrecords for a givenstatementId.POST /tpa/transaction/create– create or adjust a transaction associated with a statement.
TpaTransaction includes details such as:
date,description,amounttxTypeandtxSubTypepageandconfidence
TpaStatement
(beginningBalance, endingBalance, tx, diff, etc.), as the foundation for your trust report
spreadsheets.
Request patterns and conventions
Authentication
All requests must be authenticated using:Authorization: Bearer {apiKey}email: user@example.com
bearerAuth security scheme in the OpenAPI definition (alongside internal
schemes such as cookieAuth and moduleAuth). See the Authentication page for more details
and best practices.
Idempotency
For operations that create or modify resources (for example, creating transactions), we recommend you use an idempotency key to safely retry requests without accidentally duplicating work. Although the exact header name and behavior are defined in the API Reference, a typical pattern looks like:Pagination and filtering
List endpoints commonly support:- Filters such as
planId,accountId, orstatementId(for example, on statement and transaction lists). - Standard pagination and filtering parameters documented on each endpoint.
Where to go next
- Use the API Reference → Trust Accounting API tab for detailed request/response schemas.
- Review the Data model page to understand the entities you are working with.
- See Limits & performance for guidance on rate limits, retries, and bulk operations.