Skip to content

skilltryck/fortnox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortnox

A Node.js module that implements, some, fortnox api functions.

Installation

npm install fortnox --save

Usage

Javascript

import { Fortnox } from 'fortnox';

const fn = new Fortnox({host: 'https://api.fortnox.se/3/', clientSecret: 'xyz', accessToken: 'zyx' })
const aCustomer = await fn.customers.get('1');
const allActiveCustomers = await fn.customers.getAll('active'); 
const aNewCustomer = await fn.customers.create({Name: 'John McClane'});

Implemented (so far):

  • Customer (create, get, update, remove)
  • Article (create, get, update, remove)
  • Invoice (create, get, update, send (email), cancel)
  • Supplier (create, get, update, inactivate) (0.1.14)
  • SupplierInvoice (create, get, update, cancel) (0.1.14)

Fork and add stuff!

Help

About

Fortnox API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%