Skip to content
Back to Changelog
Changelog

CLI 0.17.2 brings SDK 6.8.2's PEPPOL-EN16931-P0112 to validate

clivalidation

@getpeppr/cli 0.17.2 rebundles @getpeppr/sdk 6.8.2, released earlier today. The CLI embeds the SDK in its published file, so getpeppr validate and getpeppr convert --validate only pick up a new SDK rule when the CLI is republished.

What changes

validate and convert --validate now apply PEPPOL-EN16931-P0112 as Peppol BIS Billing 3.0.22 does (RFC-607):

  • A 384 (corrected) invoice is no longer reported under P0112 when both companies resolve to Slovakia. For this Slovak exception, a company's country is its VAT number prefix first, then, for the seller only, its tax representative's VAT prefix, then its postal country. If P0112 was the invoice's only error, validate now exits 0 instead of 1, and convert --validate goes on to generate the XML, which can still fail for another reason.
  • A 389 (self-billed) invoice outside Germany is now reported under P0112 as well as PEPPOL-EN16931-P0100. It still exits 1.
  • The German case reads the postal addresses. 326 and 389 stay allowed only when both from.country and to.country are DE, and 384 between two German postal addresses passes as before, whatever the VAT prefixes say.

getpeppr send is unaffected: its preflight ignores these invoice type code rules, because invoiceTypeCode is not sent with POST /v1/invoices.

For the 389 case, validate now prints:

  ✗ invoiceTypeCode — Invoice type code is not allowed by the Peppol billing profile used by the local UBL builder. (PEPPOL-EN16931-P0100)
  ✗ invoiceTypeCode — Invoice type code 389 is only allowed when both buyer and seller are German organizations. (PEPPOL-EN16931-P0112)

No command or option changes. Requests are unchanged except the default User-Agent, which now names the bundled SDK: getpeppr-sdk/6.8.2.

npm install -g @getpeppr/cli@0.17.2