Upcoming API changes due to new rules for house work

We will release changes to the API during the next week due to new rules for house work. The official documentation will be updated when the release is made but please take actions to ensure compatibility for these amendments as soon as possible to avoid any problems.

General

Users will now be required to provide what kind of house work that was performed. If it was at a fixed price or the hours actually worked differ from the hours invoiced, they also need to provide the actual hours worked. In addition to this the user also needs to specify material costs and other costs.

We’ve implemented this in a way so that each of these properties is controlled by the invoice rows (the same goes for orders and offers). That means that a row can be either a house work row containing the worked hours that should be tax reduced, a material cost row or a row containing other costs.

Invoices, orders and offers

For each resource above, additions will be made to the rows. Each row will get the new properties HouseWorkType and HouseWorkHoursToReport. Both properties will be optional and can be edited after the document has been locked (e.g. when an invoice has been posted).

It will still be possible to create house work documents where only the property HouseWork is used. The user will then need to add the additional information later on. The new properties are only required when the user creates the file for payment request that will be sent to Skatteverket.

  • HouseWorkType (String, Static values)
  • HouseWorkHoursToReport (Integer, 5 digits)

Example

"InvoiceRows": [
      {

        [...]

        "HouseWork": false,
        "HouseWorkHoursToReport": null,
        "HouseWorkType": "CONSTRUCTION",
        "Price": 650,
        
        [...]

      }

Articles

It will be possible to set a default house work type for each article in addition to the already existing possibility to set a default value for the Housework property. The property HouseworkType and the property Housework have no relation and they can be used independently of each other.

  • HouseworkType (String, Static values)

Example

{
    "Article": {
       
        [...]

        "Housework": false,
        "HouseworkType": "CONSTRUCTION",
        "Manufacturer": null,

        [...]

    }
}