DEPRECATED PUT v1/{organizationId}/invoices/{guid}

Update an existing invoice. The invoice cannot be updated if booked.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
guid

Unique identifier for the invoice information

globally unique identifier

Required

organizationId

string

None.

Body Parameters

Content of the invoice to update

InvoiceUpdate
NameDescriptionTypeAdditional information
Timestamp

Version of the invoice

string

Required

PaymentConditionNumberOfDays

Number of days until payment deadline. If PaymentConditionNumberOfDays AND PaymentConditionType is left empty they will default to the contacts default payment conditions.

integer

None.

PaymentConditionType

Type of payment condition. Valid types are: Netto, NettoCash, CurrentMonthOut, or Paid. Note that if you use NettoCash or Paid, PaymentConditionNumberOfDays should be null.

string

None.

ContactGuid

Dinero contact guid.

globally unique identifier

None.

ShowLinesInclVat

If your user (or your system) prefers to provide the line amounts incl. VAT, then this property should be set to true. All voucher lines will be assumed to have amounts incl VAT. If your lines are excl VAT, you do not need to set this property. It will defaults to false.

boolean

None.

Currency

The currency used on the voucher. Defaults to DKK if null. Dinero will assign days date currency rate for the given currency. Currencies are given i format: DKK, EUR, USD ect...

string

None.

Language

The language to be used in the voucher. Available languages are 'da-DK' and 'en-GB'. Defaults to 'da-DK'.

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

Description

User supplied description of the voucher e.g. 'Custom Invoice description'. Defaults to document type e.g. 'Invoice', 'Offer', 'Creditnote' using the selected language.

string

None.

Comment

User supplied comment on the voucher

string

None.

Date

The date of the creation/issuing. This should be in the format YYYY-MM-DD e.g. 2015-12-02. Defaults to today.

string

None.

ProductLines

User supplied invoice lines. Minimum one.

Collection of InvoiceLineCreate

Required

Address

Contact address (linebreaks are allowed '\n'). When null is specified the address defaults to the contacts address.

string

None.

Sample:
{
  "Timestamp": "sample string 1",
  "PaymentConditionNumberOfDays": 8,
  "PaymentConditionType": "Netto",
  "ContactGuid": "6ecce53c-7cb4-4bd6-8398-bd2dfd45d7f2",
  "ShowLinesInclVat": false,
  "Currency": "DKK",
  "Language": "en-GB",
  "ExternalReference": "Fx. WebshopSpecialId: 42",
  "Description": "Description of document type. Fx.: invoice, credit note or offer",
  "Comment": "Very very important comment",
  "Date": "2015-12-02",
  "ProductLines": [
    {
      "BaseAmountValue": 20.0,
      "ProductGuid": "5a833ba2-7d68-41d9-a8a9-5f613363c157",
      "Description": "Flowers",
      "Comments": "Smells good",
      "Quantity": 5.0,
      "AccountNumber": 1000,
      "Unit": "parts",
      "Discount": 10.0,
      "LineType": "Product"
    },
    {
      "BaseAmountValue": 20.0,
      "ProductGuid": "5a833ba2-7d68-41d9-a8a9-5f613363c157",
      "Description": "Flowers",
      "Comments": "Smells good",
      "Quantity": 5.0,
      "AccountNumber": 1000,
      "Unit": "parts",
      "Discount": 10.0,
      "LineType": "Product"
    }
  ],
  "Address": "Test Road 3 2100 Copenhagen Denmark"
}

Response Information

Resource Description

Returns 200 (OK) if the invoice is updated successfully

UpdatedResponseModel
NameDescriptionType
Guid

The id of the object

globally unique identifier
TimeStamp

Timestamp of version. To avoid concurrency issues.

string
Sample:
{
  "Guid": "86e28ebb-6103-41e6-804e-074c303f99ce",
  "TimeStamp": "00000000020A5EA8"
}