How to integrate with Xentral: From access token to the first read and write
Xentral is integrated through an API that every customer instance serves under its own address. An administrator of the instance creates a personal access token with a duration and scopes, and your application sends it as a bearer token. This guide follows that path in order: the instance, the token, endpoint versions, reading, writing, rate limits, webhooks and the move to a customer’s instance.


Xentral’s API, the instance and its address
Xentral serves its API from each customer instance. There is no shared host: an instance has the address https://{xentralId}.xentral.biz or a custom domain, and every request is sent there. The Xentral ID is the first part of that host name.
Xentral documents three APIs: the current one, an older REST API and the legacy Standard API. One personal access token authenticates with all three. Xentral recommends the current API, because the older two “can’t handle all endpoints when using personal access tokens”. This guide covers the current API.
Xentral lists 13 paths that a token cannot reach in the two older APIs, 12 of them under /shopimport/, and adds that the list makes no claim to completeness.
The current API is built on resources such as products, customers and suppliers. A request selects a resource by its path and an operation by its HTTP method, and the headers Content-Type and Accept state the media types of the request and of the response.
Every response follows one base structure with four keys: meta, data, extra and links. The requested representation is in the second key, which is an array when the endpoint returns a collection.
https://{xentralId}.xentral.bizGET /api/v3/invoices?perPage=25 HTTP/1.1Host: {xentralId}.xentral.bizAuthorization: Bearer <personal access token>Accept: application/json
The path contains the version of the endpoint and the name of the resource. Store the address of each customer’s instance together with the token: the Xentral ID, or the custom domain where the instance has one.
To send a first request you need an instance. Xentral offers a free trial of 14 days with all core functions of the ERP: the trial account is pre-filled with sample data, needs no credit card and ends automatically. The trial page does not say whether access to the API is part of the trial.
The OpenAPI specifications are public in Xentral’s GitHub repository api-spec-public, and the introduction of the reference describes how to import the first of them into Postman. One file covers the endpoints under /api/v1 and /api/v2, a second one the endpoints under /api/v3.
Which objects can be read and written through maesn is listed on the Xentral API page.
The three APIs and the recommendation from Xentral’s authentication reference, the resources and the Postman import from its introduction, both server addresses from its OpenAPI specification, the trial from its trial page, checked 17 November 2026.
Authenticating with a personal access token
Authentication with Xentral’s APIs is available through personal access tokens. A token is created by a user inside an instance. Your application sends it as a bearer token in the Authorization header of every request.
Creating a token requires admin rights. Xentral’s reference says: “Make sure that you have admin rights before you try to create a personal access token.” The administrator of your customer creates the token in these steps:
- Open the token list. It is under Account settings, then Developer Settings, then Personal Access Tokens, and Create token starts a new one.
- Name the token. The name is unique and has at most 50 characters, and a description can be added.
- Choose a duration and scopes. Both are described in the next section.
- Create the token and copy the value. Xentral shows the token once, when it is created, and it cannot be displayed again after the window is closed.
Your onboarding therefore asks a customer for the token and the Xentral ID of the instance. Neither comes from a redirect, so the customer enters both.
Xentral notes that the API can be used with multiple applications at the same time. A token for each application is easier to manage: deleting a token stops it from working immediately, and a token of your own can be deleted without affecting another integration.
Xentral advises against sharing tokens publicly and against hardcoding them into external applications.
The steps, the admin requirement, the quotation and the deletion rule from Xentral’s authentication reference, checked 17 November 2026.
How long a token is valid and which scopes it has
A token has a duration. The administrator chooses 30, 60, 90 or 180 days or Unlimited, and the default is 180 days. A token expires at the end of its duration, and a token with the duration Unlimited does not expire.
Two further rules apply. Xentral sends a reminder email 14 and 3 days before a token expires, and a token that has not been used for 180 days expires automatically.
Duration
30 to 180 days
Chosen when the token is created: 30, 60, 90 or 180 days, or Unlimited. The default is 180 days.
Reminder
14 and 3 days
Xentral sends a reminder email this long before a token expires.
Unused
180 days
A token that has not been used for this long expires automatically.
Deleted
Immediately
Deleting a token stops it from working, and the application connected with it loses access.
The longest duration of a new token becomes 180 days. Release 26.47 removes the duration Unlimited for new tokens, for all customers from 8 December. Existing tokens stay unchanged.
Xentral’s reference announces the change for release 26.47, with early access from 17 November and for all other customers with release 26.49 from 8 December. The duration Unlimited is removed for new tokens, and the longest duration is 180 days. Existing tokens stay unchanged, including tokens without an expiry date.
A connection built on a new token therefore needs a later expiry date at least every 180 days. The administrator changes the duration under Edit, and the token then expires at the end of the new duration, counted from the day of the change.
A token also has scopes. The administrator selects single scopes per area, or Admin read for read-only access to any endpoint, or Admin for full access to any endpoint. Xentral’s advice is to “choose single scopes where you can”, because Admin and Admin read cover every endpoint, including endpoints added later.
A scope names a resource and an operation, for example invoice:read or customer:create. The references of the V3 endpoints and Xentral’s guides state the scopes each request requires, so you can give your customer the exact list for your integration.
Xentral’s sources describe a request without the required scope differently. Its customer guide lists the status 403 for a missing scope. Its OpenAPI specification shows a 401 response with the message “Missing required scopes: customer:create.” and defines a problem type for token scopes among the 400 responses. A client should handle all three status codes.
The scopes are selected when the token is created. Xentral’s authentication reference lets the administrator change the name and the duration of an existing token, and its help center states that a different set of scopes requires a new token.
For tokens created from release 26.47 the reference announces that Admin and Admin read select the scopes that exist at that moment, and that scopes added later can be added by editing the token.
Durations, the reminder, the expiry rules, the scopes and the announcement for release 26.47 from Xentral’s authentication reference, the rule for editing a token from its help center article on personal access tokens, which is in German, the two status codes from its customer guide and its OpenAPI specification, checked 17 November 2026.
Why every endpoint has a version of its own
Xentral versions its API in the URL. The version is part of the request path, as /api/v1/, /api/v2/ or /api/v3/. Xentral’s versioning page states: “not our complete API has a version, instead each individual endpoint has its version.”
An integration therefore uses a set of versions, one per endpoint. In the specifications of release 26.47, 301 operations have a path under version 1, 36 under version 2 and 250 under version 3. Customers are an example: the endpoints for listing, creating and updating a customer are under version 2, the endpoint for deleting one is under version 1, and a version 3 is available in beta.
Xentral defines what a breaking change is: a modified payload structure, removed parts of the payload and big changes in data processing. A breaking change is released as a new version of the endpoint. Adding items to a payload is not a breaking change, so a client has to accept fields it does not know.
When a new version of an endpoint is released, the previous version is deprecated automatically and removed at a later point in time. The versioning page states no period for the removal.
The description of a beta endpoint begins with a notice: “breaking changes can occur at any time without prior notice. We do not recommend using Beta endpoints in production environments.” In the specifications of release 26.47, 127 operations have this notice. The V3 endpoints for customers and suppliers are among them.
Before the URL-based versions, Xentral versioned through media types in the Accept and Content-Type headers. That approach is deprecated. A path without a version, /api/ followed by the resource, still works, and Xentral states that it will be removed at some point.
A media type has a fixed structure with three parts: a variant, a version and a data format.
application/vnd.xentral.VARIANT.vVERSION+DATAFORMATAccept: application/vnd.xentral.default.v1+jsonAccept: application/vnd.xentral.minimal.v1+jsonAccept: application/vnd.xentral.default.v1+csv
VARIANT is the identifier of a representation, VERSION its consecutive version number starting with 1 and DATAFORMAT the structure of the data, for example json, csv, xml or pdf.
One endpoint can support several media types. The three in the example belong to Xentral’s endpoint for a single product: a default and a minimal JSON representation and a CSV variant.
In this scheme the version segment also shows the maturity of an endpoint, and a request for a media type that does not exist returns HTTP 406.
| Level | Version segment | What Xentral states |
|---|---|---|
| Stable | v1 | The media type solely has a version number |
| Early access (beta) | v1-beta | The endpoint is still in development, or the contract of a new version can still change |
| Alpha | v1-alpha | The endpoint has been released, and the data it returns is dummy data |
The path versions, the quotation, the breaking changes, the deprecation rule and the maturity levels from Xentral’s versioning page, the media type structure and the 406 from its page on media types, the counts and the beta notice from its OpenAPI specifications, checked 17 November 2026.
Reading invoices with filters, sorting and three pagination strategies
Invoices are read with GET /api/v3/invoices, which requires the scope invoice:read. The endpoint returns a paginated list, and the query string of the request sets the filters, the sort order and the page.
The example reads the released invoices, newest document date first, 50 per page and with a total count.
GET /api/v3/invoices?filter[0][key]=status&filter[0][op]=equals&filter[0][value]=released&sort=-documentDate,customerNumber&page=1&perPage=50X-Pagination: table
The line breaks in the query string are for reading. The minus sign before documentDate sorts in descending order, and X-Pagination selects the pagination strategy.
A filter has three parts: filter[n][key] is the field, filter[n][op] the operator and filter[n][value] the value. Several filters are combined with AND. Nested fields are addressed in dot notation, for example totals.gross.amount, and dates are sent as YYYY-MM-DD.
The V3 reference lists 14 operators, among them equals, contains and isNull. Which operators a field accepts depends on its type and is specified per endpoint. The invoice list accepts 103 filter keys, among them status, paymentStatus, documentDate and updatedAt.
The parameter sort takes a comma-separated list of fields, and a minus sign before a field sorts it in descending order. Without it Xentral applies a default order, typically by id ascending.
The pagination strategy is selected with a request header. X-Pagination accepts simple, table and cursor, and simple applies when the header is omitted. Only table returns the total count of matching records.
- Parameters
- pageperPage
- Total count in the response
- No
- Jump to a page
- Yes
- Performance
- Good
Applies when the header is omitted. No COUNT(*) query is executed, so the response has no total.
- Parameters
- pageperPage
- Total count in the response
- Yes
- Jump to a page
- Yes
- Performance
- Moderate
Returns the total count of all matching records and requires an additional COUNT(*) query.
- Parameters
- cursorperPage
- Total count in the response
- No
- Jump to a page
- No
- Performance
- Best
Navigation is sequential, next and previous. Xentral names exports and background processing of large datasets as its use.
The page size is set with perPage. Its default is 15, and its maximum is specified per endpoint: 1.000 for the invoice list and 100 for the V3 customer list. A larger value is reduced to the maximum.
For a sync that reads every page, the cursor strategy is the one Xentral recommends for large datasets. The first request is sent without a cursor, and each response returns the cursor of the next page. A page cannot be addressed by its number in this strategy.
The pagination data is returned in the meta object of the response. Xentral’s overview page writes its fields in snake case, for example current_page and per_page, and the specification of the invoice list in camel case, currentPage and perPage. Read the field names from a response of the instance.
The filter parts, the operators, the sort syntax, the three strategies and the example from Xentral’s V3 page on filtering, ordering and pagination, the scope, the filter keys and the page size of the invoice list from its invoice reference, the page size of the customer list and the field names of the specification from its OpenAPI specifications, checked 17 November 2026.
Filtering and pagination on V1 and V2 endpoints
Endpoints under /api/v1 and /api/v2 use a different query syntax, and Xentral documents it on a page of its own. The filter has the same three parts as in V3. The parameters for the page and the sort order differ, and so does the date value in Xentral’s examples.
| What you set | V1 and V2 | V3 |
|---|---|---|
| Page number | page[number] | page |
| Page size | page[size] | perPage |
| Default page size | 10 | 15 |
| Maximum page size | 50 | Specified per endpoint |
| Sort order | order[0][field] and order[0][dir] | sort |
| Date value in the example | Timestamp with offset | YYYY-MM-DD |
| Operators listed on the page | 11 | 14 |
| Nested fields | Not documented | Dot notation |
| Total count | In extra, as in the customer list | Only with X-Pagination: table |
In this syntax, too, the endpoint decides what is possible. Xentral’s page states: “It is specified per endpoint which filtering operations are possible, and which filtering keys are allowed.” The page’s own example for products uses contains, an operator its table does not list. The customer list is a second example.
GET /api/v2/customers accepts 27 filter keys and six operators: equals, notEquals, lessThan, greaterThan, in and notIn. According to Xentral’s documentation for creating customers, the filter key name supports only equals. The keys contain no creation date and no update date, and the only sort field is id.
GET /api/v2/customers?filter[0][key]=email&filter[0][op]=equals&filter[0][value]=max@example.comAccept: application/json{"data": [],"extra": {"totalCount": 0, "page": {"number": 1, "size": 10}}}
The response contains the records in data and the total and the paging state in extra. The customer list also supports a second pagination mode, and a request uses either page or cursor.
The parameters, both page sizes and the quotation from Xentral’s page on filtering, ordering and pagination for V1 and V2, the filter keys, operators and the cursor from its customer list reference, the search, the response and the rule for the name key from its customer guide, checked 17 November 2026.
Creating a customer and adding its addresses
A customer in Xentral is an address with a role. Xentral’s guide puts it this way: “A customer in Xentral is essentially an address with the ‘customer’ role assigned to it.” Suppliers and employees are further roles, and each role has endpoints of its own.
A customer is created with POST /api/v2/customers, which requires the scope customer:create. The field customerType decides which fields are required: firstname and lastname for a person, name for a company.
POST /api/v2/customers HTTP/1.1Host: {xentralId}.xentral.bizAuthorization: Bearer <personal access token>Accept: application/jsonContent-Type: application/json{"customerType": "company","name": "ACME GmbH","contactDetails": {"email": "info@acme.de","phone": "+49 89 987654"}}HTTP/1.1 201 CreatedLocation: https://{xentralId}.xentral.biz/api/v2/customers/11
The response has no body. The ID of the new customer is the last part of the Location header.
If the request has no number field, Xentral assigns the next customer number from the configured range. A number you send has to be unique, and one that already exists returns 409 Conflict.
Addresses are not part of this request. They are added afterwards with POST /api/v2/customers/{id}/addresses, which requires the scope customerAddr:create. Each customer has one address of the type masterdata, and Xentral uses it for billing and delivery unless separate addresses are defined.
POST /api/v2/customers/11/addresses HTTP/1.1Host: {xentralId}.xentral.bizAuthorization: Bearer <personal access token>Accept: application/jsonContent-Type: application/json{"type": "masterdata","street": "Hauptstraße 1","zip": "10115","city": "Berlin","country": "DE"}
A second request with the type masterdata overwrites the existing address and returns 201 as well. The same applies to billingaddress. Only deliveryaddress can exist several times.
An existing customer is changed with PATCH /api/v2/customers/{id} and the scope customer:update. The request can contain only the fields to change, and a successful update returns 204 without a body.
A request that fails validation returns 400 and not 422. The body names each invalid field with its message, for example “The firstname field is required when customer type is person.”
To avoid duplicates, Xentral’s guide recommends a search by email address before the create and a stored mapping between your own customer ID and the customer ID in Xentral. The search is the one shown in the previous section.
Xentral’s testing guide describes a project created for testing inside the instance: you send its ID with every record you create and filter on it when you read. The same guide notes that some data types, like sales orders, cannot be deleted.
The definition, the required fields, both requests, the number rule, the address types, the update and the validation response from Xentral’s customer guide, the empty body of the 201 response from its OpenAPI specification, the test project from its testing guide, checked 17 November 2026.
The rate limit per instance and IP address, and the status codes
Xentral limits its API to 100 requests per minute per instance and client IP address. An integration that calls an instance from its own IP address has a limit of its own. Integrations that call the same instance from the same IP address share one.
A request above the limit returns 429 Too Many Requests. Every response contains the current state of the limit in its headers, and Xentral asks you to read them: the values on its page “are still subject to change”.
| Header | Content |
|---|---|
| X-RateLimit-Limit | The maximum number of requests per minute for the instance |
| X-RateLimit-Remaining | The number of requests remaining in the current window |
| Retry-After | The seconds to wait before retrying, only on a 429 |
| X-RateLimit-Reset | The Unix timestamp at which the window resets, only on a 429 |
A higher limit is requested by email at developer@xentral.com, temporarily for a data migration or permanently. Xentral reviews each request individually, and the decision depends on factors such as the subscription plan and the size of the instance.
Xentral’s customer guide lists the status codes of a write. 400 is a validation error, 401 an invalid or expired token, 403 a missing scope, 404 a record that does not exist, 406 a missing Accept header, 409 a customer number that already exists and 429 the rate limit.
The specification of the same request also lists 415, for a request representation that is not supported.
The body of a 400 follows the Problem Details format of RFC 9457 and is sent as application/problem+json. It contains the fields type and title.
The limit, the headers, the quotation and the request for a higher limit from Xentral’s rate limiting page, the status codes from its customer guide, the error format from its OpenAPI specification, checked 17 November 2026.
Registering webhooks and verifying their signature
A webhook is an HTTP POST request that Xentral sends to an external system when an event happens in an instance. A webhook has a name, a destination URL, a signature key and the event types it is registered for.
An administrator creates a webhook in the instance under Settings, Integrations, Webhooks. The same resource can be created through the API with POST /api/v1/webhooks. The URL has to be an https address of at most 255 characters, and the signature key has 20 to 255 characters.
POST /api/v1/webhooks HTTP/1.1Host: {xentralId}.xentral.bizAuthorization: Bearer <personal access token>Accept: application/jsonContent-Type: application/json{"name": "My example application","url": "https://example.com/receive-xentral-webhook-endpoint","signatureKey": "rf5ecjtvnWQ4mTDfzOTZXgQuuCSFfR66","events": [{ "id": "com.xentral.salesOrder.created.v1" },{ "id": "com.xentral.salesOrder.updated.v1" }]}
All four fields are required. The ID of an event type contains the group, the event and a version.
The event types an instance offers are returned by GET /api/v1/webhookEventTypes. With include=schema the response also contains the JSON schema of the document the instance would deliver for each type.
Xentral’s public event specification lists 153 event types in 44 groups for release 26.47. Invoices have eight: created, updated, released, sent, archived, canceled, deleted and protocolCreated. The specification contains no group for the master data of customers or suppliers.
A delivered document has two fields: type is the ID of the event type and body the payload. In the examples of the specification the payload contains the ID of the record and a timestamp.
For six event types the specification documents more than one payload variant under the same type: created and updated for sales orders, products and invoices. The schema from the event type list shows which variant an instance delivers.
{"type": "com.xentral.salesOrder.protocolCreated.v1","body": {"createdAt": "2024-05-28T17:30:07+02:00","salesOrderId": 169,"salesOrderProtocolId": 586}}
The record itself is read with a second request. The line breaks are for reading: the signature is calculated over the body exactly as it was sent.
Each request has the headers xentral-signature and xentral-request-timestamp. To verify a request, you append the timestamp to the request body without a separator. You then calculate an HMAC of that message with SHA-256, using the signature key as the secret, and compare the hexadecimal result with xentral-signature.
Xentral’s help center states that the feature “is available to everyone from version 23.2.3 onwards” and that it is still in the beta phase.
For records without an event group, such as the master data of customers and suppliers, changes are detected with a scheduled read. The V3 lists for customers and suppliers accept updatedAt as a filter key, and both are beta endpoints. The V2 customer list has no such key.
How webhooks and scheduled reads compare across accounting systems is the subject of our article on webhooks in ERP and accounting.
The definition and the payload structure from Xentral’s webhook reference, the request and the event type list from its references for creating a webhook and for event types, the count from its event specification, the settings path, the limits, the signature check and the status from its help center, checked 17 November 2026.
What to prepare before a customer connects
An integration reaches a customer through a personal access token: an administrator of the customer’s instance creates it and pastes it into the application. These are the parts that take preparation:
- The list of scopes. The administrator selects them when the token is created, so your onboarding names each scope your requests require.
- The expiry date. From release 26.47 the longest duration of a new token is 180 days. Ask the customer for the expiry date when the token is created, so that your application can remind them to extend the duration in time.
- The rate limit. An initial import can need more than 100 requests per minute, and Xentral accepts a request for a temporary increase.
- Beta endpoints and feature flags. The V3 customer endpoints require the feature flag
api-v3-customers, which Xentral activates on request.
Xentral runs a partner program with several partner types. The technology partner is the one for a product that integrates with Xentral, and Xentral names visibility to an active B2B audience and direct access to its API and developer support as the benefits. An application is submitted through a form and reviewed by a partnership manager.
The scopes, the expiry rule and the feature flag from Xentral’s authentication reference and its customer guide, the increase from its rate limiting page, the partner types and the application steps from its partner program page, checked 17 November 2026.
Xentral 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 Xentral with the same API and the same common data model as every other supported system, and these parts are handled on our side:
- The token and the Xentral ID. Your customer enters both values on a page provided by maesn, or your application sends them as
apiKeyandtenantIdto the create account endpoint. Your requests then identify the connection with an account key. On the page provided by maesn the Xentral ID can be prefilled with a query parameter. - Pagination. Lists are read through one paged interface with page sizes of 5, 10, 20, 50 and 100.
- Invoice filters and sorting. Invoices are filtered by status and payment status and sorted by invoice date, invoice number, creation date or update date.
What stays with your customer is the token itself. An administrator of the instance creates it, selects its scopes and extends its duration before it expires.
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.
Frequently asked questions
How do I download a Xentral invoice as a PDF?
What does a 406 response from Xentral mean?
What is a locked personal access token in Xentral?
What does the V3 customer endpoint change compared with V2?
Where do I store my own customer ID in Xentral?
Which HTTP method updates a record in Xentral?

State of Accounting API Connectivity 2027: Data on 31 Systems
How 31 accounting and ERP systems handle API access: OAuth, credential lifetimes, revocation, webhooks and ledger data. Collected in October and November 2026.
Lennart Svensson · 24 Nov 2026
Lexware Office Partnership Guide: Public API or Partner Route
The Lexware Office Public API runs on an API key from the XL plan. Reaching every plan takes a technology partnership. How Lexware's qualification works.
Dr. Themo Voswinckel · 24 Nov 2026
Chart of Accounts Mapping: Cover Every ERP Customisation
Map each object in your platform to the right account, tax code, dimension and company code in your customer's ERP. Standard and custom configuration in one step.
Dr. Themo Voswinckel · 2 Nov 2026Build once on the Unified API.
A token with a duration and scopes, a version on every endpoint and two query syntaxes: 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.