Skip to content

hmphu/fortnox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fortnox PHP SDK

Unofficial PHP wrapper for Fortnox API http://developer.fortnox.se/getting-started/

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist hmphu/fortnox

or add

"hmphu/fortnox": "*"

to the require section of your composer.json.

Get a developer account

First of all you need to register as a developer.

To register you just need to fill out this form.

Get your Access Token

You’ve got your Authorization-Code and your Client-Secret. These will be the keys to get the final Access-Token.

The Authorization-Code is valid for seven days before becoming invalid and can only be used once to retrieve the Access-Token.

If the Authorization-Code is used again after an Access-Token has been retrieved the Authorization-Code will become invalid and the integration will become deactivated.

The Access-Token combined with the Client-Secret is unique for your application and connects to a specific Fortnox account.

To retrieve your Access-Token you simply send a request to our API using the headers “Authorization-Code” and “Client-Secret”.

Here’s an example using cURL

curl -X "GET" "https://api.fortnox.se/3/" \
     -H "Authorization-Code: YOUR_AUTHORIZATION_CODE" \
     -H "Client-Secret: YOUR_CLIENT_SECRET" \
     -H "Content-Type: application/json" \
     -H "Accept: application/json"

Supported Apis

  • Account API
  • Account Charts API
  • Archive API
  • Article API
  • Article File Connection API
  • Article URL Connection API
  • Customer API
  • Invoice API
  • Project API
  • Supplier API

Authors and Contributors

Make with love to Fortnox

In 2016, PhuHM (@hmphu), http://hmphu.com

Support or Contact

Having trouble? contact me