Create Invoice Document
Adds a document to the case
PUT /v1/Cases/{caseGuid}/Documents
Use the Test or Production base URL configured under Overview.
Request parameters
| Field | Location | Mandatory | Description |
|---|---|---|---|
| caseGuid | path | Yes | string |
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 path | Mandatory | Description |
|---|---|---|
| note | Yes | string Free extra information related to the document. |
| documentType | No | string or null Document code (one of predefined types idoc / invoice / gjeldsbrev / verdict / domforlik). |
| loggedAt | No | string <date-time> or null Document creation date. |
| originalFileName | Yes | string The file name to be generated instead of an auto-generated one. |
| searchValue | No | string or null Document specific search value or reference number. |
| externalLink | No | string or null Link to the document, if it exists on external archive. |
| important | No | boolean or null Document importancy flag. |
| fileDataBase64 | No | string or null Base64-encoded file body. |
Response fields
HTTP 201
| Field path | Mandatory | Description |
|---|---|---|
| note | No | string or null Free extra information related to the document. |
| documentType | No | string or null Document code (one of predefined types idoc / invoice / gjeldsbrev / verdict / domforlik). |
| loggedAt | No | string <date-time> or null Document creation date. |
| originalFileName | No | string or null The file name to be generated instead of an auto-generated one. |
| important | No | boolean or null Document importancy flag. |
| links | No | array of object or null Links to internal or external archive |
| links[].type | No | string or null Type of object |
| links[].name | No | string or null Type of relation |
| links[].href | No | string or null URI to object |
| links[].resource | No | string or null Resource type |
| links[].guid | No | string or null Resource guid |
HTTP 400
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 401
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 403
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 408
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 409
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
