Skip to content
Back to News
Changelog

SDK 1.6.0 — Multi-tenant Legal Entities

sdkplatformpeppolmulti-tenant

We released @getpeppr/sdk v1.6.0. Platform customers can now manage their own customers as Peppol Legal Entities and send on their behalf without dropping to raw REST.

What changed

  • peppol.legalEntities — a typed resource to create, get, list (with a listAll async iterator), archive, and requestAttestation on the customers you manage. Master key only.
  • sender on invoice send — emit an invoice as one of your customers with peppol.invoices.send({ sender: { externalSubTenantId } }) (or { legalEntityId }). The seller identity is taken from the customer's verified legal entity.
  • PeppolApiError.code — gateway error codes (e.g. le_cap_exceeded, identifier_immutable) are now available directly on the error.
  • idempotencyKey option on create and requestAttestation to opt into automatic retry of transient failures.

This mirrors the existing /v1/legal-entities REST API 1:1 — no new behaviour, just a clean SDK surface. See the platform docs for examples.

Update

npm install @getpeppr/sdk@latest