journal entries

POST /companies/{companySlug}/generalJournalEntries

Changed on

Creates a new general journal entry (fri postering).

Request

Request body

descriptionstring

We add the flag 'Fri postering registrert via API: '. This must be taken into account in the max length of the description

openboolean

The journal entry can be set to either open or closed (closed is the default). In the case of an open journal entry these can be deleted without creating a counter transaction.

Example request

{
  "journalEntries": [
    {
      "createdDate": "2018-04-03",
      "lastModifiedDate": "2018-04-03",
      "transactionType": "Inngående balanse",
      "journalEntryNumber": 18,
      "description": "Purchase, Schweigaards Gate 34 AS (invoice nr 26083)",
      "date": "2018-04-03",
      "lines": [
        {
          "amount": 310000,
          "account": "2400:20079",
          "vatCode": "1",
          "lastModifiedDate": "2018-04-03"
        }
      ],
      "attachments": [
        {
          "uuid": "745b2f15-1234-4408-8bf2-b1d2d7610cb2",
          "filename": "invoice_24760.pdf",
          "identifier": "24760",
          "type": "invoice"
        }
      ]
    }
  ]
}

Response

Created

Changes

    • info

      added the new optional request property ////

    • info

      added the new optional request property ////

    • info

      the request optional property // became read-only