@quantix-ict/debtt
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Debtt client by Quantix

A library to use the debtt API.

Installation and Usage

Installation:

npm i @quantix-ict/debtt

Usage:

const { Debtt } = require('@quantix-ict/debtt')

const debtt = new Debtt('API_KEY')

const result = await debtt.createCase({
  vorm: 'zakelijk',
  debiteurnr: '123456',
  kvknummer: '12345678',
  naam: 'Voorbeeld B.V.',
  adres: 'Voorbeeldstraat 1',
  plaats: 'Amsterdam',
  postcode: '1234AB',
  land: 'NL',
  telefoon: '0612345678',
  mobiel: '0612345678',
  email: 'voorbeeld@voorbeeld.com',
  factuur: [
    {
      nummer: '123456',
      datum: new Date('01-01-2023'),
      vervaldatum: new Date('01-02-2023'),
      bedrag: 1234.56,
    },
  ],
})

of using import:

import { Debtt } from '@quantix-ict/debtt'

const debtt = new Debtt('API_KEY')

const result = await debtt.createCase({
  vorm: 'zakelijk',
  debiteurnr: '123456',
  kvknummer: '12345678',
  naam: 'Voorbeeld B.V.',
  adres: 'Voorbeeldstraat 1',
  plaats: 'Amsterdam',
  postcode: '1234AB',
  land: 'NL',
  telefoon: '0612345678',
  mobiel: '0612345678',
  email: 'voorbeeld@voorbeeld.com',
  factuur: [
    {
      nummer: '123456',
      datum: new Date('01-01-2023'),
      vervaldatum: new Date('01-02-2023'),
      bedrag: 1234.56,
    },
  ],
})

Readme

Keywords

Package Sidebar

Install

npm i @quantix-ict/debtt

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

12.9 kB

Total Files

20

Last publish

Collaborators

  • quantix-ict