Tag: fortnox

Apps

start-fortnox-sync (from Airtable)

– Was made for internal Use. Starts Pricelist sync to Fortnox on the main shops server. Waits for 30 minutes for each pricelist to finish. NOTE: Add airtableToken & main server authorizationLink to make it work. (async function() {   var localMode = typeof addEventListener === “undefined” && typeof input === “undefined” ? true : false; …

Apps, Blog

fn-cors-proxy-with-auto-refresh

This script will run a simple CORS server for Fortnox API: https://developer.fortnox.se/documentation/ It will also refresh the API token every 30 minutes and will use it automatically allowing us access to Fortnox API. We do not need to provide Fortnox API token. There should be a token file with client ID & secret with same …

apps

import-from-woocommerce-to-fortnox-cron-v1

v1.js

Cron to perform multiple imports from woocommerce to fortnox. Imports orders to fortox.
Should be run with command line arguments.

Example:
node import-from-woocommerce-to-fortnox-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
type=order \
fn-api-url= \
fn-client-secret= \
fn-access-token= \
optional:
console-key=my-console-key
console-prefix=import-from-woocommerce-to-fortnox-v1

Check also: https://console.ylo.one/

Airtable configuration schema table example: https://airtable.com/shrOSB0DFqir5c46L/tblL26Ms8WZWh6Uh0

Help: Coming soon! 😀

An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-woocommerce-to-fortnox-cron

Available Methods: start, startUps, workerStartUps, callbacks, api, build, cron, parseArgv, console, exit, consoleColors, camelCase, properCase, workers, enhance, publish, utils, has

apps

import-from-woocommerce-to-fortnox-v1

v1.js

Imports from woocommerce to fortnox. Imports orders to fortnox. You can also import a single order by specifying wc-order-number.
Should be run with command line arguments.

Example:
node import-from-woocommerce-to-fortnox-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=order \
fn-api-url= \
fn-client-secret= \
fn-access-token= \
wc-order-number=XXXXXX \
optional:
console-key=my-console-key
console-prefix=import-from-woocommerce-to-fortnox-v1

Help: Coming soon! 😀

An app bundled by ac-bundle-app, published by ac-bundle-module. namespace: import-from-woocommerce-to-fortnox

Available Methods: start, startUps, workerStartUps, callbacks, api, build, parseArgv, console, exit, consoleColors, camelCase, properCase, enhance, publish, sync, utils, has

modules

ac-apps-minimal-api-fortnox

api/fortnox.js

Makes it easy to work with Fortnox API.

Example:
app.api.fortnox.createOrder(options, order);
app.api.fortnox.updateCustomer(options, customer);
app.api.fortnox.getCustomers(options, email);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Available Methods: createOrder, updateCustomer, createCustomer, getCustomers