Get credit note

Get a credit note

Query parameters

NameDescription
guid globally unique identifier

Guid of the credit note

Required

organizationId string

Returns

Returns the credit note as json.

NameDescription
CreditNoteFor globally unique identifier

Id of the invoice the creditnote is based on.

Status string

An sales voucher can have status Draft or Booked

ContactGuid globally unique identifier

Dinero contact guid.

Guid globally unique identifier

The guid of the voucher

TimeStamp string

Timestamp of version. To avoid concurrency issues.

CreatedAt date

Time of creation

UpdatedAt date

Time of last update

DeletedAt date

Time of deletion. Null unless the object is deleted.

Number integer

The number of the voucher.

ContactName string

Contact name

ShowLinesInclVat boolean

If true, the user prefers the invoice to be displayed with lines incl vat.

TotalExclVat decimal number

Total amount without vat

TotalVatableAmount decimal number

Total amount to calculate the vat from

TotalInclVat decimal number

Total amount incl. vat

TotalNonVatableAmount decimal number

Total vat free amount

TotalVat decimal number

Total vat amount

TotalLines TotalLine[] Show model
NameDescription
Type string

The type of total line. Options are: SubTotal, SubTotalWithVat, SubTotalWithoutVat, Vat and Total.

TotalAmount decimal number

Value to display

Position integer

Position in which it should be displayed, if part of a list of total lines. 0-based index.

Label string

Label text

Total lines. SubTotal, Vat and Total. Only lines valid for display in the current context are returned.

InvoiceTemplateId globally unique identifier

Template id to use for design.

Currency string

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...

Language string

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

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

Description string

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

Comment string

User supplied comment on the voucher

Date string

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

ProductLines InvoiceLine[] Show model
NameDescription
AccountName string

Name of the Account

BaseAmountValue decimal number

Amount excl. VAT

BaseAmountValueInclVat decimal number

Base amount incl. VAT

TotalAmount decimal number

Total of the line excl VAT

TotalAmountInclVat decimal number

Total of the line incl VAT

ProductGuid globally unique identifier

The guid of product. If product guid is set, description should be null.

Description string

A description of the product. If no ProductGuid, this field is required. This field will always have a value on the read model, even if a ProductGuid is set.

Comments string

User supplied comment

Quantity decimal number

Quantity

AccountNumber integer

Account number

Unit string

Product unit. Available unit types: hours, parts, km, day, week, month, kilogram, cubicMetre, set, litre, box, case, carton, metre, package, shipment, squareMetre, session, tonne.

Discount decimal number

Discount for the current line. Specified in percentage from 0 to 100.

LineType string

Type. Either Product or Text line. Text is used for creating bold lines only with text displayed, these lines are purely visual and have no effect on the voucher. Text lines should only contain a description. Product lines are the actual lines of the invoice used for accounting and total calculations.

User supplied invoice lines. Minimum one.

Address string

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

v1/{organizationId}/sales/creditnotes/{guid}

Response Formats

{
  "CreditNoteFor": "a2f7ad1a-9aa5-4a42-8e7e-d1e2b0d474fc",
  "Status": "Draft",
  "ContactGuid": "535d14aa-0c38-43a1-99f8-6bd6748aa967",
  "Guid": "4a5bf618-cc72-49e7-9570-a9b97007fe0b",
  "TimeStamp": "00000000020A5EA8",
  "CreatedAt": "2019-09-22T11:51:44.5726614Z",
  "UpdatedAt": "2019-09-22T11:51:44.5726614Z",
  "DeletedAt": "2019-09-22T11:51:44.5726614Z",
  "Number": 12,
  "ContactName": "Donald Duck",
  "ShowLinesInclVat": false,
  "TotalExclVat": 200.0,
  "TotalVatableAmount": 200.0,
  "TotalInclVat": 250.0,
  "TotalNonVatableAmount": 0.0,
  "TotalVat": 50.0,
  "TotalLines": [
    {
      "Type": "SubTotal",
      "TotalAmount": 200.0,
      "Position": 0,
      "Label": "Subtotal"
    },
    {
      "Type": "SubTotal",
      "TotalAmount": 200.0,
      "Position": 0,
      "Label": "Subtotal"
    }
  ],
  "InvoiceTemplateId": "87b45b4d-9095-4d48-8229-adffd27888d2",
  "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": [
    {
      "AccountName": "Bank",
      "BaseAmountValue": 20.0,
      "BaseAmountValueInclVat": 25.0,
      "TotalAmount": 100.0,
      "TotalAmountInclVat": 125.0,
      "ProductGuid": "550d01f9-187d-4edb-968c-2148639af226",
      "Description": "Flowers",
      "Comments": "Smells good",
      "Quantity": 5.0,
      "AccountNumber": 1000,
      "Unit": "parts",
      "Discount": 10.0,
      "LineType": "Product"
    },
    {
      "AccountName": "Bank",
      "BaseAmountValue": 20.0,
      "BaseAmountValueInclVat": 25.0,
      "TotalAmount": 100.0,
      "TotalAmountInclVat": 125.0,
      "ProductGuid": "550d01f9-187d-4edb-968c-2148639af226",
      "Description": "Flowers",
      "Comments": "Smells good",
      "Quantity": 5.0,
      "AccountNumber": 1000,
      "Unit": "parts",
      "Discount": 10.0,
      "LineType": "Product"
    }
  ],
  "Address": "Test Road 3 2100 Copenhagen Denmark"
}