Every resource has unit tests with fixtures: recorded Twinfield responses (anonymized) or, where no live response was available yet, responses that follow the documentation or the WSDL. A fixture that follows the documentation can be wrong where Twinfield differs from its documentation, so this page shows which parts are also verified against live Twinfield.
| Status |
Meaning |
| Live |
Run against live test companies with the SDK, and the responses parse. |
| Partly |
Some methods or cases are verified live, others only offline; see the note. |
| Offline |
Only tested with fixtures. The request follows the documentation, but Twinfield has not answered it yet. Expect differences in the response, and check the result in Twinfield the first time you use it. |
| — |
Twinfield has no such operation. |
Writing is verified with the write tests in tests/Write, which change data in a test company and need an interactive confirmation (composer test:write). Open questions per resource are in TODO.md; how live responses differ from the documentation is on Differences with the documentation.
| Resource |
SDK |
Read |
Write |
Note |
| Activities |
activities() |
Live |
Offline |
|
| Articles |
articles() |
Live |
Offline |
Save, delete and activate fixtures follow the documentation |
| Asset methods (classic) |
classicAssetMethods() |
Live |
Offline |
|
| Bank books |
bankBooks() |
Live |
Offline |
Twinfield can’t delete a bank book |
| Budgets |
budgets() |
Live |
Offline |
Writing is on the REST API, see below |
| Cash books |
cashBooks() |
Live |
Offline |
|
| Cost centers |
costCenters() |
Live |
Offline |
|
| Currencies |
currencies() |
Partly |
Offline |
The search is live; get() sends a <currency> request, so it only runs in the write tests |
| Customers |
customers() |
Live |
Offline |
|
| Dimension groups |
dimensionGroups() |
Live |
Live |
Including how deleting empties the group on the dimensions |
| Dimension types |
dimensionTypes() |
Live |
Offline |
Only update; Twinfield has no create or delete |
| Fixed assets (classic) |
classicFixedAssets() |
Live |
Offline |
Only assets “to be activated” seen live; active and sold assets only offline |
| General ledger accounts |
balanceSheetAccounts(), profitAndLossAccounts() |
Live |
Offline |
Accounts with a VAT code or in a group only offline |
| Offices |
offices() |
Live |
— |
|
| Projects |
projects() |
Live |
Offline |
|
| Rates |
rates() |
Live |
Offline |
Time rates live; quantity rates only offline |
| Suppliers |
suppliers() |
Live |
Offline |
Suppliers paid by Twinfield (pay code, cheques) only offline |
| Users |
users() |
Live |
Offline |
|
| VAT codes |
vatCodes() |
Live |
Offline |
|
| Resource |
SDK |
Read |
Write |
Note |
| Browse data |
browse(), browseDefinitions() |
Live |
— |
A few browse codes only offline, see the guide |
| Declarations |
declarations() |
Live |
Offline |
Writing: the status commands setToSent(), setToApproved() and setToRejected() |
| Finder |
finder() |
Live |
— |
|
| Hierarchies |
hierarchies() |
Live |
Offline |
|
| Matching |
matching() |
Live |
Offline |
Reading is the audit trail of the REST API; match() and undo() only offline |
| Pay & Collect |
payAndCollect() |
Partly |
Offline |
list() is live, but the test companies have no runs; get() only offline |
| Periods |
periods() |
Live |
Offline |
Writing: changeName(), closing and opening periods, years |
See the REST API guide for the status per endpoint.
| Resource |
SDK |
Read |
Write |
Note |
| Budgets |
budgets() |
Live |
Offline |
|
| Customer and supplier changes |
customers()->changes(), suppliers()->changes() |
Live |
— |
customers()->changes() gives HTTP 500 in some companies |
| Feeds |
bankFeeds() |
Partly |
— |
Live, but the test companies have no PSD2 feeds |
| Fixed assets |
fixedAssets() |
Partly |
— |
Assets and classes live; a group and the reconciliation report only offline |
| Ledger accounts |
ledgerAccounts() |
Live |
— |
|
| Matching audit trail |
matching()->auditTrail() |
Live |
— |
|
| Posting rules |
postingRules() |
Live |
— |
|
| Sales articles |
salesArticles() |
Live |
Offline |
|
| Spreading templates |
spreadingTemplates() |
Partly |
Offline |
The default distribution is live; the test companies have no templates |
| VAT codes |
vatCodes()->searchDetails(), getDetails() |
Live |
— |
|