How to integrate with Weclapp: From tenant and token to the first read and write
Weclapp is integrated through a REST API that each instance serves under its own hostname. Your customer generates an API token in their Weclapp account, and every request names the tenant in the URL and the token in a header. This guide covers each step in order: base URL, authentication, JSON conventions, reading, filtering, writing, error responses, load management, webhooks and testing.


Weclapp’s REST API and the tenant in the base URL
Weclapp’s API is a REST API that exchanges JSON over HTTPS. The current version is v2, and Weclapp provides its specification as an OpenAPI 3 file in JSON and YAML.
The tenant is the subdomain of one Weclapp instance. Weclapp’s reference gives the base URL of the API as https://<TENANT>.weclapp.com/webapp/api/v2/ and describes <TENANT>.weclapp.com as “the domain of the specific weclapp instance”.
Every request needs the tenant because each instance has its own API endpoints, which give access to the data of that instance. Your application therefore stores the tenant of each customer together with the token of that customer.
| Operation | HTTP method | Path |
|---|---|---|
| Query or list records | GET | /<resource> |
| Total number of records | GET | /<resource>/count |
| Get a specific record by ID | GET | /<resource>/id/<id> |
| Create a new record | POST | /<resource> |
| Update a specific record | PUT | /<resource>/id/<id> |
| Delete a specific record | DELETE | /<resource>/id/<id> |
The resources implement these operations in the same way, although not every resource supports all of them. Some resources offer further operations. They are executed with a POST to /<resource>/<operation> or to /<resource>/id/<id>/<operation>, and some operations that only read data also accept a GET.
Weclapp requires the header Accept: application/json on all requests and Content-Type: application/json on PUT and POST requests. It also asks for a User-Agent header on all automated requests.
A client should always send Accept-Encoding: gzip. Without this header the API still compresses the response and returns it with Content-Encoding: gzip.
The first request needs an instance and a token. The next section describes the token, and the section on testing describes Weclapp’s free trial.
GET /webapp/api/v2/party?pageSize=10 HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Accept: application/jsonAccept-Encoding: gzipUser-Agent: YourProduct/1.0
The request returns at most 10 records of the party resource, which the later examples use as well. In case of an error the response can be text/plain, and Weclapp asks you to treat it as an error that needs action.
Base URL, URL pattern, further operations and headers from Weclapp’s v2 reference, checked 16 November 2026.
Weclapp publishes fundamental changes in a new major version, and the existing version remains available for at least one year after that release. The reference still lists v1 next to v2, and a changelog documents the changes between the two versions.
Versions and the API lifecycle from Weclapp’s v2 reference, the changes between v1 and v2 from its changelog, checked 16 November 2026.
Which objects can be read and written through maesn is listed on the Weclapp API page.
Authenticating with an API token that belongs to one user
Weclapp authenticates API requests with an API token. There is one token for each user, and the user finds it in Weclapp under My settings > API. The reference asks users to keep the token secret like a password.
A token can be sent in two ways. The first is the header AuthenticationToken with the token as its value. The second is HTTP Basic authentication, with * as the username and the token as the password.
GET /webapp/api/v2/party HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Accept: application/jsonGET /webapp/api/v2/party HTTP/1.1Host: <TENANT>.weclapp.comAuthorization: Basic <base64(*:TOKEN)>Accept: application/json
The examples in Weclapp’s reference use the AuthenticationToken header.
A request with a wrong token returns 401 (Unauthorized). A request for an operation the user has insufficient privileges for returns 403 (Forbidden). The permissions of the user who owns the token thus limit what a connection can read and write.
The reference describes no OAuth flow and states no lifetime for the token. For tests in a web browser it mentions another way to authenticate: a request that contains the session cookies of a logged-in Weclapp session uses the user and the permissions of that session.
A user can generate a new token at any time, and Weclapp’s reference states that “doing that invalidates all previous tokens”. Your application needs a way for the customer to replace the stored token.
Token, both methods, the session cookies and the quotation from the section on security and authentication in Weclapp’s v2 reference, both status codes from its section on basic operations, checked 16 November 2026.
How decimals, dates and null are serialised in JSON
Decimal numbers, dates and null values need attention when you map a response from Weclapp to the types of your own application. The reference defines the representation of each data type.
| Type | Representation in JSON |
|---|---|
| String | JSON string. An empty string or a string that contains only whitespace is interpreted as null. |
| Boolean | true or false |
| Decimal number | JSON string with a point as the decimal mark, for example quantities and prices |
| Integer | JSON number, if it can safely be represented as a double |
| Float or double | JSON number |
| Date or timestamp | JSON number with the milliseconds since 1970-01-01T00:00:00Z |
| Enum | JSON string with the name of the option |
Most numbers in Weclapp are decimal numbers with a fixed precision and scale. They are, in the words of the reference, “serialized as JSON strings and not as JSON numbers to prevent accidental loss of precision” in JSON libraries that represent numbers as doubles.
{"id": "2770","version": "0","createdDate": 1597915605986,"description": "Stück","lastModifiedDate": 1597915605985,"name": "Stk."}{"articleUnitPrice": "39.95","currencyId": "256","quantity": "1","reductionAdditionItems": []}
createdDate and lastModifiedDate are timestamps in milliseconds. articleUnitPrice and quantity are decimal numbers and therefore strings. In these examples id and version are strings as well.
A property with the value null is not serialised by default, so a response contains only the properties that have a value. The query parameter serializeNulls includes them in the response. In a request, every expected property that is missing from the JSON object is assumed to be null.
Weclapp describes the deserialisation of data sent to the API as relatively lenient. Where a string is expected and a number is given, the number is used as the string, and the other way around where possible.
The type table, the quotation and the handling of null from the JSON section of Weclapp’s v2 reference, both examples from its sections on referenced entities and additional properties, checked 16 November 2026.
Reading customers and suppliers from the party resource, page by page
A list is read with GET on the URL of a resource and a single record with GET on /<resource>/id/<id>. Weclapp’s reference explains the common operations for the party resource, and this guide uses the same resource.
A party is a person or an organisation. The property partyType has the values PERSON and ORGANIZATION, and Weclapp’s example of a party contains the boolean properties customer and supplier. Customers and suppliers are both records of this one resource.
Version v2 has no separate endpoints for them. Its changelog lists /contact, /customer, /lead and /supplier as removed endpoints, with the instruction to use /party.
GET /webapp/api/v2/party?page=2&pageSize=100 HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Accept: application/jsonGET /webapp/api/v2/party/count HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Accept: application/json
The examples in the reference return a list in the array result. The parameter page is one-based, so page=1 is the first page and also the default.
Without parameters a list request returns the first 100 records. pageSize sets the number of records per request and is usually limited to 1.000. The reference notes exceptions to both values in the documentation of the specific resources.
The parameter page selects the page of results. Additionally, offset skips a specified number of records. The count operation returns the total number of records and accepts the same filter parameters as the list request, so the number of pages of a filtered list can be calculated in advance.
The query parameter properties limits a response to the properties you name, for example properties=id,customerNumber,customerSalesChannel. An unknown property in this parameter returns an error response.
A list can also be requested with POST to /<resource>/query. According to the reference, POST queries have fewer restrictions than GET requests. For POST queries Weclapp recommends filter expressions in the request body. The next section describes them.
Operations, pagination, the count and the properties parameter from Weclapp’s v2 reference, the values of partyType from its OpenAPI specification, the removed endpoints from its changelog, checked 16 November 2026.
Filters, sorting and the unknown property that is silently ignored
A filter is a query parameter that consists of a property name and an operator, joined with a minus. customerSalesChannel-eq=NET1 returns the parties whose sales channel is NET1. If a request contains several filter parameters, the results match all of them.
GET /webapp/api/v2/party?customerSalesChannel-eq=NET1&createdDate-gt=1398436281262&sort=-lastModifiedDate
createdDate-gt compares with a timestamp in milliseconds and returns the parties created after it. sort=-lastModifiedDate sorts by the time of the last modification in descending order. The line breaks are for display only.
| Operator | Meaning |
|---|---|
| eq | Equal |
| ne | Not equal |
| lt | Less than |
| gt | Greater than |
| le | Less than or equal |
| ge | Greater than or equal |
| null | The property is null. The value of the parameter is ignored. |
| notnull | The property is not null. The value of the parameter is ignored. |
| like | Like expression with % and _ as placeholders, similar to SQL LIKE |
| notlike | Not like expression |
| ilike | Like expression that ignores case |
| notilike | Not like expression that ignores case |
| in | The value is in a list, which is specified as a JSON array |
| notin | The value is not in the specified list |
According to the reference, not all operators work for all property types. Filter parameters with the prefix or- are linked by OR: or-name-eq=charlie&or-name-eq=chaplin returns the parties whose name equals charlie or chaplin. The prefix or<groupname>- forms groups that are combined with AND.
A filter on a property that does not exist returns no error. The reference states: “Filtering query parameters for unknown properties or properties that don’t support filtering are silently ignored.” The request is then answered without this filter.
Sorting handles the same case differently. The parameter sort takes one or more property names separated by commas, with a minus in front for descending order, and here the reference states: “If an unsupported or unknown property is specified then an error response is returned.”
The filter is ignored and the list is returned unfiltered
Filter parameters for unknown properties, or for properties that do not support filtering, are silently ignored.
The request is rejected
An unsupported or unknown property in the sort parameter returns an error response.
A successful status does not confirm the filter. Compare the count with and without the filter. If both are equal, check the name of the property.
Filter parameters compare dates as timestamps in milliseconds. Filter expressions, which Weclapp also offers in the parameter filter, combine several conditions and accept a date as an ISO 8601 string with a time zone. The reference marks them with the warning “This is still a beta feature.”
GET /webapp/api/v2/party?filter=(lastModifiedDate >= "2022-01-01T00:00:00Z")
The condition limits the list to the parties modified since the given point in time. The reference sends the expression URL-encoded.
A condition on lastModifiedDate with the time of the last run limits a request to the records changed since then. Weclapp’s recommendations for API users include the rule “No unfiltered polling”.
Syntax, operators, both quotations on unknown properties, filter expressions and the recommendation from Weclapp’s v2 reference, checked 16 November 2026.
Writing a party with POST, PUT and optimistic locking
A create is a POST to the URL of a resource, and an update is a PUT to the URL of the record. Both requests contain the record as JSON.
POST /webapp/api/v2/party HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Content-Type: application/jsonAccept: application/json{"customerNumber": "10004","partyType": "PERSON","lastName": "Mustermann"}HTTP/1.1 201 CreatedLocation: https://<TENANT>.weclapp.com/webapp/api/v2/party/id/<id>
The response status is 201 (Created), and the Location header contains the URL of the created record.
The read-only properties id, version, createdDate and lastModifiedDate must be omitted in a create, otherwise the server responds with status 400. A property that does not exist also returns 400, and a property the requester is not authorised for returns 403. Some required properties have defaults, which are used when the property is missing or null.
An update of the complete entity has to specify every property that is not null, because all unspecified properties are interpreted as null. Writable boolean properties are always mandatory in such an update.
Weclapp strongly recommends that a client first gets the latest version of the record, then modifies that JSON and finally performs the PUT. New properties that the client does not know about are then not accidentally overwritten with null.
To update only specific properties, set the parameter ignoreMissingProperties=true. In Weclapp’s example below, only the property lastName is updated and all other properties are unchanged.
PUT /webapp/api/v2/party/id/7992?ignoreMissingProperties=true HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Content-Type: application/jsonAccept: application/json{"version": "0","lastName": "Mustermann-Neu"}HTTP/1.1 200 OK
The property version in the body activates optimistic locking. The body of the response contains the updated entity.
For updates the resources usually support optimistic locking, which compares the version in the request body with the current version of the record. If the two do not match, the request fails with an optimistic lock error, status 409 (Conflict). The caller then gets the latest version, applies the changes again and repeats the request.
A request without version is not checked. According to the reference it “might accidentally overwrite changes done by another user in the meantime”.
Lists within an entity have a rule of their own when only specific properties are updated. For an existing entry it is sufficient to specify its id, and an existing entry whose id is omitted is removed or emptied.
Lists that cannot be changed as a whole but whose elements can, such as customAttributes, are the exception. Elements that are not contained in the request are taken from the existing entity.
The generic PUT, POST and DELETE endpoints accept the query parameter dryRun=true. In this mode the submitted data is validated and, where possible, the business logic is executed. The response matches a productive execution as far as possible, except that success returns 200 and the properties id, version, createdDate and lastModifiedDate are not included.
A record is deleted with a DELETE request to its URL. If the deletion is possible, the response status is 204 (No Content). Otherwise Weclapp returns an error response.
Both examples, the rules for create and update, optimistic locking, the dry run and the delete from Weclapp’s v2 reference, the status of the optimistic lock error from its error reference, checked 16 November 2026.
Error responses in the RFC 7807 structure
Any request can return an error response, and its JSON is structured as described in RFC 7807. The properties type, title, status and detail describe the error. Weclapp adds validationErrors, a list of the validation errors that were found.
POST /webapp/api/v2/salesOrder?dryRun=true HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Content-Type: application/jsonAccept: application/json{ "customerId": "3183" }HTTP/1.1 400 Bad Request{"detail": "customer not found","error": "customer not found","status": 400,"title": "entity validation failed","type": "/webapp/view/api/errors.html#!/errors/validation","validationErrors": [{"detail": "referenced entity not found","instance": "salesOrder","location": "customerId","title": "referenced entity not found","type": "/webapp/view/api/errors.html#!/validation/reference"}]}
location is the JSONPath of the affected property. The property error is not part of RFC 7807: according to Weclapp, the unstructured error responses used until now are still part of the JSON, so that existing code should work without changes.
To distinguish errors in code, Weclapp recommends evaluating only the part of type after the last slash, in this example validation and reference. The responses are sent with Content-Type: application/json and not with application/problem+json, because the migration to the RFC 7807 structure is still in progress.
| Type | Status | Meaning |
|---|---|---|
| context | 409 | The operation is not possible in this context or with the current state of the data |
| conversation | 400 | The request was sent in the context of a running session, which the stateless API does not allow |
| entity_not_found | 400 | The entity or a referenced sub-entity could not be found |
| forbidden | 403 | The credentials are not sufficient for the requested operation |
| invalid_json | 400 | The request body could not be parsed as JSON |
| not_found | 404 | The endpoint, method or entity could not be found |
| optimistic_lock | 409 | The entity has been modified by someone else in the meantime |
| persistence | 409 | A persistence problem that no more specific error covers |
| request_timeout | 400 | The request did not complete within the timeout of the X-Weclapp-Request-Timeout-Ms header |
| unauthorized | 401 | Authorisation or authentication problem |
| unexpected | 500 | An error that no more specific error covers |
| unsupported_mime_type | 415 | The provided file type is not supported for the operation |
| validation | 400 | The input is malformed or not allowed in this context |
HTTP 429 comes from Weclapp’s load management, which the next section describes, and is not among these error types.
Structure, the recommendation on type, the content type and every error type from the API error reference in Weclapp’s v2 reference, the example from its section on the dry run, checked 16 November 2026.
Load management with a queue and no fixed rate limits
Weclapp states that its API has “no fixed rate limits”. It protects the platform with two mechanisms: a limit on the number of parallel requests per tenant and a protection against sustained high load.
Requests above the limit for parallel requests are not rejected. They wait until resources become available, currently for up to 30 seconds. After that the API responds with HTTP 429 Too Many Requests.
For sustained load Weclapp uses the effective request time as an indicator. In its example, 500 requests of 100 ms each amount to 50 request-seconds of total load and are no problem, even when they run in parallel. Many compute-intensive requests that run continuously over several minutes could be critical.
No wait headers
The two headers of the outcomes below are not present when a request did not have to wait.
X-Weclapp-Wait-MsX-Weclapp-Wait-Reason
The request is not rejected. The response states how many milliseconds the request had to wait and whether the reason was concurrency, load or both.
X-Weclapp-Wait-MsX-Weclapp-Wait-Reason
A request can currently wait in the queue for up to 30 seconds. After that the API responds with 429 Too Many Requests, and the two headers are present on this response as well.
Set request timeouts to at least one minute. Weclapp recommends this so that a request waiting in the queue is not aborted before it gets a successful response.
A request that waits in the queue and is then processed returns a successful response after a longer time. For this reason Weclapp recommends request timeouts of at least one minute, “to avoid aborting requests too early that would get a successful response”.
Four headers belong to the load management. Your application can send two of them with a request to limit the waiting time or the total duration of the request, and Weclapp returns the other two in the response when a request had to wait.
| Header | Sent by | Meaning |
|---|---|---|
| X-Weclapp-Wait-Timeout-Ms | Your application, in the request | Maximum time in milliseconds the client is willing to wait before processing starts |
| X-Weclapp-Request-Timeout-Ms | Your application, in the request | Best-effort timeout in milliseconds for the entire request, including any waiting |
| X-Weclapp-Wait-Ms | Weclapp, in the response | Milliseconds the request had to wait before processing started |
| X-Weclapp-Wait-Reason | Weclapp, in the response | concurrency or load, and concurrency, load if both apply |
The two request headers can only reduce a timeout and never exceed the server-side limits. Invalid, negative or zero values are ignored. If both are set, X-Weclapp-Request-Timeout-Ms also limits the waiting time in the queue.
The two response headers are present on successful responses and on 429 responses. They are not present when the request did not have to wait.
GET /webapp/api/v2/party HTTP/1.1Host: <TENANT>.weclapp.comAuthenticationToken: <TOKEN>Accept: application/jsonX-Weclapp-Wait-Timeout-Ms: 5000X-Weclapp-Request-Timeout-Ms: 15000
The client waits at most 5 seconds before processing starts, and the entire request should complete within 15 seconds. A request that does not complete within X-Weclapp-Request-Timeout-Ms returns the error request_timeout with status 400.
Weclapp’s reference gives these recommendations to API users:
- Handle the 429. The client must handle HTTP 429 and implement retry logic with exponential backoff.
- Distribute the load. Avoid short peaks of many parallel requests and distribute resource-intensive tasks over a longer period of time.
- Filter and combine. Do not poll without a filter, and prefer fewer, larger requests.
- Use webhooks. Weclapp names an event-driven architecture with webhooks as the ideal case.
- Cache. Retrieve data such as custom attribute definitions only once.
Both mechanisms, the 30 seconds, the example, the four headers and the recommendations from the section on load management in Weclapp’s v2 reference, the timeout error from its error reference, checked 16 November 2026.
How webhooks work, directly and through maesn
A webhook is a request Weclapp sends to a URL of your application when a record is created, changed or deleted. Each webhook is set up in one Weclapp instance for one entity and one URL, with a selection of the three events.
In Weclapp’s interface a webhook is created in the global settings, in the webhooks area of the integration settings. The API offers the resource /webhook for the same purpose. Its OpenAPI specification marks url, entityName, requestMethod and the booleans atCreate, atUpdate and atDelete as required, and requestMethod has the values GET and POST.
{"entityId": "<ID>","entityName": "<name>","type": "<CREATE, UPDATE or DELETE>"}
entityId is the ID of the record, entityName the name of its entity and type the kind of change, with the possible values CREATE, UPDATE and DELETE.
The notification contains these three values, and the record itself is read with a separate request. The help article does not list the possible values of entityName and describes no signature for the request.
If the URL cannot be reached, Weclapp repeats the attempt after 1, 5 and 30 minutes, after 5 hours and after 1 day. If it still cannot be reached after one day, the webhook is deactivated, and the list of webhooks records this with an error message.
Setup, the transmitted values and the retries from Weclapp’s help article on webhooks, which is in German, the properties of the webhook resource from its OpenAPI specification, checked 16 November 2026.
Through maesn you create a webhook subscription for one connected customer, with a resource and an event type. A notification from Weclapp then reaches your application in the unified event format.
How webhooks differ between ERP and accounting systems is the subject of our article on webhooks in ERP and accounting.
POST /webhooksX-API-KEY: <your API key>X-ACCOUNT-KEY: <account key of the customer>{"callbackUrl": "https://example.com/webhook-endpoint/12345","eventType": "CREATED","resource": "CUSTOMER"}
The body is from our Weclapp documentation. The response contains the id of the subscription.
{"eventType": "CREATED","filterDate": null,"resource": "CUSTOMER","resourceId": "1605408d-ed88-4228-8a12-ab857a2972d8","userId": null}
The example is from our Weclapp documentation. In the event for Weclapp, filterDate and userId are null.
Testing in a trial instance and moving to customer tenants
Weclapp’s reference describes one pattern for the base URL, with the tenant in the hostname, and no separate host for tests. A test environment is a Weclapp instance of its own, with its own tenant and its own tokens.
Weclapp offers a free trial of 30 days. According to its registration page, the trial version includes all modules without restrictions and a selection of dummy data, and the trial phase ends automatically.
For live data your customers connect their own instances. Two values differ for each customer, and the requests stay the same:
- The tenant. The hostname of every request is the domain of the customer’s instance.
- The token. A user of that instance generates it under My settings > API, and the permissions of that user apply to your requests.
A listing in the Weclapp Store is a separate step. Weclapp’s store page states that new plugins are temporarily accepted from its sales partners only, and that it will announce there when further integrations can be listed again.
The base URL from Weclapp’s v2 reference, the trial from its registration page, the listing of plugins from its store page, which is in German, checked 16 November 2026.
Weclapp 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 Weclapp with the same REST API and the same common data model as every other supported system, and these parts are handled on our side:
- The tenant and the token. Your customer enters two values, the API token and the tenant ID, on a page provided by maesn or in your own interface through the create account endpoint. Both are stored with the connection, and your requests then identify it with an account key.
- Webhooks. A subscription is created with one request per resource and event type for a connected customer, and each notification arrives in the unified event format.
- Change detection. One filter returns the objects that are new or changed since a timestamp, in the same form for the systems you connect.
- Pagination. Lists are read through one paged interface with page sizes of 5, 10, 20, 50 and 100.
What stays in your product is the handling of load. Requests to Weclapp through maesn are synchronous, so an HTTP 429 from Weclapp is returned to your application, and the retry with backoff is implemented there. Which user provides the token stays with your customer, and the permissions of that user decide what Weclapp returns.
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 does Weclapp announce changes to its API?
What changed between v1 and v2 of Weclapp’s API?
How do I filter Weclapp records by a custom attribute?
How do I load referenced entities in the same Weclapp request?
What are additional properties in Weclapp?
How does orderBy differ from the sort parameter in Weclapp?

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 tenant in every hostname, decimal numbers as strings and a queue before the first HTTP 429: 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.