Nordlet

← Docs / Guides

Getting started

API keys, first calls, the full invoicing cycle, SDKs and webhooks.

Nordlet is an API-first accounting platform for the EU/EEA, United Kingdom and United States markets, launching with full Lithuanian compliance. Everything the product does - invoicing, general ledger, bank reconciliation, i.SAF - is available over one JSON API.

1. Get an API key

Every request is authenticated with a Bearer API key and names the company it acts on. Owners, admins and developers create keys under Account → Developers. A key works in every company you are a member of:

Authorization: Bearer nl_...
x-nordlet-company: <company id>

Postman

Prefer Postman? Import the ready-made collection - every endpoint, grouped by module, with bearer auth pre-wired: Nordlet Postman collection. After importing, set the collection's bearerToken variable to your API key and every request is authenticated.

Sandbox companies

For integration testing, create a company with isSandbox: true (POST /v1/account/companies/create, or tick the sandbox checkbox during onboarding in the app). A sandbox company behaves exactly like a real one - same modules, same API, so you can push realistic transaction volume through it - but it is visibly badged as test data and deleting it purges everything immediately instead of after the 10-day retention window. Without a paid plan, the free sandbox plan allows one sandbox company, free for 14 days; with a paid plan you can run any number of sandbox companies alongside your real ones under the same account. Once a paid plan is chosen, a sandbox company can be converted to a live company with all of its data (POST /v1/account/companies/convert-to-live, or Convert to live on its row in the app); a live company can never be turned into a sandbox company, so real books cannot be reclassified as test data. On a paid plan, usage in a sandbox company is metered and billed exactly like usage in a real company: requests, document-scanning pages, storage and the reactivation fee. Filings and e-invoices of a sandbox company always go to the administrations' test endpoints.

2. First calls

Every operation is POST /v1/{module}/{resource}/{action} with a JSON body. Create a customer:

curl -X POST https://api.nordlet.com/v1/partners/create \
  -H "Authorization: Bearer $API_KEY" -H "x-nordlet-company: $COMPANY_ID" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: partner-create-001" \
  -d '{"name": "UAB Klientas", "code": "301111222", "vatCode": "LT100001112223"}'

Issue an invoice (amounts are decimal strings, never floats):

curl -X POST https://api.nordlet.com/v1/sales/invoices/create \
  -H "Authorization: Bearer $API_KEY" -H "x-nordlet-company: $COMPANY_ID" -H "Content-Type: application/json" \
  -d '{
    "partnerId": "<partner id>",
    "lines": [{"description": "Konsultacijos", "quantity": 4, "unitPriceExclVat": "75.0000", "vatClassifierCode": "PVM1"}]
  }'

curl -X POST https://api.nordlet.com/v1/sales/invoices/issue \
  -H "Authorization: Bearer $API_KEY" -H "x-nordlet-company: $COMPANY_ID" -H "Content-Type: application/json" \
  -d '{"id": "<invoice id>", "issueDate": "2026-07-09"}'

Issuing allocates a gapless number (SF-1), checks the accounting period is open, and posts the balanced journal entry (D 2410 receivable / C 5001 revenue / C 4492 VAT) in the same transaction.

3. The full cycle

Step Call
Bring the books over from a previous system migration/books/validate → migration/books/import - see Migrating from another system
Register a supplier bill purchases/invoices/create → purchases/invoices/register
Import a bank statement bank/statements/import (camt.053 XML) or bank/transactions/import (JSON)
Get match suggestions bank/transactions/suggest-matches
Reconcile a payment bank/transactions/match - posts the payment and updates paymentStatus
Pay suppliers bank/payments/export - pain.001 SEPA file for your bank
Monthly VAT registers declarations/lt/isaf/generate - i.SAF 1.2 XML for VMI
VAT return figures declarations/lt/fr0600/compute - FR0600 fields reconciled against the registers
Ship goods with a waybill transport/waybills/create → issue, then declarations/lt/ivaz/generate - i.VAZ XML for VMI

4. TypeScript SDK

npm install nordlet
import { NordletApiClient } from 'nordlet'

const client = new NordletApiClient({
  token: process.env.NORDLET_API_KEY!,
  headers: { 'x-nordlet-company': process.env.NORDLET_COMPANY_ID },
})

const invoice = await client.sales.invoicesCreate(
  {
    partnerId,
    lines: [{ description: 'Konsultacijos', quantity: '4', unitPriceExclVat: '75.0000', vatClassifierCode: 'PVM1' }],
  },
  { headers: { 'Idempotency-Key': `order-${orderId}` } },
)

The SDK is generated from the OpenAPI spec, so every request and response is fully typed. See SDKs for the other languages.

5. Webhooks

Subscribe to events instead of polling:

curl -X POST https://api.nordlet.com/v1/webhooks/subscriptions/create \
  -H "Authorization: Bearer $API_KEY" -H "x-nordlet-company: $COMPANY_ID" -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/hooks/hyperion", "events": ["sale_invoice.issued", "sale_invoice.paid"]}'

Deliveries carry a timestamped HMAC signature (x-nordlet-signature-v2: t=<unix seconds>,v1=<hex> over <timestamp>.<raw body> with your subscription secret) next to the original x-nordlet-signature: sha256=<hex> of the raw body, and are retried for about 24 hours. See API conventions for the replay window.

Each delivery body is { id, version, companyId, eventType, createdAt, data }: version is the envelope version (currently 1) and companyId is the company the event belongs to, so one receiver can serve several companies. Subscribing to a name that is not in the list below is refused with 400; use "*" for every event. After 5 events in a row could not be delivered, the subscription is paused and the company owners get an e-mail; resume it in Account → Webhooks or with webhooks/subscriptions/update and isActive: true.

Events: agreement.invoice_generated, bank_feed.synced, document_capture.peppol_received, filing.failed, filing.rejected, goods_receipt.posted, intercompany.invoice_mirrored, item.created, item.deleted, item.updated, lead.converted, lead.created, partner_inquiry.created, payroll_run.approved, payroll_run.reversed, pos_report.created, price_list.updated, purchase_invoice.paid, purchase_invoice.registered, purchase_order.approved, purchase_order.received, refund_liability.actual, refund_liability.trued_up, report.completed, report.failed, revenue_recognition.modified, revenue_recognition.posted, sale_invoice.einvoice_sent, sale_invoice.issued, sale_invoice.paid, sale_invoice.peppol_delivered, sale_invoice.peppol_failed, sale_invoice.peppol_rejected, sale_invoice.peppol_sent, sale_invoice.quote_sent, sale_invoice.sent, sales_order.created, sales_order.fulfilled, settlement.imported, settlement.posted, settlement.updated, stock.changed, stock.reorder_needed, vat_review.opened, vat_review.resolved. The OpenAPI document lists each one under x-webhooks.

See API conventions for list queries, error envelopes, idempotency semantics, and rate limits.