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

Updates a manuel voucher

Request Information

URI Parameters

NameDescriptionTypeAdditional information
guid

Identifier of the manuel voucher

globally unique identifier

Required

organizationId

string

None.

Body Parameters

Model describing new values for the manuel voucher

ManuelVoucherUpdateModel
NameDescriptionTypeAdditional information
Timestamp

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

string

None.

VoucherDate

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

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

Resource Description

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