const peppol = require('@kleinkode/peppol-api');

async function sendInvoice(invoice) {
  const client = new peppol.Client({
    accessPoint: 'kleinkode.be',
    peppolId: invoice.sender.peppolId,
  });

  const result = await client.send({
    to: invoice.receiver.peppolId,
    document: invoice.toUBL(),
    format: 'BIS3',
  });

  return result.status; // "delivered"
}

// Automatisch, compliant, real-time
sendInvoice(myInvoice).then(console.log);const peppol = require('@kleinkode/peppol-api');

async function sendInvoice(invoice) {
  const client = new peppol.Client({
    accessPoint: 'kleinkode.be',
    peppolId: invoice.sender.peppolId,
  });

  const result = await client.send({
    to: invoice.receiver.peppolId,
    document: invoice.toUBL(),
    format: 'BIS3',
  });

  return result.status; // "delivered"
}

// Automatisch, compliant, real-time
sendInvoice(myInvoice).then(console.log);const peppol = require('@kleinkode/peppol-api');

async function sendInvoice(invoice) {
  const client = new peppol.Client({
    accessPoint: 'kleinkode.be',
    peppolId: invoice.sender.peppolId,
  });

  const result = await client.send({
    to: invoice.receiver.peppolId,
    document: invoice.toUBL(),
    format: 'BIS3',
  });

  return result.status; // "delivered"
}

// Automatisch, compliant, real-time
sendInvoice(myInvoice).then(console.log);const peppol = require('@kleinkode/peppol-api');

async function sendInvoice(invoice) {
  const client = new peppol.Client({
    accessPoint: 'kleinkode.be',
    peppolId: invoice.sender.peppolId,
  });

  const result = await client.send({
    to: invoice.receiver.peppolId,
    document: invoice.toUBL(),
    format: 'BIS3',
  });

  return result.status; // "delivered"
}

// Automatisch, compliant, real-time
sendInvoice(myInvoice).then(console.log);
Kleinkode
Free Peppol Risk Scan

How big is your Peppol risk?

Answer 9 quick questions and receive a personalised risk report on your e-invoicing compliance.

Less than 2 minutes · Free · No obligations