Skip to content
Back to Changelog
Changelog

SDK 6.8.2 applies PEPPOL-EN16931-P0112 as Peppol BIS 3.0.22 does

sdkvalidation

Earlier today, POST /v1/validate/ubl and UBL import on api.getpeppr.dev moved to Peppol BIS Billing 3.0.22. One rule changed, PEPPOL-EN16931-P0112 (RFC-607). @getpeppr/sdk 6.8.2 brings that rule, and only that rule, to validateSchematron(), the offline check you call yourself; it makes no network call.

What changes in validateSchematron()

  • 384 (corrected) is no longer reported under P0112 when both companies resolve to Slovakia (see below for how a company's country is resolved). 6.8.1 reported it under PEPPOL-EN16931-P0112 even then; 6.8.2 does not. Two Slovak addresses are not enough if the seller's VAT number is, say, French: the network resolves that seller to France, and so does 6.8.2.
  • 389 (self-billed) outside Germany is now reported under P0112 as well. 6.8.1 reported only PEPPOL-EN16931-P0100, because the local UBL uses the billing profile, where 389 is not allowed. 6.8.2 reports both, as the network does. The invoice was invalid before and stays invalid.
  • 326 (partial) is unchanged: it is allowed only between two German companies.

The P0112 message now names the code it refused, for example:

Invoice type code 389 is only allowed when both buyer and seller are German organizations.

Invoice type code 384 is only allowed when both buyer and seller are German organizations or both are Slovak organizations.

As on the network, the German pair is judged by the postal countries in from and to. The Slovak pair is judged by each party's VAT number prefix first, then, for the seller only, by taxRepresentative.vatNumber, then by the postal country.

No type or export changes. Requests are unchanged except the default User-Agent, which now says getpeppr-sdk/6.8.2.

npm install @getpeppr/sdk@6.8.2