A Node.js module that implements, some, fortnox api functions.
npm install fortnox --save
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'});
- 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!
- Documentation for Fortnox at https://developer.fortnox.se/documentation/