Skip to content

API documentation

Integrate FACNO Hub

Your software sends the sale, FACNO Hub normalises it with the DGI and returns the official invoice, ready to print. A JSON REST API, test and production keys, signed webhooks and Python, JavaScript and PHP SDKs.

Quick startCreate a test keyhttps://api.facnohub.com/v1

Getting started

Introduction

FACNO Hub is a business invoicing system (SFE) approved by the DGI. Your till, management software or ERP does not need to be approved: it sends the sale to FACNO Hub, which computes, numbers, has the invoice normalised by the DGI e-MCF, records it in the journal and returns it to you.

One rule to follow

The connected software never produces its own invoice. It displays or prints the PDF returned by FACNO Hub, as is: that document carries the DEF/DGI code, the QR code and the counters required by the DGI.
ItemValue
API addresshttps://api.facnohub.com
Version/v1 (every route starts with /v1)
FormatUTF-8 JSON; amounts as decimal strings ("58000", "3500.50")
AuthenticationAuthorization: Bearer fh_test_… or fh_live_…
Message languageAccept-Language: fr (English by default)

Quick start

First normalised invoice in four steps.

  1. 1

    Create an account

    Free sign-up on facnohub.com: test mode opens as soon as you confirm your e-mail.

  2. 2

    Create a test key

    In the application: Integrations › API keys › New key, Test environment. The fh_test_… key is shown only once.

  3. 3

    Check the connection

    Call GET /v1/status: you see the company, the key and the points of sale.

  4. 4

    Send a sale

    POST /v1/invoices with an Idempotency-Key header: the response contains the normalised invoice and its PDF links.

curl -s https://api.facnohub.com/v1/status \
  -H "Authorization: Bearer $FACNO_API_KEY" \
  -H "Accept-Language: fr"

API keys and scopes

Every call carries the Authorization: Bearer <key> header. Keys are created under Integrations › API keys and shown only once: store them in your server's secret vault, never in source code or in a browser application.

ScopeWhat it allows
factures:ecrirecreate invoices and credit notes, read invoices, read and write customers and items
factures:lireread invoices
articles:lire / articles:ecrireread / edit the catalogue
clients:ecrireread and edit customers
rapports:lireX and A reports
rapports:zclose the period with a Z report
caisse:ecrirecash deposits and withdrawals

A key can be bound to one point of sale: it then only sees that point of sale and uses it by default. A compromised key is revoked immediately under Integrations.

Test and production

TestProduction
Key prefixfh_test_…fh_live_…
e-MCF usedDGI test platform (or simulator)the company's production e-MCF
Tax valuenone ("TEST" watermark)official invoice
Availabilityfrom sign-up, freeafter file validation and a subscription that includes the API module

The environment is set by the key: a test key never sees a production invoice, and vice versa. Going live changes nothing else in your integration (see Going live).

Idempotency

Every creation requires the `Idempotency-Key` header: POST /v1/invoices, /v1/invoices/{id}/credit-notes, /v1/items, /v1/clients, /v1/cash-movements and /v1/reports/z.

  • Generate a unique value per operation (the sale's id in your database, or a UUID stored with it).
  • After a network failure, resend the same request with the same key: FACNO Hub returns the same response without creating a second invoice.
  • Same key with a different body: 409 idempotency_conflit. No key: 400 idempotency_key_requise.
  • A key remains valid for 24 h. A request rejected by validation (400) does not consume the key.
The SDKs generate the key if you do not provide one and automatically replay the request with the same key on network failure, 429 or 5xx. Pass your own key so that it survives a restart of your software.

Errors

All errors follow the application/problem+json format, with a stable code to test in your software and a readable detail to display. Give the request_id to support.

StatusMeaningWhat to do
400 validationinvalid input: errors gives the message per fieldfix the input
401 / 403missing or revoked key, or insufficient scopecheck the key and its scopes
409idempotency conflict, or PDF requested before normalisationsee the code
422business or DGI refusal (dgi_error_code, dgi_error_desc): no invoice existsfix the sale
423 dispositif_bloquea previous invoice is being checkedwait, then resend with the same key
429rate limit reachedwait Retry-After seconds
{
  "type": "https://facnohub.com/docs/erreurs#refus_dgi",
  "title": "Refus de la DGI",
  "status": 422,
  "code": "refus_dgi",
  "detail": "La DGI a refusé la normalisation : NIF du client inconnu.",
  "dgi_error_code": "12",
  "dgi_error_desc": "NIF inconnu",
  "request_id": "4c285b0c75c14280b186d5b847172164"
}

Rate limit

120 requests per minute per key. Every response reports the counter; beyond it, the response is 429 with a Retry-After header (seconds). The SDKs wait, then replay.

RateLimit-Limit: 120
RateLimit-Remaining: 87
RateLimit-Reset: 42
RateLimit-Policy: 120;w=60

Invoicing

Connection status

Call GET /v1/status when your software starts and show the result in its "Invoicing status" screen.

{
  "company": { "name": "Kivu Services SARL", "nif": "A1234567B", "status": "mode_test" },
  "environment": "test",
  "version": "1.0.0",
  "isf": "FNH-001-01",
  "key": { "name": "B-MANAGE caisse Gombe", "scopes": ["factures:ecrire", "rapports:lire"] },
  "points_of_sale": [{
    "id": "8d1f…", "code": "PV01", "name": "Gombe",
    "devices": [{ "type": "emcf", "role": "principal", "nid": "SI01000001-1",
                  "dgi_status": "Actif", "blocked": false }]
  }]
}
  • points_of_sale[].id is the value to send in point_of_sale when the company has several points of sale (not needed if the key is bound to a point of sale or if there is only one).
  • devices[].blocked: true: an invoice is being checked (see Invoice being checked); do not send a new sale on that point of sale until it is back to false.

Create an invoice

One request: FACNO Hub validates, computes, numbers and normalises.

curl -s https://api.facnohub.com/v1/invoices \
  -H "Authorization: Bearer $FACNO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: bmanage-vente-2026-0042" \
  -d '{
    "type": "FV",
    "price_mode": "ttc",
    "client": { "type": "PM", "name": "Kivu Services SARL", "nif": "A1234567B" },
    "items": [{ "code": "RIZ25", "name": "Sac de riz 25 kg", "type": "BIE",
                "price": "58000", "quantity": "2", "tax_group": "B",
                "save_to_catalogue": true }],
    "payments": [{ "method": "ESPECES", "amount": "116000" }],
    "operator": { "id": "7", "name": "Kasongo" },
    "external_reference": "BM-2026-0042"
  }'
FieldPurpose
point_of_salepoint of sale (optional, see Connection status)
typeFV sale (default), FT deposit, EV / ET export
price_modettc (default) or ht: prices sent include or exclude VAT
client_id or clientexisting customer, or ad-hoc customer {type, name, nif, phone, email, address, exemption_reference}
items[]name, type (BIE, SER, TAX), price, quantity, tax_group; or item_id of a catalogue item
payments[]method (ESPECES, VIREMENT, CARTEBANCAIRE, MOBILEMONEY, CHEQUES, CREDIT, AUTRE) and amount
operatorcashier {id, name} (required)
external_referenceyour sale number, to find the invoice again (GET /v1/invoices?external_reference=…)
ResponseMeaningWhat to do
201status: "normalisee": normalised invoicedisplay or print the PDF
202status: "envoyee" or "a_verifier": the DGI has not confirmed yetsee Invoice being checked
422refusal: code, detail, dgi_error_codeno invoice exists; fix the sale
{
  "id": "3f0c…",
  "number": "PV01-T-2026-000042",
  "type": "FV",
  "status": "normalisee",
  "environment": "test",
  "total": "116000.00", "total_ht": "100000.00", "vat_total": "16000.00",
  "items": [{ "line_id": 12, "code": "RIZ25", "name": "Sac de riz 25 kg",
              "quantity": "2.000", "tax_group": "B" }],
  "security": { "def_dgi_code": "…", "qr_code": "…", "nid": "SI01000001-1",
                "counters": "…", "dgi_datetime": "…", "isf": "…" },
  "external_reference": "BM-2026-0042",
  "pdf_url": "https://api.facnohub.com/v1/invoices/3f0c…/pdf",
  "ticket_url": "https://api.facnohub.com/v1/invoices/3f0c…/pdf?format=ticket80"
}
Tax group rates come from the DGI: never hard-code them, read them with GET /v1/reference/tax-groups (see Reference tables).

Invoice being checked

If the DGI does not answer during normalisation (outage, timeout), FACNO Hub does not yet know whether the DGI recorded the invoice. The response is 202 with status: "a_verifier", without pdf_url.

  • FACNO Hub resumes the check by itself with the DGI: you have nothing to resend.
  • The point of sale is blocked meanwhile (blocked: true, 423 error on a new sale): this is a DGI requirement, not an outage.
  • The result arrives by webhook (invoice.normalized or invoice.failed) or by reading the invoice again.
  • Final status normalisee: print the PDF. Status annulee: the sale is not invoiced; redo it with a new idempotency key.
curl -s https://api.facnohub.com/v1/invoices/3f0c… \
  -H "Authorization: Bearer $FACNO_API_KEY"
Never print a "provisional" receipt from your software instead. Display for instance "Invoice being checked with the DGI".

PDF and duplicate

# A4
curl -s -o facture.pdf "https://api.facnohub.com/v1/invoices/3f0c…/pdf" \
  -H "Authorization: Bearer $FACNO_API_KEY"

# Ticket 80 mm
curl -s -o ticket.pdf "https://api.facnohub.com/v1/invoices/3f0c…/pdf?format=ticket80" \
  -H "Authorization: Bearer $FACNO_API_KEY"

# Réimpression : mention DUPLICATA, même numéro, journalisée
curl -s -o duplicata.pdf "https://api.facnohub.com/v1/invoices/3f0c…/duplicate.pdf" \
  -H "Authorization: Bearer $FACNO_API_KEY"
  • The PDF only exists in the normalisee status (otherwise 409 not_normalised).
  • Print it as is, with no cropping or rewriting.
  • A reprint goes through duplicate.pdf: DUPLICATA mention, same number, recorded in the journal.

Credit notes

A normalised invoice is never modified: it is corrected by a credit note (FA, or EA for an export invoice), linked to the original invoice.

natureUseitems
CORcorrectionlines of the original invoice: [{"line_id": 12, "quantity": "1"}]
RANcancellationsame
RAMreturn of goods or servicessame
RRRdiscount, rebatefree lines, like an invoice
curl -s https://api.facnohub.com/v1/invoices/3f0c…/credit-notes \
  -H "Authorization: Bearer $FACNO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: bmanage-retour-2026-0007" \
  -d '{ "nature": "RAM",
        "items": [{ "line_id": 12, "quantity": "1" }],
        "operator": { "name": "Kasongo" } }'

The response has the same shape as an invoice (type: "FA", reference = DEF/DGI code of the original invoice), with the same 201 / 202 / 422 rules.

Managing

X, A and Z reports

CallPurposeScope
GET /v1/reports/xX report since the last Zrapports:lire
GET /v1/reports/aA report preview (items sold)rapports:lire
POST /v1/reports/zcloses the period and returns the numbered Z report (irreversible)rapports:z
curl -s -X POST https://api.facnohub.com/v1/reports/z \
  -H "Authorization: Bearer $FACNO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: bmanage-z-PV01-2026-11-30" \
  -d '{ "point_of_sale": "8d1f…" }'

201 response: {"id": "…", "number": 17, "content": {…}}. The report.z.created webhook event is sent.

Cash movements

Cash deposits and withdrawals (opening float, bank deposit), included in the X report. Scope caisse:ecrire, Idempotency-Key required. Exact fields are in the reference.

curl -s https://api.facnohub.com/v1/cash-movements \
  -H "Authorization: Bearer $FACNO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: bmanage-caisse-2026-11-30-matin" \
  -d '{ "type": "depot", "amount": "150000", "reason": "Fond de caisse du matin" }'

Catalogue and customers

Sync your items and customers to send item_id / client_id instead of the full detail.

CallPurpose
GET /v1/items?code=RIZ25 · ?q=ricesearch
POST /v1/itemscreate, or update the item with the same code
GET / PATCH /v1/items/{id}detail, partial update ({"price": "60000"}, {"active": false})
GET /v1/clients?nif=A1234567B · ?q=kivusearch
POST /v1/clientscreate (nif required for PM, exemption_reference for AO)
GET / PATCH /v1/clients/{id}detail, partial update
# Rechercher un article par code ou par texte
curl -s "https://api.facnohub.com/v1/items?code=RIZ25" -H "Authorization: Bearer $FACNO_API_KEY"

# Modifier un prix (les factures déjà émises ne changent jamais)
curl -s -X PATCH https://api.facnohub.com/v1/items/9a2e… \
  -H "Authorization: Bearer $FACNO_API_KEY" -H "Content-Type: application/json" \
  -d '{ "price": "60000" }'

A PATCH only contains the fields to change. Invoices already issued never change. An id belonging to another company returns 404.

Reference tables

Reference tables give the accepted codes: tax-groups, invoice-types, client-types, item-types, payment-methods, credit-note-natures.

curl -s https://api.facnohub.com/v1/reference/tax-groups -H "Authorization: Bearer $FACNO_API_KEY"

Notifications

Webhooks

Be notified as soon as an invoice is normalised.

Declare a public HTTPS URL under Integrations › Webhooks › New (test or production environment, events). The whsec_… secret is shown only once.

EventWhenData
invoice.normalizedan invoice is normaliseddata.invoice
invoice.failedan invoice is refused or cancelleddata.invoice, data.reason, data.dgi_error
credit_note.normalizeda credit note is normaliseddata.invoice
report.z.createda Z report is createddata.report = {id, number, point_of_sale, totals}
emcf.token_expiringan e-MCF token is about to expirethe device concerned
account.status_changedthe account status changesdata = {status, reason}
POST /webhooks/facnohub HTTP/1.1
Content-Type: application/json
FacnoHub-Event: invoice.normalized
FacnoHub-Signature: t=1764493964,v1=5f0c9a…

{
  "id": "evt_5b1e…",
  "type": "invoice.normalized",
  "created": "2026-11-30T09:12:44+00:00",
  "environment": "test",
  "data": {
    "invoice": {
      "id": "3f0c…", "number": "PV01-T-2026-000042", "type": "FV",
      "status": "normalisee", "total": "116000.00", "vat_total": "16000.00",
      "def_dgi_code": "…", "qr_code": "…", "nid": "…", "dgi_datetime": "…",
      "external_reference": "BM-2026-0042",
      "pdf_url": "https://api.facnohub.com/v1/invoices/3f0c…/pdf"
    }
  }
}

Verify the signature

v1 = HMAC-SHA256(secret, "<t>.<raw body>") in hexadecimal. Compute it on the raw body received (before any JSON decoding), compare in constant time and reject a t more than 5 minutes away (replay protection).

from facnohub import verify_webhook

# ValueError si la signature est invalide ou trop ancienne
evenement = verify_webhook(request.body, request.headers["FacnoHub-Signature"], WEBHOOK_SECRET)
  • Answer 2xx quickly, then process. Any other response, including a redirect, is a failure: retried after 1 min, 5 min, 30 min, 2 h, 6 h and 12 h.
  • The same event may arrive twice: deduplicate on id (evt_…).
  • The delivery log and the Resend button are under Integrations › Webhooks.

Going live

Official SDKs

The SDKs handle authentication, idempotency, retries, the rate limit and webhook verification. Use them server-side only.

pip install facnohub

A Postman collection (variables baseUrl, apiKey) and the full OpenAPI contract are also available.

Going live

  1. 1

    Activate the company

    Validated file and up-to-date subscription that includes the API module: before that, creating a production key is refused.

  2. 2

    Secure the account

    The administrator turns on two-factor authentication, required for any production action.

  3. 3

    Create the key and webhooks

    Integrations: new Production key (fh_live_…) and production webhooks (secret different from the test one).

  4. 4

    Switch

    Replace the key in your software, then check GET /v1/status: environment: "production" and every device dgi_status: "Actif".

Then revoke the test keys you no longer need.

Checklist

  • GET /v1/status called at start-up; blocked shown to the user.
  • One stable Idempotency-Key per sale, reused on retry.
  • 201 → FACNO Hub PDF printed as is; 202 → "being checked" message, no home-made receipt.
  • 422 → detail (and dgi_error_code) shown, sale not invoiced.
  • Webhooks: signature checked on the raw body, 5-minute window, deduplication on id.
  • Credit notes via POST /v1/invoices/{id}/credit-notes, never by editing an invoice.
  • End-of-day Z report via POST /v1/reports/z (or from the application).
  • fh_live_ key kept out of source code; test keys revoked.

Endpoint reference

Every endpoint of the public /v1 API, generated from the OpenAPI contract: parameters, request bodies and responses.

Status

GET/v1/status

Check the API key, point of sale and fiscal device

Checks the API key and returns the company, the key environment (test/production), its scopes and, per point of sale, the fiscal devices (e-MCF/MCF) with their DGI status and blocked flag. Call it at start-up.

Responses

  • 200Success · Status

Invoices and credit notes

GET/v1/invoices

List invoices (cursor pagination: follow `next` until it is null)

Invoices of the key environment, most recent first. Follow next until it is null.

Parameters

FieldInTypeDescription
created_afterquerystring (date-time)—
cursorquerystring—
external_referencequerystring—
limitqueryinteger—
statusquerystring—
typequerystring—

Responses

  • 200Success · InvoicePage
POST/v1/invoices

Create and normalise an invoice

Validates, numbers and normalises the sale with the DGI. 201 = normalised (status normalisee); 202 = accepted but not yet confirmed (status envoyee or a_verifier: wait for the invoice.normalized / invoice.failed webhook or poll GET /v1/invoices/{id}); 422 = refused by the DGI (dgi_error_code), no invoice exists. The Idempotency-Key header is mandatory.

Parameters

FieldInTypeDescription
Idempotency-KeyRequiredheaderstringUnique key per creation (replayed for 24 h).

Request body

FieldTypeDescription
point_of_salestring (uuid)—
typeFV | FT | EV | ETDefault: FV
price_modettc | htDefault: ttc
client_idstring (uuid)—
clientClient—
client.typeRequiredPP | PM | PC | PL | AO—
client.namestring—
client.nifstring—
client.phonestring—
client.emailstring—
client.addressstring—
client.exemption_referencestring—
itemsRequiredItem[]—
items[].item_idstring (uuid)Catalogue item (optional).
items[].codestring—
items[].namestring—
items[].typeBIE | SER | TAX—
items[].unitstring—
items[].pricedecimal (string)—
items[].quantitydecimal (string)Default: 1.000
items[].tax_groupA | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P—
items[].specific_tax_valuestringPer unit (e.g. "230") or percentage (e.g. "10%").
items[].specific_tax_amountdecimal (string)—
items[].original_pricedecimal (string)—
items[].price_modificationstring—
items[].save_to_cataloguebooleanDefault: false
paymentsPayment[]—
payments[].methodRequiredESPECES | VIREMENT | CARTEBANCAIRE | MOBILEMONEY | CHEQUES | CREDIT | AUTRE—
payments[].amountRequireddecimal (string)—
payments[].currencystring—
payments[].ratedecimal (string)—
payments[].currency_amountdecimal (string)—
commentsobjectComment lines a to h.
currencyCurrency—
currency.codeRequiredstring—
currency.ratedecimal (string)—
operatorRequiredOperator—
operator.idstring—
operator.nameRequiredstring—
external_referencestring—
use_backup_devicebooleanDefault: false

Responses

  • 201Created (and normalised for an invoice) · Invoice
  • 202Accepted, DGI confirmation pending · Invoice
  • 422Refused (business rule or DGI): nothing is created · object
GET/v1/invoices/{invoice_id}

Get an invoice

Full invoice with security elements (DEF/DGI code, QR code, counters).

Parameters

FieldInTypeDescription
invoice_idRequiredpathstring (uuid)—

Responses

  • 200Success · Invoice
POST/v1/invoices/{invoice_id}/credit-notes

Create a credit note (FA/EA) for an invoice

Credit note (FA, or EA for an export invoice) linked to a normalised invoice. Natures COR/RAN/RAM take lines of the original invoice, RRR takes free items. Idempotency-Key is mandatory.

Parameters

FieldInTypeDescription
Idempotency-KeyRequiredheaderstringUnique key per creation (replayed for 24 h).
invoice_idRequiredpathstring (uuid)—

Request body

FieldTypeDescription
natureRequiredCOR | RAN | RAM | RRR—
itemsRequiredobject[]COR/RAN/RAM: [{"line_id": 12, "quantity": "1"}] (lines of the original invoice). RRR: free items like an invoice.
paymentsPayment[]—
payments[].methodRequiredESPECES | VIREMENT | CARTEBANCAIRE | MOBILEMONEY | CHEQUES | CREDIT | AUTRE—
payments[].amountRequireddecimal (string)—
payments[].currencystring—
payments[].ratedecimal (string)—
payments[].currency_amountdecimal (string)—
commentsobject—
operatorRequiredOperator—
operator.idstring—
operator.nameRequiredstring—

Responses

  • 201Created (and normalised for an invoice) · Invoice
  • 202Accepted, DGI confirmation pending · Invoice
GET/v1/invoices/{invoice_id}/duplicate.pdf

Duplicate (DUPLICATA mention, same number)

Reprint with the DUPLICATA mention (same number); each copy is logged.

Parameters

FieldInTypeDescription
invoice_idRequiredpathstring (uuid)—

Responses

  • 200Success · PDF
GET/v1/invoices/{invoice_id}/pdf

Official PDF to display or print as is

The official invoice. Display or print it as is: the connected software never prints its own invoice. 409 if the invoice is not normalised.

Parameters

FieldInTypeDescription
formatquerya4 | ticket80—
invoice_idRequiredpathstring (uuid)—

Responses

  • 200Success · PDF

Catalogue

GET/v1/items

List catalogue items

Active items of the company, sorted by name (500 max). Filter by exact code or by q (name contains).

Parameters

FieldInTypeDescription
codequerystring—
qquerystring—

Responses

  • 200Success · Item[]
POST/v1/items

Create or update an item (by code)

Creates the item, or updates the item that has the same code (201 created, 200 updated). Idempotency-Key is mandatory.

Parameters

FieldInTypeDescription
Idempotency-KeyRequiredheaderstringUnique key per creation (replayed for 24 h).

Request body

FieldTypeDescription
codeRequiredstring—
nameRequiredstring—
typeBIE | SER | TAX—
unitstring—
priceRequireddecimal (string)—
price_modettc | ht—
tax_groupRequiredstring—
specific_tax_valuestring—
barcodestring—
categorystring—
activeboolean—

Responses

  • 200Success · Item
GET/v1/items/{item_id}

Get a catalogue item

One item of the company (also inactive ones).

Parameters

FieldInTypeDescription
item_idRequiredpathstring (uuid)—

Responses

  • 200Success · Item
PATCH/v1/items/{item_id}

Update a catalogue item (partial)

Send only the fields to change; same validation as creation. Set active to false to hide the item. Invoices already issued are never changed.

Parameters

FieldInTypeDescription
item_idRequiredpathstring (uuid)—

Request body

FieldTypeDescription
codestring—
namestring—
typeBIE | SER | TAX—
unitstring—
pricedecimal (string)—
price_modettc | ht—
tax_groupstring—
specific_tax_valuestring—
barcodestring—
categorystring—
activeboolean—

Responses

  • 200Success · Item

Customers

GET/v1/clients

Search clients

Active clients, sorted by name (200 max). Filter by nif or q (name contains).

Parameters

FieldInTypeDescription
nifquerystring—
qquerystring—

Responses

  • 200Success · Client[]
POST/v1/clients

Create a client

nif is required for PM, exemption_reference for AO. Idempotency-Key is mandatory: a retry with the same key never creates a second client.

Parameters

FieldInTypeDescription
Idempotency-KeyRequiredheaderstringUnique key per creation (replayed for 24 h).

Request body

FieldTypeDescription
typePP | PM | PC | PL | AO—
nameRequiredstring—
nifstring—
phonestring—
emailstring—
addressstring—
exemption_referencestring—

Responses

  • 200Success · Client
GET/v1/clients/{client_id}

Get a client

One client of the company.

Parameters

FieldInTypeDescription
client_idRequiredpathstring (uuid)—

Responses

  • 200Success · Client
PATCH/v1/clients/{client_id}

Update a client (partial)

Send only the fields to change; same validation as creation. Invoices already issued keep the client details printed on them.

Parameters

FieldInTypeDescription
client_idRequiredpathstring (uuid)—

Request body

FieldTypeDescription
typePP | PM | PC | PL | AO—
namestring—
nifstring—
phonestring—
emailstring—
addressstring—
exemption_referencestring—

Responses

  • 200Success · Client

Reports

GET/v1/reports/{kind}

X report (since last Z) or A report preview

x = X report since the last Z; a = A report preview.

Parameters

FieldInTypeDescription
kindRequiredpathstring—
point_of_salequerystring (uuid)—

Responses

  • 200Success · object
POST/v1/reports/{kind}

Close the period with a Z report

Only z: closes the period and returns the numbered Z report (scope rapports:z). Idempotency-Key is mandatory: a retry with the same key returns the same Z, never a second one.

Parameters

FieldInTypeDescription
Idempotency-KeyRequiredheaderstringUnique key per creation (replayed for 24 h).
kindRequiredpathstring—

Request body

FieldTypeDescription
point_of_salestring (uuid)—

Responses

  • 201Created (and normalised for an invoice) · object

Cash

POST/v1/cash-movements

Record a cash deposit or withdrawal

Cash deposit (depot) or withdrawal (retrait), written to the electronic journal. Idempotency-Key is mandatory.

Parameters

FieldInTypeDescription
Idempotency-KeyRequiredheaderstringUnique key per creation (replayed for 24 h).

Request body

FieldTypeDescription
point_of_salestring (uuid)—
typeRequireddepot | retrait—
amountRequireddecimal (string)—
reasonRequiredstring—

Responses

  • 201Created (and normalised for an invoice) · object

Reference tables

GET/v1/reference/{table}

Reference tables (tax groups, invoice/client/item types, payment methods)

Reference tables: tax-groups, invoice-types, client-types, item-types, payment-methods, credit-note-natures. No API key needed.

Parameters

FieldInTypeDescription
tableRequiredpathstring—

Responses

  • 200Success · object

Need help?

Write to us with the request_id of the response: we find the call within seconds.

Contact us