Zum Inhalt

Die Referenz der Schnittstelle von nxva.base ist auf Englisch, wie ihre Feld- und Endpunktnamen. Lieber Schritt für Schritt? Zu den Anleitungen →

nxva.base API · v1 · 2026-10-28 · 47d50ec

The nxva.base API

Connect your own systems to nxva.base — a shop, an ERP, n8n or Make — with an integration of their own.

Available in nxva.base Pro.

Setting up an integration

  1. In nxva.base, Einstellungen → Integrationen → Neue Integration. Give it a name („Shopware“), the roles it acts with and the areas („Bereiche“) of the API it may reach. It never gets more than the person who sets it up holds, and it stops working if that person loses those roles.
  2. On the integration's page, Neuer Schlüssel. The key is shown once; store it in your system's secret store.
  3. Optional: allow only your system's addresses (one IP or network per line).

An integration acts as itself, not as a person. Everything it writes shows as „ · Integration“ in nxva.base.

Your first call

The base URL is your own nxva.base instance.

curl https://<your-instance>/api/v1/me \
  -H "Authorization: Bearer wm_live_…"

/api/v1/me answers with the integration's roles and scopes. Your instance's reference, with exactly the operations your modules include, is at https://<your-instance>/api/v1/openapi.json.

Conventions

  • Resources. GET /api/v1/companies, GET /api/v1/companies/{id}, POST /api/v1/companies, PATCH /api/v1/companies/{id}, and actions as POST /api/v1/quotes/{id}/duplicate. Wherever an id is expected, a document number (AU-2026-0042, AB-2026-0007) works too.
  • Query and body. GET and DELETE take their inputs as query parameters (an array as repeated parameters or comma-separated); POST and PATCH take a JSON object.
  • Lists answer { "items": [...], "page": 1, "total": 120, "has_more": true }, 50 rows per page; ask for more with ?page=2.
  • Times are ISO 8601 in UTC; calendar days are YYYY-MM-DD; amounts are integers in cent (…_cents).
  • What stays with people. Sending documents, issuing invoices, approving discounts and payment orders are not available through the API.

Errors

Refusals are RFC 9457 problems with a stable code:

{ "type": "about:blank#conflict", "title": "Conflict", "status": 409, "code": "conflict",
  "detail": "Das Angebot ist kein Entwurf mehr." }
Status code Meaning
400 invalid_json The body is not a JSON object.
401 unauthorized No key, or a key that is unknown, revoked or expired.
403 forbidden The integration lacks the role or the area, is paused, calls from an address outside its allow-list, or its roles are no longer covered.
404 not_found The record does not exist or is not visible to the integration — or the path does not exist.
405 method_not_allowed The path exists with another method.
409 conflict The record's state does not allow it now.
422 invalid The input does not fit; issues lists the fields.
422 idempotency_key_reused The Idempotency-Key belongs to another request.
429 limited Rate limit reached; wait Retry-After seconds.
503 unavailable nxva.base could not check the integration's roles right now; retry.

detail is a German sentence for people reading a log. Branch on code, not on detail.

Retries and idempotency

Send an Idempotency-Key header (any unique string up to 255 characters) with every POST. Retrying with the same key and the same request within 24 hours returns the first answer again, with Idempotent-Replayed: true, instead of creating a second record.

Rate limits

600 requests and 120 writes per minute per integration. Every answer carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds).

Webhooks

On the integration's page, Endpunkt hinzufügen: a public https URL and the events it wants. The signing secret (whsec_…) is shown once.

Event When
company.created, company.updated a company is created or changed
person.created, person.updated a person is created or changed
lead.created, lead.status_changed an inquiry arrives or changes status
quote.status_changed a quote is sent, accepted, rejected or expires
order.created, order.status_changed an order is created or changes status
task.created, task.status_changed, task.commented tasks and tickets
time_entry.created, time_entry.updated, time_entry.deleted time bookings
invoice.issued, invoice.cancelled, invoice.paid invoices

A delivery is a POST with

{ "id": "…", "type": "company.created", "timestamp": "2026-10-28T09:14:03.000Z", "data": { … } }

where data is the record as GET returns it to your integration (only { "id": … } for time entries and deletions). You only receive events about records your integration may read.

Verify every delivery. nxva.base signs with the Standard Webhooks scheme: headers webhook-id, webhook-timestamp and webhook-signature (v1,<base64>), where the signature is HMAC-SHA256 over <id>.<timestamp>.<body> keyed with the base64-decoded part of the secret after whsec_. The Standard Webhooks libraries for most languages do this for you. Reject deliveries whose timestamp is more than five minutes off.

Delivery is at least once: drop duplicates by webhook-id. Order is not guaranteed; where it matters, read the record again with GET. A 2xx within ten seconds counts as delivered; anything else is retried after 1, 5 and 30 minutes and 2, 6 and 12 hours. An endpoint that fails every delivery for three days is paused; „Erneut aktivieren“ resumes it. „Test senden“ sends a ping event.

Download: openapi-v1.json — for client generators and Postman. Your instance serves its own, limited to your modules, at /api/v1/openapi.json.