Skip to content
Back to News
Changelog

SDK 6.5.1 removes a call to a route the API does not serve

sdk

6.5.1 is a patch. No method, type or export changes, and no request your code makes changes.

What was wrong

The SDK's built-in transport, the layer behind Peppol that sends requests, carried a sendCreditNote() method that posted to /v1/credit-notes. The API serves no such route: a call would have answered 404.

Nothing called it. Credit notes already travelled through POST /v1/invoices, whether you send them with peppol.invoices.send({ ...input, isCreditNote: true }) or with the deprecated peppol.creditNotes.send(). The built-in transport is a private member of Peppol, and PeppolConfig offers no way to inject or replace it. Its interface, BackendAdapter, is exported as a type, marked @internal; implementing it yourself is not supported.

What changed

The method now sends exactly the request peppol.creditNotes.send() sends: POST /v1/invoices with isCreditNote: true and the reference to the original invoice. The built package no longer contains any call to /v1/credit-notes.

Upgrading is optional. To send a credit note, keep using peppol.invoices.send() with isCreditNote: true; see credit notes.