CoolHanX
Solution

With an ERP — API integration

Your ERP remains the leading system for posting and master data. CoolHanX takes over the part that is expensive on the ERP side: formatting, validation, delivery, archive.

The division of labor

Building EN 16931 formatting, BR-DE validation, Leitweg-ID handling, a GoBD archive and delivery channels into an existing ERP is a project that can run into six figures — and ongoing maintenance with every change to the standard. The alternative: your ERP delivers the invoice data just as it already holds it, and CoolHanX handles the e-invoicing part as a service.

Posting, payment runs, dunning, reporting: unchanged in your ERP. All that changes is the last mile to the recipient — and that gets validated, archived and logged.

The division of labor
ERP integration: your system supplies the data, CoolHanX returns validated e-invoicesYour ERPBooking + master datastays the master system thereJSONAPI keyCoolHanXMapping → EN 16931 checkNumbers · Archive · Deliveryidempotent: 1 doc number = 1 documentRecipientEmail · Portal exportGoBD archive8 years, automatic
Division of labor: your ERP delivers data, CoolHanX delivers validated, archived documents.
The machine API (excerpt)
EndpointPurposeProperties
POST /v1/erp/invoicesIssue an invoice from ERP dataEN 16931 gate, idempotent per document number, VALID/error as response
POST /api/erp/onboarding/ingestSubmit raw data in YOUR formatField mapping server-side — no rebuild needed in the ERP
GET /v1/erp/invoices/{nr}Query status & deliveryincl. transmission history
GET /v1/erp/inboundFetch inbound documents automaticallyvalidated, with error status
API keysSandbox & production, permissions per keyissue/receive scopes, rotation, audit

Onboarding in three steps

  1. Keys & sandboxYou receive test and production keys with separate permissions (issue only, fetch only, both).
  2. Field mapping instead of programmingYour export format (CSV, IDoc-like, JSON) is mapped server-side onto the invoice model — including line items. A dry run shows the result before anything is issued.
  3. Test document → release → liveA sandbox document runs through the real validation; if everything fits, you enable the production key. The integration status (keys, mapping, first documents) is available at any time.

Reliability in continuous operation

  • Idempotency: the same document number sent twice → one document, no duplicate. Retries after timeouts are safe.
  • Honest errors: an invalid document comes back as an error with the concrete rule violations — never as a silent “it’ll be fine.”
  • Tenant separation & segments: ERP keys work only for ERP tenants; web accounts have no API access and vice versa.
  • Full archive: API documents too are stored unalterably for 8 years in the GoBD archive — your ERP doesn’t have to do that itself.
API response behavior — predictable rather than surprising
SituationResponseYour ERP does
Document valid200 · status VALID + numberSave status, done
Same document number again200 · idempotent:truenothing — no duplicate created
Validation error422 · concrete rule violations (e.g. BR-DE-15)Show error, correct data
Key without permission403Check configuration
Web account instead of ERP tenant403/404 — segments are separateUse the correct tenant

Security of the machine interface

API keys are stored hashed (plaintext visible only once at creation), carry permissions (issue only, fetch only) and environments (sandbox/production) and can be rotated at any time. Every call is assigned to a tenant and logged; the web interface and the machine API are strictly separate access paths.

Example call

POST /v1/erp/invoices · Authorization: Bearer <API-Key>
{"number":"RE-2026-1042","buyer":{"name":"Kunde GmbH","country":"DE","vat_id":"DE…"},"lines":[{"name":"Seefracht","net_price":2500,"service_type":"intl_transport"}]}
Response: {"status":"VALID","number":"RE-2026-1042", …} — or the precise validation errors.

Frequently asked questions

Which ERP systems are supported?

All that can export invoice data — the mapping does the format work. The reference case is a logistics integration (Cello / IDoc-like structures).

What does the integration cost?

A quote based on document volume and connection effort — support@coolhanx.com.

How long does the connection take?

With an existing data export, typically days, not months: configure the mapping, sandbox document, release.

Are there webhooks?

Status queries are available; push webhooks for delivery events are planned for production.

How do we test safely?

With the sandbox key: same validation, separate data space, no impact on production — including a dry run of the field mapping.

Who maintains the mapping when formats change?

The mapping sits server-side and is adjusted jointly — your ERP export stays unchanged.

Do you support multiple tenants/companies?

Yes — one tenant per company with its own keys, number ranges and its own archive.

Related topics

Request a tenant / ERP connection

We’ll get back to you within 24 h on business days. Alternatively: support@coolhanx.com

General product information — not legal or tax advice. Binding guidance is provided by your tax advisor or legal counsel.

Discuss an ERP connection? Send the request above or support@coolhanx.com — reply within 24 h on business days.

Create your free company account