Libraries

Official client libraries

We have a couple of official libraries you can use to easily connect your app/service to fakturan.nu. Each library comes with it's own documentation and examples.

Choose your language:

CURL examples

If your language isn't listed, you can use CURL. The --user argument engages http basic auth.

Get a list of your products

curl --user <your-api-key-id>:<your-api-key-password> -H "Content-Type: application/json" https://www.fakturan.nu/api/v2/products

Create a product

curl --user <your-api-key-id>:<your-api-key-password> -H "Content-Type: application/json" -d '{"name": "Blue Suede Shoes", "unit": "pairs"}' https://www.fakturan.nu/api/v2/products

Create an invoice

curl --user <your-api-key-id>:<your-api-key-password> -H "Content-Type: application/json" -d '{"date": "20150101", "client": {"company": "Acme Shoe factory"}, "rows": [{"product_name": "Blue Suede Shoes", "unit": "pairs"}]}' https://www.fakturan.nu/api/v2/invoices