Skip to content

Create Invoice Document ​

Adds a document to the invoice

PUT /v1/Invoices/{invoiceGuid}/Documents

Use the Test or Production base URL configured under Overview.

Request parameters ​

FieldLocationMandatoryDescription
invoiceGuidpathYesstring

Headers and authentication ​

Use OAuth 2.0 Client Credentials and the Authorization header with a Bearer access token, as described under Overview.

Request body fields ​

Field pathMandatoryDescription
noteYesstring
Free extra information related to the document.
documentTypeNostring or null
Document code (one of predefined types idoc / invoice / gjeldsbrev / verdict / domforlik).
loggedAtNostring <date-time> or null
Document creation date.
originalFileNameYesstring
The file name to be generated instead of an auto-generated one.
searchValueNostring or null
Document specific search value or reference number.
externalLinkNostring or null
Link to the document, if it exists on external archive.
importantNoboolean or null
Document importancy flag.
fileDataBase64Nostring or null
Base64-encoded file body.

Response fields ​

HTTP 201
Field pathMandatoryDescription
noteNostring or null
Free extra information related to the document.
documentTypeNostring or null
Document code (one of predefined types idoc / invoice / gjeldsbrev / verdict / domforlik).
loggedAtNostring <date-time> or null
Document creation date.
originalFileNameNostring or null
The file name to be generated instead of an auto-generated one.
importantNoboolean or null
Document importancy flag.
linksNoarray of object or null
Links to internal or external archive
links[].typeNostring or null
Type of object
links[].nameNostring or null
Type of relation
links[].hrefNostring or null
URI to object
links[].resourceNostring or null
Resource type
links[].guidNostring or null
Resource guid
HTTP 400
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 401
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 403
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 408
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 409
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null