Skip to content

Documentation / @einvoice-ts/core / PROFILE_IDS

Variable: PROFILE_IDS ​

const PROFILE_IDS: object

Defined in: packages/core/src/constants.ts:97

Every cbc:ProfileID recognised by Peppol BIS Billing 3.0, mapped to the process code the Schematron computes for it.

Taken verbatim from the $profile let of PEPPOL-EN16931-UBL.sch 3.0.22, which knows four ids: the billing id and the two French billing ids (regulated, non-regulated) are 01, billing with response is 02. Anything else is Unknown to the Schematron and makes PEPPOL-EN16931-R007 fail.

Type Declaration ​

urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 ​

readonly urn:fdc:peppol.eu:2017:poacc:billing:01:1.0: "01" = '01'

urn:peppol:bis:billing_with_response ​

readonly urn:peppol:bis:billing_with_response: "02" = '02'

urn:peppol:france:billing:non-regulated ​

readonly urn:peppol:france:billing:non-regulated: "01" = '01'

urn:peppol:france:billing:regulated ​

readonly urn:peppol:france:billing:regulated: "01" = '01'

Example ​

ts
import { PROFILE_IDS } from '@einvoice-ts/core';

const profile = PROFILE_IDS['urn:peppol:bis:billing_with_response'] ?? 'Unknown'; // '02'

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.