DEPRECATED POST v1/{organizationId}/ledgeritems

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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
organizationId

string

None.

Body Parameters

A list of ledger item models

Collection of CreateLedgerItem
NameDescriptionTypeAdditional information
Id

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

globally unique identifier

None.

VoucherNumber

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.

integer

Required

AccountNumber

Account number e.g. 1000 or 55000

integer

None.

AccountVatCode

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.

string

None.

Amount

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.

decimal number

None.

BalancingAccountNumber

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

integer

None.

BalancingAccountVatCode

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.

string

None.

Description

Description of the ledger item.

string

None.

VoucherDate

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

string

None.

FileGuid

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

string

None.

Sample:
[
  {
    "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 Information

Resource Description

Created
Sample:

Sample not available.