Update manuel voucher

Updates a manuel voucher

Query parameters

NameDescription
guid globally unique identifier

Identifier of the manuel voucher

Required

organizationId string

Request model

Model describing new values for the manuel voucher
NameDescription
Timestamp string

Timestamp to verify version before editing, use the timestamp value from last time get

VoucherDate string

The date of the voucher, uses yyyy-MM-dd format

Lines ManuelVoucherLineCreateModel[] Show model
NameDescription
Description string

Description of the line

AccountNumber integer

The account number to book on

BalancingAccountNumber integer

The account number to balance with

Amount decimal number

The amount of money in the line, amount should include VAT when VAT type is purchase and exclude VAT when VAT type is sale or the VAT type is foreign to Denmark

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.

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.

The lines of the voucher

FileGuid string

Guid of the file associated with the voucher, optional value

ExternalReference string

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 length: inclusive between 0 and 128

Returns

NameDescription
VoucherNumber integer

The vouchers number

VoucherDate string

Date of the voucher

TotalInclVat decimal number

Total amount of money in the voucher, including vat

TotalExclVat decimal number

Total amount of money in the voucher, excluding vat

FileGuid string

Guid of the file associated with the voucher

Guid globally unique identifier

Guid of the voucher

Status string

Voucher status: Draft, Editing or Booked

Lines ManuelVoucherLineReadModel[] Show model
NameDescription
Description string

Description of the line

AmountExclVatValue decimal number

Amount on the line excluding VAT

AmountInclVatValue decimal number

Amount on the line including VAT

VatAmountValue decimal number

Amount in VAT on the line

AccountNumber integer

The account number the line books on

BalancingAccountNumber integer

The account number the line balances on

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.

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.

List of the lines on the voucher

Timestamp string

Timestamp used to validate version in case of updating

ExternalReference string

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

v1/{organizationId}/vouchers/manuel/{guid}

Requests Formats

{
  "Timestamp": "00000000000017B7",
  "VoucherDate": "2018-09-02",
  "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": "pa2halkrpgo3oho45hj0dlkfrro4ilf",
  "ExternalReference": "e.g. WebShopID:42"
}

Response Formats

{
  "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"
}