Skip to content

Documentation / @einvoice-ts/validator / peppolRuleset

Variable: peppolRuleset ​

const peppolRuleset: Ruleset

Defined in: packages/validator/src/rulesets/peppol.ts:35

The Peppol BIS Billing 3.0 rules. Requires en16931Ruleset; national rules are opt-in constants of their own, so a composition without them can accept a document that the official Peppol validator, which applies them by supplier country, rejects.

Example ​

ts
import { en16931Ruleset, peppolRuleset, validate } from '@einvoice-ts/validator';

validate(invoice, { ruleset: [en16931Ruleset, peppolRuleset] }).ruleset.ids; // ['en16931', 'peppol']

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.