Skip to main content
POST
Add document

Authorizations

Authorization
string
header
required

Authentication can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}.

Path Parameters

tenantId
string<uuid>
required

Id of the tenant

Body

application/json

New document

entityId
string<uuid>
required

Id of the case or the creditor the document belongs to.

entityType
enum<string>
required

What the document is attached to. case hangs it on a collection case, creditor on the creditor itself.

Available options:
case,
creditor
type
enum<string>
required

What the document is. The types other than OTHER carry legal meaning in the collection process — they decide whether the debt has a foundation and when it expires — and are set by the collector, not by you.

Available options:
OTHER,
FOUNDATION,
SKYLDERKLAERING,
COURTOPGJORTOGFREMLAGT,
DOM,
PAATEGNING,
FORLIG,
COURT,
GAELDSBREV
file
object

The uploaded file, as returned by the file endpoint. Only fileId is read: the name and content type are taken from the stored file, so they always agree with it.

minAccessRole
enum<string>

The least privileged role that may see the document. debtor shows it to the debtor in the self-service portal, client to the creditor, caseworker only to the collector. Defaults to the collector-only level.

Available options:
debtor,
client,
caseworker
date
string

The date of the document itself, which can differ from the date it was uploaded. Defaults to now.

isSigned
boolean

Whether the document is already signed.

signedAt
string

When the document was signed. Only used together with isSigned.

meta
object

Extra information about the document.

Response

Successful operation

documentId
string<uuid>
id
integer

Sequential id of the document

tenantId
string<uuid>
entityId
string<uuid>
entityType
enum<string>

What the document is attached to. case hangs it on a collection case, creditor on the creditor itself.

Available options:
case,
creditor
type
enum<string>

What the document is. The types other than OTHER carry legal meaning in the collection process — they decide whether the debt has a foundation and when it expires — and are set by the collector, not by you.

Available options:
OTHER,
FOUNDATION,
SKYLDERKLAERING,
COURTOPGJORTOGFREMLAGT,
DOM,
PAATEGNING,
FORLIG,
COURT,
GAELDSBREV
file
object
signedFile
object

The signed version of the file, once the document has been signed.

minAccessRole
string
date
string
signedAt
string | null
createdAt
string