Kitus REST API

The Kitus REST API exposes client verification and, at launch, e-invoicing. It is consumed from any language — anything that can make an HTTP request. The PHP SDK is just a comfort layer over this API.

A HTTP JSON API

  • URL: https://api.kitus.tech;
  • authentication: token in the Authorization: Bearer <token> header;
  • contract: OpenAPI 3.1, with documentation published on docs.kitus.tech at launch.

Two environments, one URL

Environment Token Behavior
Sandbox test_… no real call; reserved numbers to simulate each case
Live live_… real data

Both environments share the same https://api.kitus.tech URL: the environment comes from the token, not the URL. Test all cases in the sandbox — refused invoices included — with no real sending.

Verify a client

Verification covers intra-community VAT with VIES, and SIREN and SIRET with INSEE (Sirene). The result carries the status, the VIES consultation number and a final indicator. A slow verification returns 202 and finishes in the background.

Example (sandbox):

curl https://api.kitus.tech/api/v1/vat/check \
  -H "Authorization: Bearer test_…" \
  -H "Content-Type: application/json" \
  -d '{"vat": "FR00000000001"}'

Abbreviated response:

{
  "id": "chk_…",
  "type": "vat",
  "status": "valid",
  "final": true,
  "source": "fake",
  "country": "FR",
  "consultation_number": "TEST…"
}

Signed webhooks

At each final result, Kitus sends a webhook, signed with HMAC-SHA256. The X-Kitus-Timestamp, X-Kitus-Signature and X-Kitus-Event headers allow you to verify the signature and identify the event. Signature verification is covered by the PHP SDK for PHP projects.

Reading the result

The check response carries the id and the type of the check, the status, the final indicator, the source, the country and the VIES consultation_number. In the sandbox the source is fake and the consultation number is reserved; in live, the data is real.

E-invoicing via the API

E-invoicing is available via the API at launch. Its access point is not yet published: the documentation, with the access points, will be published at launch.

Where to start

Start with the sandbox to get familiar with the responses, then switch to live when your integration is ready. Sign up to be notified at launch.

When a verification takes longer, it returns 202 and completes in the background. The signed webhook, sent at each final result, is how you know the verification is complete and in which state.