Join us at Fortnox App Market today!

Upcoming API Change for Prices and Articles

The below described changes will come into effect in a couple of weeks, so please prepare and take all actions necessary in your integrations to maintain compatibility and make use of the new functionality this enables.

Prices

Affected property: Price

In the current version of Fortnox (API as well as the client) there is no distinction between prices that have been set to 0 (zero) and prices that have not been set at all (not defined). Regardless of which of the two cases that are applicable, the price is currently returned as 0 (zero).

This will be changed in an upcoming release to enable the possibility for integrations to distinguish between prices that actually have the value 0 (zero) and prices that have not been set at all. This is a common request for integrations between Fortnox and POS systems.

New: Prices that have not been set will be returned as empty properties.

Example:

{
  "Price": {
    "@url": "https://api.fortnox.se/3/prices/A/1/10",
    "ArticleNumber": "1",
    "Date": "2014-03-24 14:02:54",
    "FromQuantity": 10,
    "Percent": 43.14,
    "Price": null,
    "PriceList": "A"
  }
}

Prices that have been set to 0 (zero) or another value will return these values in the same manner as of today.

Example:

{
  "Price": {
    "@url": "https://api.fortnox.se/3/prices/A/1/10",
    "ArticleNumber": "1",
    "Date": "2014-03-24 14:02:54",
    "FromQuantity": 10,
    "Percent": 43.14,
    "Price": 0,
    "PriceList": "A"
  }
}

Articles

Affected property: SalesPrice

For articles, the change described above will naturally affect the SalesPrice property in the same way.

New: Prices of articles on their standard price lists that have not been set will be returned as empty properties.

Example:

[...]
    
"SalesAccount": 3011,
"SalesPrice": null,
"StockGoods": false,
    
[...]

Prices of the article on their standard price list that have been set to 0 (zero) or another value will return these values in the same manner as of today.

Example:

[...]
    
"SalesAccount": 3011,
"SalesPrice": 0,
"StockGoods": false,
    
[...]