REST-API · GET /health · /info · /usage · free
Request
The routes at a glance
Address: https://einvoicetools.de/wp-json/einvoice-api/v1/…
The routes
GET /health – The sign of life. The answer is {“status”:”ok”}. No key needed.
GET /info – Which validators and renderings the service offers, in the same form as the Validator Bridge, plus server and contract, the version of the shared interface. No key needed.
GET /usage – The usage of your quota in the current month, per group of routes. Needs your key, but costs nothing.
GET /openapi.json – The full description of the API in OpenAPI format. With ?only=<name> you get only a part, e.g. ?only=vat. No key needed.
Example
A call with curl
curl -X GET "https://einvoicetools.de/wp-json/einvoice-api/v1/usage" \
-H "Authorization: Bearer <key>"
Cost
Quota and plan
These routes cost nothing and never count against your quota.
Every answer to a call with a key also carries the headers X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-Quota-Stage. So your program sees with every call how much is left.
