POST v1/{organizationId}/vouchers/manuel

Creates a manuel voucher draft

Request Information

URI Parameters

NameDescriptionTypeAdditional information
organizationId

string

None.

Body Parameters

The values of the voucher

ManuelVoucherCreateModel
NameDescriptionTypeAdditional information
VoucherDate

The date of the voucher

string

None.

Lines

The lines of the voucher

Collection of ManuelVoucherLineCreateModel

None.

FileGuid

Guid of the file associated with the voucher, optional value

string

None.

ExternalReference

Your external id This can be used for ID'ing in external apps/services e.g. a web shop. The maximum length is 128 characters

string

String length: inclusive between 0 and 128

Sample:
{
  "VoucherDate": "2018-09-14",
  "Lines": [
    {
      "Description": "Salg af produkt",
      "AccountNumber": 55000,
      "BalancingAccountNumber": 1000,
      "Amount": 100.0,
      "AccountVatCode": "I25",
      "BalancingAccountVatCode": "I25"
    },
    {
      "Description": "Salg af produkt",
      "AccountNumber": 55000,
      "BalancingAccountNumber": 1000,
      "Amount": 100.0,
      "AccountVatCode": "I25",
      "BalancingAccountVatCode": "I25"
    }
  ],
  "FileGuid": "de0ed9ee-c187-4fd2-944c-fb6f6578df14",
  "ExternalReference": "e.g. WebShopID:42"
}

Response Information

Resource Description

A readmodel for the created manuel voucher draft

ManuelVoucherReadModel
NameDescriptionType
VoucherNumber

The vouchers number

integer
VoucherDate

Date of the voucher

string
TotalInclVat

Total amount of money in the voucher, including vat

decimal number
TotalExclVat

Total amount of money in the voucher, excluding vat

decimal number
FileGuid

Guid of the file associated with the voucher

string
Guid

Guid of the voucher

globally unique identifier
Status

Voucher status: Draft, Editing or Booked

string
Lines

List of the lines on the voucher

Collection of ManuelVoucherLineReadModel
Timestamp

Timestamp used to validate version in case of updating

string
ExternalReference

Your external id This can be used for ID'ing in external apps/services e.g. a web shop. The maximum length is 128 characters

string
Sample:
{
  "VoucherNumber": null,
  "VoucherDate": "2018-09-02",
  "TotalInclVat": 100.0,
  "TotalExclVat": 80.0,
  "FileGuid": "687f0b3b-7de5-4a4c-b2bd-7b4b761bbf60s",
  "Guid": "00000000-0000-0000-0000-000000000000",
  "Status": "Draft",
  "Lines": [
    {
      "Description": "Sale of things",
      "AmountExclVatValue": 80.0,
      "AmountInclVatValue": 100.0,
      "VatAmountValue": 20.0,
      "AccountNumber": 55000,
      "BalancingAccountNumber": 1000,
      "AccountVatCode": "I25",
      "BalancingAccountVatCode": "I25"
    },
    {
      "Description": "Sale of things",
      "AmountExclVatValue": 80.0,
      "AmountInclVatValue": 100.0,
      "VatAmountValue": 20.0,
      "AccountNumber": 55000,
      "BalancingAccountNumber": 1000,
      "AccountVatCode": "I25",
      "BalancingAccountVatCode": "I25"
    }
  ],
  "Timestamp": "00000000000017B7",
  "ExternalReference": "e.g. WebShopID:42"
}