maesn
For developers

How to integrate with Twinfield: From OAuth client to the first read and write

Twinfield is integrated through SOAP web services on a cluster host, with authentication on a separate login host. You register your own OAuth 2.0 client, send each customer through the authorization flow and resolve the cluster and the company code before the first call. This guide follows that path in order, from the two hosts and the tokens to reading, writing, API credits and certification.

Lennart Svensson, CTO and Co-Founder at maesn
Lennart Svensson
CTO and Co-Founder · · Updated
Illustration for How to Integrate with Twinfield: OAuth Client to First Request
The interface

Twinfield’s web services, the login host and the cluster

Twinfield Accounting is Wolters Kluwer’s software for the bookkeeping of accountants, SMEs and non-profit organisations. Its API documentation describes SOAP web services: your application sends an XML request to a web service and receives an XML response.

The web services run on two hosts. Authentication uses https://login.twinfield.com. SOAP web service calls go to the cluster on which the organisation of your customer is located, a host of the form https://api.<cluster>.twinfield.com.

Twinfield’s overview lists 17 web services on the cluster, and its reference pages name a web service type.

XML web services such as ProcessXml process XML messages, for example dimension and transaction. Method driven services such as the Finder are called with parameters. Command and query web services such as Deleted transactions are called with a command or a query, here the query GetDeletedTransactions.

The two hosts, and three of the web services on the clusterHTTP
Login https://login.twinfield.com
Cluster https://api.<cluster>.twinfield.com
 
/webservices/processxml.asmx?wsdl
/webservices/finder.asmx?wsdl
/webservices/deletedtransactionsservice.svc?wsdl

Each web service publishes a WSDL at its path. Twinfield supports the TLS versions 1.2 and 1.3.

The API subscription is the first step of Wolters Kluwer’s certification process, and a test environment is part of it: you receive a personal Twinfield test account during onboarding. The section on certification describes the process.

Which objects can be read and written through maesn is listed on the Twinfield API page.

Hosts, web services and XML messages from Twinfield’s web services overview, the TLS versions from its TLS page, the product description, the order of the steps and the test account from Wolters Kluwer’s article on the certification process, checked 17 November 2026.

Access

Authenticating with OAuth 2.0 and your own client

Twinfield implements OpenID Connect for identity information and OAuth 2.0 for authentication. The client your customers authorize is one you register yourself in the Twinfield developer portal, in these steps:

  • Register a Wolters Kluwer Account. The account is free and is the login for the developer portal.
  • Create the client. In the menu Your connections the button New opens the form for a new client ID, and one client ID can be used for test and production.
  • Fill in the form. The product name is shown to the end user on the consent screen, the client secret is generated in the form and the redirect URL receives the authorization code. The checkbox Ignore single sign on prevents an error for users who are required to log in with single sign-on.
  • Select the authorization flow. Twinfield supports the implicit flow for native and JavaScript-based clients and the authorization code flow for clients with a server-side back end. This guide uses the authorization code flow.
The authorization request, and what comes back on the redirectHTTP
GET https://login.twinfield.com/auth/authentication/connect/authorize
?client_id=<clientId>
&response_type=code
&scope=openid+twf.user+twf.organisation+twf.organisationUser+offline_access
&redirect_uri=https://app.example.com/callback
&state=<random value>
&nonce=<random value>
 
GET https://app.example.com/callback
?code=<authorization code>
&state=<random value>
&session_state=<session state>

The scope twf.organisationUser is mandatory in order to log in. The scope offline_access is required for a refresh token. Twinfield asks you to add openid whenever twf.user is requested.

The request that exchanges the authorization code for tokensHTTP
POST https://login.twinfield.com/auth/authentication/connect/token
Authorization: Basic <base64(client_id:client_secret)>
Content-Type: application/x-www-form-urlencoded
 
grant_type=authorization_code
&code=<authorization code>
&redirect_uri=https://app.example.com/callback

The token endpoint uses Basic access authentication: the client ID and the client secret, separated by a colon and Base64 encoded.

The response contains an ID token, an access token and a refresh token. Twinfield notes that the refresh token is missing when offline_access was not requested.

The access token is included in the SOAP header of each web service call. The examples in the following sections show the header.

Protocols, flows, scopes and both requests from Twinfield’s OpenID Connect page, the account, the form fields and the rule for the client ID from Wolters Kluwer’s article on registering a client ID, checked 17 November 2026.

Access

How long authorization codes, access tokens and refresh tokens last

Twinfield documents the lifetimes of the authorization code, the access token and the refresh token in a table. In the authorization code flow the access token is valid for one hour and the refresh token for 25 years.

Token lifetimes, from Twinfield’s OpenID Connect page
FlowToken or codeLifetime
Authorization codeAuthorization code300 seconds (5 minutes)
Authorization codeAccess token3600 seconds (1 hour)
Authorization codeRefresh token788.940.000 seconds (25 years)
ImplicitAccess token43200 seconds (12 hours)

When the access token has expired, your application sends a refresh request to the token endpoint.

The refresh requestHTTP
POST https://login.twinfield.com/auth/authentication/connect/token
Authorization: Basic <base64(client_id:client_secret)>
Content-Type: application/x-www-form-urlencoded
 
grant_type=refresh_token
&refresh_token=<refresh token>

The response contains a new access token and a refresh token. In Twinfield’s example the refresh token has the same value as in the request, and expires_in has the value 3000.

When a refresh request returns an error

Twinfield lists the error codes of a refresh request. invalid_grant is returned when the client credentials are invalid, when the refresh token is invalid, too long, expired or belongs to another client, and when the client has no access to a requested scope such as offline_access.

unsupported_grant_type is returned when the grant type is missing or too long. invalid_request is returned when the refresh token is missing, and also for states of the organisation and the user: the organisation is not active or deleted, or the user is deleted, disabled or locked or has an expired password.

Lifetimes, the refresh request and the error codes from Twinfield’s OpenID Connect page, checked 17 November 2026.

Access

Why web service calls need a cluster URL and a company code

The cluster URL is the address of the cluster on which an organisation is located. Twinfield returns it for an access token: your application sends the token to the accesstokenvalidation endpoint, and the response contains the claim twf.clusterUrl. Twinfield lists this claim under the scope twf.organisation, which is part of the authorization request above.

The validation request, and the claim in its responseHTTP
https://login.twinfield.com/auth/authentication/connect/accesstokenvalidation?token=<access token>
 
"twf.clusterUrl": "https://api.<cluster>.twinfield.com"

The query parameter token contains the access token. The paths of the web services are appended to the cluster URL.

The company code identifies one company inside the organisation. Twinfield calls a company an office, and one organisation can contain several of them. The requirement is stated as a warning: “It is mandatory to include the CompanyCode in the SOAP header in addition to the AccessToken.”

One request is sent without a company code: the request that lists the offices. Twinfield documents it as the exception, because the company code is not always known at that point.

The request that lists the offices, in the namespace form Twinfield recommends, and the content of its responseXML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<Header xmlns="http://www.twinfield.com/">
<AccessToken>2b128baa05dd3cabc61e534435884961</AccessToken>
</Header>
</soap:Header>
<soap:Body>
<ProcessXmlString xmlns="http://www.twinfield.com/">
<xmlRequest><![CDATA[<list><type>offices</type></list>]]></xmlRequest>
</ProcessXmlString>
</soap:Body>
</soap:Envelope>
 
<offices result="1">
<office name="MORE&amp;Zo Services BV" shortname="Services BV">001</office>
<office name="More&amp;Zo Holding" shortname="Holding">010</office>
</offices>

The envelope follows Twinfield’s example of correct namespace usage, without its XML declaration and its attribute MyAttribute. The two XMLSchema addresses are written as in the Finder example. The offices element in the response lists each office with its code, here 001 and 010.

Twinfield’s web services overview adds a note to this list request: “Use the Finder web service instead.” Its OpenID Connect page likewise refers to the Finder type OFF for requesting the offices.

The other ProcessXml and Finder requests in this guide are sent with a CompanyCode element below the access token. The SOAP header accepts a company ID in place of the company code, and Twinfield’s guidelines advise using the code.

The office code is also part of the identifier of a record. Offices commonly use the same range of customer codes, so Wolters Kluwer’s best practice states: “the unique identifier should always be the office code in combination with the customer code.” The same applies to suppliers, ledgers, cost centres, projects and transactions.

Twinfield’s guidelines describe the error handling of a web service call. An authorization error returns the response code 401 or 403. An error in a web service method call raises a SOAP exception whose detail element contains the message, a code and the name of the called method.

Twinfield’s list of error codes contains code 359 for a request without a company code: “Access Denied. Company id is missing in request header.”

The validation endpoint, the scope, the warning and the Finder reference from Twinfield’s OpenID Connect page, the note on the list request from its web services overview, the exception and the example from its page on XML web services, the error handling and the advice on the code from its guidelines, the identifier rule from Wolters Kluwer’s article on the office code, checked 17 November 2026.

Data

What a dimension is and which dimension types exist

A dimension is Twinfield’s record type for ledger accounts and for the entities a transaction is analysed by, such as customers, suppliers, cost centres and projects.

Twinfield’s documentation describes it this way: “it’s possible to register financial transactions on ledgers and subanalyse them to for example, accounts receivable, accounts payable, cost centers, projects or assets. In Twinfield we call these Dimensions.”

Dimensions are organised in levels. Level 1 contains the balance sheet and profit and loss accounts, level 2 the relations and cost centres and level 3 projects and assets. Relations are the accounts receivable and accounts payable, so customers and suppliers are normally dimensions of level 2.

Dimension levels and dimension typesFrom Twinfield’s documentation
  1. Level 1

    Balance sheet and profit and loss accounts

    • BASBalance sheet
    • PNLProfit and loss
  2. Level 2

    Relations and cost centres

    • DEBAccounts receivable
    • CRDAccounts payable
    • KPLCost centers
  3. Level 3

    Projects and assets

    • PRJProjects
    • ASTAssets

Customers and suppliers are normally dimensions of level 2. The Finder option dimtype selects the type of a request, DEB for customers and CRD for suppliers.

The three dimension levels and their dimension types, from Twinfield’s documentation.

Each dimension has a dimension type with a code of three letters. The read message and the dimension message name the type, and the Finder selects it with the option dimtype: customers have the type DEB, suppliers CRD, cost centres KPL and projects PRJ.

The dimension types, from Twinfield’s page on dimension types
CodeDimension type
BASBalance sheet
PNLProfit and loss
DEBAccounts receivable
CRDAccounts payable
KPLCost centers
PRJProjects
ASTAssets
ACTActivities

The code of a dimension has to comply with the mask of its dimension type. The end user configures the mask in Twinfield, for example to the range 1000 to 1999 for customer codes.

The definition and the levels from Twinfield’s dimensions page, the codes from its page on dimension types, the mask from its customers page and from Wolters Kluwer’s article on importing sales transactions, checked 17 November 2026.

Data

Reading customers with the Finder

Master data is read with the Finder and its method Search. The method takes a Finder type, a search pattern, the field to search, the first row, the maximum number of rows and a list of options.

The example reads the first 100 customers of company 001. The Finder type DIM selects dimensions, and the option dimtype with the value DEB restricts them to customers.

A Finder request for customers, from Twinfield’s example with the HTTP headers shortenedXML
POST https://api.<cluster>.twinfield.com/webservices/finder.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.twinfield.com/Search"
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<Header xmlns="http://www.twinfield.com/">
<AccessToken>9c19e935ae213d9aa36ca2dd44529f14</AccessToken>
<CompanyCode>001</CompanyCode>
</Header>
</soap:Header>
<soap:Body>
<Search xmlns="http://www.twinfield.com/">
<type>DIM</type>
<pattern>*</pattern>
<field>0</field>
<firstRow>1</firstRow>
<maxRows>100</maxRows>
<options>
<ArrayOfString>
<string>dimtype</string>
<string>DEB</string>
</ArrayOfString>
</options>
</Search>
</soap:Body>
</soap:Envelope>

The pattern accepts the wildcards * and ?. The field value 0 searches the code and the name.

The response of Twinfield’s example, without the SOAP envelopeXML
<SearchResponse xmlns="http://www.twinfield.com/">
<SearchResult />
<data>
<TotalRows>12495</TotalRows>
<Columns>
<string>Code</string>
<string>Naam</string>
</Columns>
<Items>
<ArrayOfString>
<string>001075</string>
<string>Customer 1</string>
</ArrayOfString>
<ArrayOfString>
<string>001076</string>
<string>Customer 2</string>
</ArrayOfString>
</Items>
</data>
</SearchResponse>

In the example TotalRows has the value 12495, and each row contains the code and the name of a customer.

Pagination uses the two row parameters. firstRow is the position of the first record and maxRows the page size, so the second page of the example starts at row 101. Wolters Kluwer’s best practice asks for smaller pages of 25 codes.

Twinfield’s Finder page states that the company code cannot be added to the Finder and asks you to set the company with the SelectCompany function or with the option office. The reference names this function on two pages and describes it on none. Its own example, shown above, contains CompanyCode in the SOAP header.

Further options are passed like dimtype in the example. The option company, which replaces the deprecated name office, accepts a company code or an asterisk, which returns the data of all companies the user has access to.

The option includehidden adds hidden dimensions and a status column. The option modifiedsince restricts the result to dimensions modified after or at a date.

The details of one customer are read with a read message through ProcessXml.

The XML message that reads one customerXML
<read>
<type>dimensions</type>
<office>001</office>
<dimtype>DEB</dimtype>
<code>EXAMPLE</code>
</read>

The message is sent with ProcessXmlString, like the request for the offices, and with the company code in the SOAP header.

The method, the request, the response and the options from Twinfield’s Finder page, the read message from its customers page, the page size of 25 from Wolters Kluwer’s article on a shadow database for customers and suppliers, checked 17 November 2026.

Data

Browse codes for general ledger transactions and other financial data

Financial data is read with browse codes. Twinfield describes them as “predefined definitions of financial data”: each code stands for one definition, for example 000 for general ledger transactions, 100 for customer transactions and 200 for supplier transactions. The documentation lists 38 browse codes.

Twinfield names four steps for a browse query and notes that the first two are taken only once:

  • Determine the browse definition. The table of browse codes shows which code contains the data you need.
  • Read the browse definition. A read request for the code returns its fields for one company.
  • Fill in the selection criteria. Every field whose tag ask is true can be used as a criterion, with the operators equal and between.
  • Compose and send the query. The request contains the fields to return and the criteria, and up to three sort fields.
A browse query for one ledger account in 2021, shortened from Twinfield’s exampleXML
<columns code="000">
<column>
<field>fin.trs.head.yearperiod</field>
<label>Period</label>
<visible>true</visible>
<ask>true</ask>
<operator>between</operator>
<from>2021/01</from>
<to>2021/12</to>
</column>
<column>
<field>fin.trs.line.dim1</field>
<label>General ledger</label>
<visible>true</visible>
<ask>true</ask>
<operator>between</operator>
<from>1300</from>
<to>1300</to>
</column>
<column>
<field>fin.trs.line.valuesigned</field>
<label>Value</label>
<visible>true</visible>
</column>
</columns>
 
<browse result="1" first="1" last="6" total="6">

The final line is the root element of Twinfield’s example response. It has the attributes result, first, last and total.

Twinfield notes that a browse query retrieves the data of the company the user is currently logged in to, and it names the SelectCompany function for switching to another company.

For large data sets Twinfield gives two rules: retrieve the transactions by period, and add only the columns whose values you need. Wolters Kluwer’s best practice for a full copy of the transactions uses browse code 030_3 and one book year at a time.

Regimes change what a browse code returns

A company can post transactions in the regimes Generic, Fiscal, Economic and Commercial. Without regimes every transaction is in the Generic regime. With the codes 000, 010, 020, 030_3 and 031_2, a query without a regime returns all transaction lines, and a query for Fiscal, Commercial or Economic returns the lines of that regime including all Generic lines.

With the codes 040_1, 050_1 and 060 the regime is mandatory, and the lines are grouped and summed.

The browse codes, the four steps, the example, the note on the company, both rules and the regimes from Twinfield’s page on browse data, the initial load from Wolters Kluwer’s article on a shadow database for transactions, checked 17 November 2026.

Data

Creating a customer with a dimension XML message

A customer is written as a dimension XML message through ProcessXml. Create and update are the same message. Twinfield’s customers page states: “If the dimension is not found it will be automatically created, otherwise it is updated.”

The example creates a customer in company 001. It is Twinfield’s own example, shortened by the bank accounts and some address fields.

A customer as a dimension XML message, shortened from Twinfield’s exampleXML
<dimension>
<office>001</office>
<type>DEB</type>
<name>Customer 0</name>
<shortname></shortname>
<website></website>
<financials>
<matchtype>customersupplier</matchtype>
<duedays>30</duedays>
<payavailable>true</payavailable>
<meansofpayment>paymentfile</meansofpayment>
<paycode>SEPANLDD</paycode>
<collectionschema>core</collectionschema>
</financials>
<addresses>
<address id="1" type="invoice" default="true">
<name>Customer 0</name>
<country>NL</country>
<city>Place</city>
<postcode>1000</postcode>
<field2>Streetname part 1 - 1</field2>
</address>
</addresses>
</dimension>

The example contains no code for the customer. Twinfield assigns it, and Wolters Kluwer’s best practice asks you to let Twinfield decide the code of each new customer.

The response returns the message with additional attributes and elements. The attribute result on the root element has the value 1 when the request was processed, and the response of the example contains the assigned code 1097.

The first lines of the response, and how Twinfield reports an errorXML
<dimension status="active" result="1">
<office name="001" shortname="001">001</office>
<type name="Debiteuren" shortname="Debiteuren">DEB</type>
<name>Customer 0</name>
 
<transaction result="0" destiny="temporary">
<header result="0">
<period result="0" msg="Period 2021/6 is closed.">2021/6</period>

The second example is Twinfield’s error case for a transaction. The element that caused the problem has result 0 and a msg attribute, and each of its parent elements has result 0 as well.

An update needs care with addresses and bank accounts. Wolters Kluwer’s best practice states that Twinfield first deletes all existing addresses and banks of a customer when the message contains <addresses> or <banks>, and then adds the ones in the message.

To delete a dimension, set its status to deleted. A dimension that is used in a transaction changes to the status hide instead.

Twinfield also documents limits for a message. It advises at most 25 child elements within a parent, for example 25 elements within a transactions element, and recommends at most 500 lines per transaction. A transaction with more than 1.000 lines returns the status code 400. Wolters Kluwer’s best practice applies the limit of 25 to customers as well.

The message, the create and update rule and the status values from Twinfield’s customers page, the result attribute and the error case from its page on XML web services, the limits from its fair use policy and its page on breaking changes, the rules for codes, addresses, banks and 25 customers per request from Wolters Kluwer’s article on importing sales transactions, checked 17 November 2026.

Limits

API credits, rate limits and concurrency limits

Twinfield counts its rate limits in API credits. A query request costs 1 API credit and any other request 3. A request above a limit returns 429 Too Many Requests and is not processed further.

Twinfield classifies a request by its HTTP method, its endpoint, its SOAP action and the root element of its XML message. Calls whose SOAP action starts with Get, Query, Search or Load are query requests, and so are HTTP GET and OPTIONS calls and calls to the Deleted transactions service.

A ProcessXml request is a query request when its root element is list, read, columns, accountcode or accountcodes. The browse query above has the root element columns and is therefore a query request, and the dimension message that creates a customer is not. The header X-RateLimit-Credited returns the credits a request has used and shows how it was counted.

The credits are counted in four buckets per minute. Twinfield marks two of them with an asterisk: “These credits are for certified integrations. For new and not yet certified ClientId credits are set to 5% of mentioned number.”

API credits per minuteFrom Twinfield’s fair use policy
Per IP addressNot reduced
Certified1.000
Not yet certified1.000
Per client ID5% until certified
Certified1.000
Not yet certified50
Per organisation IDNot reduced
Certified1.000
Not yet certified1.000
Per client ID and organisation ID5% until certified
Certified500
Not yet certified25

The lowest bucket limits a request. Twinfield states 1.000 and 500 credits for certified integrations and 5% of them for a new client ID. The values 50 and 25 are calculated from that rule.

The four credit buckets per minute. The values for a client ID that is not yet certified are calculated from Twinfield’s 5% rule.

Every response reports the state of the limits in its headers. A request rejected for the rate limit additionally has the header Retry-After, and Twinfield asks you to use its value as the first backoff time. For the concurrency limit Twinfield returns no specific headers.

The rate limit headers, from Twinfield’s fair use policy
HeaderContent
X-RateLimit-LimitThe API credits per minute, the lowest limit of the four buckets
X-RateLimit-RemainingThe remaining API credits in the current time window, the lowest of the four buckets
X-RateLimit-ClientId-LimitThe API credits per minute for the client ID
X-RateLimit-ClientId-RemainingThe remaining API credits of the client ID, which can be higher than X-RateLimit-Remaining
X-RateLimit-CreditedThe number of credits used by this request
Retry-AfterThe recommended retry interval in seconds, present on a request rejected for the rate limit

The two Remaining headers answer different questions. Twinfield explains: “If X-RateLimit-Remaining is 0, but X-RateLimit-ClientId-Remaining is more than 0, requests can still be fulfilled for other Organisations.”

Concurrency is limited separately. A client ID can have at most 20 concurrent requests and at most 10 per organisation, and a request above these limits returns 429 with the message Concurrency limit exceeded.

Twinfield does not raise these limits: “Please be aware we do not support higher API limits.” Wolters Kluwer’s best practice is to run one action per organisation at a time and to spread the work of all organisations over a longer period.

The fair use policy also covers volume. Twinfield names transaction lines, invoice lines and dimensions as entities that consume a lot of resources. When the use of a subscriber is higher than average for the subscriptions paid, Twinfield asks the subscriber to reduce it and is entitled to increase the fee if that does not happen.

Credits, the definition of a query request, the buckets, the headers, the concurrency limits and the three quotations from Twinfield’s fair use policy, the best practice from Wolters Kluwer’s article on adjusting a connection to the limits, checked 17 November 2026.

Change detection

Change detection with modifiedsince and deleted transactions

Twinfield’s documentation lists no webhook service. Changes are detected with scheduled requests, and Wolters Kluwer describes the procedure as a shadow database: an initial load, an incremental load daily or weekly and a periodic validation.

For master data the incremental load is the Finder request with the option modifiedsince. The value has the format yyyyMMddHHmmss or yyyyMMdd and is in UTC. With this option the Finder returns the columns code, name, modified and revision.

The filter includes its boundary: Twinfield documents it as dimensions “modified after or at the specified date”. A record changed exactly at the stored time is therefore returned again by the next request.

Deleted customers and suppliers are not reported by this filter. According to Wolters Kluwer, the only way to find them is to request all codes periodically and compare them with your own data.

For transactions Wolters Kluwer describes an incremental load as well: the browse query of the initial load with an additional criterion that limits the result to transactions added or changed within a time range. The time has the format yyyymmddhhmmss, for example 20220428000000, and is in UTC. Deleted transactions have a service of their own.

The query for deleted transactions from Twinfield’s example, HTTP headers shortened, with the fields of each resultXML
POST https://api.<cluster>.twinfield.com/webservices/DeletedTransactionsService.svc HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.twinfield.com/DeletedTransactionsService/Query"
 
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:AccessToken xmlns:h="http://www.twinfield.com/">"3549046660b3cc6a357ab94230148942"</h:AccessToken>
<h:CompanyCode xmlns:h="http://www.twinfield.com/">"001"</h:CompanyCode>
</s:Header>
<s:Body>
<Query i:type="a:GetDeletedTransactions" xmlns="http://www.twinfield.com/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:a="http://schemas.datacontract.org/2004/07/Twinfield.WebServices.DeletedTransactionsService">
<b:CompanyCode>001</b:CompanyCode>
<b:Daybook>SomeDaybook</b:Daybook>
<b:DateFrom>2021-04-01</b:DateFrom>
<b:DateTo>2021-04-02</b:DateTo>
</Query>
</s:Body>
</s:Envelope>
 
Daybook, TransactionNumber, TransactionDate,
DeletionDate, User, ReasonForDeletion

The company code is mandatory, the daybook and both dates are optional. This service takes AccessToken and CompanyCode as two separate elements of the SOAP header, where ProcessXml and the Finder use one Header element. Twinfield’s example uses the prefix b: without declaring it and writes both header values in quotation marks.

How webhooks and scheduled reads compare across accounting systems is the subject of our article on webhooks in ERP and accounting.

The option and its format from Twinfield’s Finder page, the query from its page on deleted transactions, the three steps, both incremental loads and the time format from Wolters Kluwer’s articles on a shadow database for customers and suppliers and for transactions, checked 17 November 2026.

Go-live

What the API subscription and the certification require

Access to Twinfield’s API has two conditions. Wolters Kluwer’s article on the certification process states that it “requires an active API subscription and successful completion of our API Certification process”. Certification cannot be declined, and the article names suspension or termination of API access as a possible consequence.

The article describes the process in six steps:

  • Subscribe. You fill in the API subscription form. On 17 November 2026 the form stated a subscription amount of €55 per month and a term of at least 12 months.
  • Onboard. Wolters Kluwer finalises the subscription and the contracts, and you receive your personal Twinfield test account.
  • Intake. The Professional Services team asks questions about you and your integration.
  • Evaluate. Wolters Kluwer assesses the integration and points out mandatory integration requirements and best practices.
  • Go-live. Wolters Kluwer answers technical questions and waits for your confirmation that the integration is operational.
  • Certified. Once all required checks are completed, the integration is certified.

Certification has a technical effect: until the client ID is certified, two of the four credit buckets are set to 5%. Every two years Wolters Kluwer conducts a recertification review.

Wolters Kluwer’s Dutch partner page adds the listing. After a successful certification Wolters Kluwer lists the integration on its website, and you may call yourself a Certified Partner.

The user level of your customer decides which functions are available. Twinfield maps its most used web services to four user levels, and some functions are not available on every level.

Functions by user level, from Twinfield’s function overview
FunctionAvailable onNot available on
Create sales invoicesComplete Accounting, SME AccountingBookkeeping Plus, Basic Bookkeeping
Projects, cost centres and journal entries (Memoriaal)Complete Accounting, SME Accounting, Bookkeeping PlusBasic Bookkeeping
Customers, suppliers, sales, purchase, bank, cash and journal transactionsAll four levelsNone

Partner programmes of other accounting systems are compared in our guide to accounting integration partnerships.

Both conditions, the six steps and the recertification from Wolters Kluwer’s article on the certification process, the amount and the term from its API subscription form, the listing from its partner page, which is in Dutch, the credit rule from Twinfield’s fair use policy and the user levels from its function overview, checked 17 November 2026.

Where maesn fits

Twinfield through maesn: What the Unified API handles for you

The sections above describe what a direct integration implements for one system. Through maesn you reach Twinfield with the same API and the same common data model as every other supported system, and these parts are handled on our side:

  • The company. In the interactive authentication flow your customer selects a company once, and it is stored for the requests that follow. A request can also name the company in the parameter companyId, and the companies endpoint returns the companies of a connection.
  • The dimension types. Customers and suppliers reach you as customers and suppliers, cost centres as dimensions and projects as projects. Accounts are returned for the types BAS and PNL by default, and a filter selects further types.
  • Pagination. Lists are read through one paged interface with page sizes of 5, 10, 20, 50 and 100.

What stays with you is the client. You register it in the Twinfield developer portal, and the API subscription and the certification apply to its client ID.

What stays in your product is the handling of rate limits: a rate-limited request returns HTTP 429 to your application, and the retry with backoff is implemented there.

How errors are returned through the unified interface is described on the unified error handling page. How fields outside the common data model are handled is described on the customisation handling page.

FAQ

Frequently asked questions

Can I use one Twinfield client ID for test and production?

Yes. Wolters Kluwer’s article on registering a client ID states that one client ID can be used for both test and production. The client ID identifies you as a developer and should reflect your application. The same applies to the Wolters Kluwer Account that gives access to the developer portal.

What is the difference between a reference token and a JWT in Twinfield?

It is the format of the access token, selected in the client form as the access token type. Reference is the default and produces a short access token. Jwt, a JSON Web Token, produces a long access token. Wolters Kluwer describes both options in the table of form fields in its article on registering a client ID.

Can I combine several request types in one Twinfield XML message?

No longer with the general root element. It combined different requests in one message and reached its end-of-life date on 1 July 2025. Twinfield’s page on breaking changes asks you to split such a message, for example a transaction and a customer, into separate requests with type-specific root elements.

Why does my Twinfield request return a 400 error for namespaces?

Twinfield’s page on XML web services advises against namespace references in the request, to avoid bad request errors with the code 400. Its wrong example declares the prefix tns on the envelope and writes tns:ProcessXmlString. Its correct example sets the namespace as an attribute of the ProcessXmlString element, as the request for the offices in this guide shows.

Which characters are allowed in a Twinfield code?

Twinfield defines the value type code as a string of at most 16 characters that allows the letters A to Z, the digits 0 to 9, the underscore, the hyphen and the plus sign. A dimension code additionally has to comply with the mask of its dimension type.

Which date format does Twinfield use in XML messages?

Dates are written as yyyymmdd and periods as yyyy/p or yyyy/pp, where the last part is the period number. Money values use a dot as the decimal separator, and booleans are true or false. Twinfield lists these value types on its page on XML web services. The query for deleted transactions writes its dates as 2021-04-01.

Build once on the Unified API.

A company code in the SOAP header, master data as dimension types and pagination by row numbers: that is the contract of one system, and the next system you connect has a different one. Through maesn you build against one interface for all of them.