Add ledger items

Add a new ledger item to the ledger. The maximum number of ledger items in the same ledger is 1000.

Query parameters

NameDescription
organizationId string

Request model

A list of ledger item models
NameDescription
Id globally unique identifier

A optional unique identifier for the ledger item. Must be the same for lines with the same voucher number

VoucherNumber integer

The number of the voucher that will be created. If the number is represented in multiple ledger items, the ledger item lines will be treated as being part of the same voucher.

Required

AccountNumber integer

Account number e.g. 1000 or 55000

AccountVatCode string

Vat code for the selected account number. The value should be an existing VAT code e.g. I25, UVC, KUNS etc. The account VAT type can be suppressed by providing the value "none". If set to NULL it defaults to the accounts default vat code, if the account has any.

Amount decimal number

The amount value for the ledger item. The amount is always in DKK and formatted as XXXX.YY e.g. 100.23, 202.00, 1.20 etc.

BalancingAccountNumber integer

Account number of the balancing account e.g. 1000 or 55000

BalancingAccountVatCode string

Vat code for the selected balancing account number. The value should be an existing VAT code e.g. I25, UVC, KUNS etc. The balancing account VAT type can be suppressed by providing the value "none". If set to NULL it defaults to the accounts default vat code, if the account has any.

Description string

Description of the ledger item.

VoucherDate string

The date of the voucher. This should be in the format yyyy-mm-dd e.g. 2015-12-02

FileGuid string

The guid of an uploaded file to connect to the purchase voucher, this will typically be an image of the voucher.

Returns

NameDescription
Id globally unique identifier

The unique identifier to identify a ledger item.

Version string

The version for the ledger item. To avoid concurrency issues.

v1.1/{organizationId}/ledgeritems

Requests Formats

[
  {
    "Id": null,
    "VoucherNumber": 1,
    "AccountNumber": 1000,
    "AccountVatCode": "I25",
    "Amount": 200.0,
    "BalancingAccountNumber": 55000,
    "BalancingAccountVatCode": "I25",
    "Description": "Description",
    "VoucherDate": "2015-12-02",
    "FileGuid": "web0crmck5v0ndcx3313g6zn61tc7wgc"
  },
  {
    "Id": null,
    "VoucherNumber": 1,
    "AccountNumber": 1000,
    "AccountVatCode": "I25",
    "Amount": 200.0,
    "BalancingAccountNumber": 55000,
    "BalancingAccountVatCode": "I25",
    "Description": "Description",
    "VoucherDate": "2015-12-02",
    "FileGuid": "web0crmck5v0ndcx3313g6zn61tc7wgc"
  }
]

Response Formats

[
  {
    "Id": "f47ceebf-f154-46fe-9e35-5f54132e96bf",
    "Version": "AAAAAAYb0Eo1"
  },
  {
    "Id": "f47ceebf-f154-46fe-9e35-5f54132e96bf",
    "Version": "AAAAAAYb0Eo1"
  }
]