Objects
Shared request and response objects used across cases, forms, and document endpoints.
Objects
Use this page as the shared reference for the most important payload objects reused across the NextSign API.
This is the canonical place to look up:
- recipient fields
- document fields
- settings fields
- signing schema values
- case state values
Recipient Object
Used in:
- Case Create
- Case Update
- Forms Submit
- response payloads from Case Get and Forms Get
Common Request Fields
| Field | Type | Description |
|---|---|---|
name | string | Recipient name |
email | string | Recipient email address |
signing | boolean | Whether the recipient must sign |
group | number | Preferred signing order/group. Lower numbers are invited first |
order | number | Legacy alias for group |
needsCpr | boolean | Whether CPR validation is required |
cpr | string | CPR number. Required when needsCpr is true |
signingSchema | string | Optional recipient-specific signing method override |
redirectUrl | string | Redirect URL after signing |
denyRedirectUrl | string | Redirect URL after the recipient denies the case |
phone | string | Phone number for SMS-style delivery flows |
position | string | Signature title or position |
onBehalfOf | string | The organisation the recipient signs for, e.g. Aarhus Kommune. Printed as "On behalf of" under the signature. When the recipient signs with MitID Erhverv, the company from their MitID is printed instead |
type | string | Delivery type. Common values are email, sms/phone, and eboks |
template | string | Optional recipient-specific template id |
message | string | Custom recipient message |
eboks | object | e-Boks delivery payload. See the e-Boks Object for method, cvr, address, and name |
Update-Only Fields
| Field | Type | Description |
|---|---|---|
_id | string | Existing recipient identifier when patching a recipient |
id | string | Alias for _id |
clearCpr | boolean | Set to true with an empty cpr value to clear stored CPR data |
Common Response Fields
| Field | Type | Description |
|---|---|---|
_id | string | Recipient identifier |
uid | string | Internal recipient uid used in document signatory mapping |
signed | string | Recipient signing status such as pending, signed, denied, or not signing |
signingToken | string | Recipient signing token |
url | string | Direct signing URL. Returned for open cases |
If recipient.signingSchema is omitted, the recipient falls back to the case-level signingSchemas.
If recipient.signingSchema is set, that recipient is locked to the selected method.
If needsCpr is true, you must also provide cpr.
If you need the plain CPR number later in your own workflow, store it on your side as well.
e-Boks Object
The eboks object is nested inside a recipient when type is set to eboks. It tells NextSign how to identify and reach the recipient inside the e-Boks system.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
method | string | No | Identification method to use: cpr, cvr, or address. Defaults to cpr when omitted. |
cvr | string | Conditional | CVR number for the recipient company. Required when method is cvr. |
address | string | Conditional | Danish address string used to locate the recipient. Required when method is address. NextSign resolves the address into the underlying recipient details via the Danish address registry (dataforsyningen). |
name | string | No | Only read by the older certificate-based e-Boks integration, like kvhx. The current integration takes the name from the recipient's own name. See How the recipient name is resolved. |
kvhx | string | No | Legacy KVHX identifier. Not required for current e-Boks delivery — the address is resolved server-side. See the note below. |
Identification Methods
e-Boks delivery supports three ways to identify the recipient, selected with eboks.method. Set type: "eboks" on the recipient, then provide the field that matches the chosen method:
method | Identifier field | Notes |
|---|---|---|
cpr (default) | recipient.cpr | 10-digit CPR number for a private individual |
cvr | recipient.eboks.cvr | 8-digit CVR number for a company |
address | recipient.eboks.address | Resolved server-side through the Danish address registry |
An e-Boks recipient without any of these is rejected with a 400 before the case is created: cpr (or eboks.cvr) must be a 10-digit CPR or an 8-digit CVR (spaces and dashes are ignored), or eboks.address must be set. Only recipients whose type is eboks are checked, so an email or SMS recipient is never affected.
An e-Boks recipient is reached through e-Boks only. An email or phone on the same recipient is not used to send an invitation, so the letter does not also arrive as an email or SMS.
Whether e-Boks accepts the recipient (for example, whether the CPR is registered for Digital Post) is only known once we send. That result comes back in the create response (delivery.eboks in v3, a notices entry with code eboks-delivery-failed in v2) and as the case.delivery.failed webhook.
CPR/CVR identification is the most reliable method. Address-based delivery requires that the address can be resolved unambiguously by the Danish address registry. You do not need to supply a kvhx value — sending the address string is enough.
If the field required by the selected method is missing (a valid CPR/CVR number, or a resolvable eboks.address), the delivery will fail with an invalid-recipient error.
kvhx is a legacy field retained for backwards compatibility. It is only consumed by the older direct-dispatch path and is ignored by the current e-Boks delivery flow, which resolves the recipient from the address string itself. New integrations should not send kvhx.
How the recipient name is resolved (address-based)
With address-based delivery, e-Boks finds the person by matching a name against the people registered at that address. NextSign sends the recipient's name as one first name and one last name:
- Two or more words: the first word is the first name and the last word is the last name. Middle names are left out, because e-Boks matches on the first and last name only. (e.g.
"Jane Marie Doe"→ first name"Jane", last name"Doe") - One word: it is sent as the first name only. (e.g.
"Jane"→ first name"Jane")
Send the name as the person is registered, such as "Jane Doe" or "Jane Marie Doe", or only the first name. When e-Boks cannot match the name and address to a mailbox, the delivery fails with eboks-recipient-unknown (e-Boks 4007). A recipient who also has a cpr is found by the CPR, and the name is not used for matching.
Example — CPR-based delivery
{
"name": "Jane Doe",
"email": "jane@example.com",
"type": "eboks",
"signing": true,
"needsCpr": true,
"cpr": "1234567890",
"eboks": {
"method": "cpr"
}
}Example — CVR-based delivery
{
"name": "Example Company ApS",
"email": "kontakt@example.com",
"type": "eboks",
"signing": true,
"eboks": {
"method": "cvr",
"cvr": "12345678"
}
}Example — Address-based delivery
{
"name": "Jane Doe",
"email": "jane@example.com",
"type": "eboks",
"signing": true,
"eboks": {
"method": "address",
"address": "Østergade 12, 1100 København K",
"name": "Jane Doe"
}
}Inbox title and letter
An eboks recipient receives the e-Boks template given by messageTemplateId (on the recipient, otherwise on the case). The template's id is shown as Skabelon-ID in the template editor.
To send a filled-in letter that nobody signs, see the guide Send letters via e-Boks without signing.
Inbox title. The template's title is the subject the recipient sees in e-Boks. It can contain tags, filled per case: any tag from the case's top-level tags array, or a built-in field such as {case_name}. One template can then cover several kinds of messages, for example an invitation and a reminder, in any language:
{
"title": "Generalforsamling 2026",
"messageTemplateId": "<your e-Boks template id>",
"tags": [{ "tag": "eboks_title", "value": "Invitation: Generalforsamling 2026" }],
"recipients": [ … ]
}With the template title set to {eboks_title}, the recipient sees "Invitation: Generalforsamling 2026". e-Boks allows 4-50 characters, and a longer title is cut at 50. If a tag in the title has no value, or the result is shorter than 4 characters, the case title is used instead. A reminder that NextSign sends on an existing case puts a prefix in the case language in front of the title (Påmindelse: in Danish, Reminder: in English), unless the template's reminder tab has its own title.
Letter. When the template sends your own Word letter (.docx), write each field as {tag}: one curly brace on each side and no spaces. {{ tag }} stops the letter from rendering, both in the preview and when the case is sent. { tag } renders as empty. Every tag in the case's top-level tags array fills the letter, and these fields are built in:
| Field | Value |
|---|---|
{recipient_name} | The recipient's name |
{recipient_address}, {recipient_zip}, {recipient_city} | The recipient's address, from eboks.address or, for a CVR recipient, the CVR register. Empty for a CPR recipient without eboks.address |
{custom_message} | The message: the recipient's message, otherwise the case's message, otherwise the text saved on the template. Optional: leave it out of the letter if you fill the text with your own tags |
{recipient_signing_link} | The recipient's link to the case |
{case_name} | The case title |
{reference_id} | The case reference |
{dato} | The date the letter is sent |
{sender_name}, {sender_email}, {sender_phone}, {sender_role}, {sender_location}, {sender_address} | The sending user |
{sender_company}, {sender_cvr} | The company name and CVR on your NextSign account |
The letter is a PDF in e-Boks, so a button drawn in the Word document cannot be clicked. The clickable button is the e-Boks button, which you turn on in the template. To put the link in the letter itself, use {recipient_signing_link}.
Fallback to physical letter
When a company has the letter-fallback option enabled and e-Boks delivery fails, NextSign automatically retries by sending a physical letter through the letter dispatch service. A warning notification is created on the case when fallback is triggered.
Whether letter fallback is attempted depends on your NextSign account configuration. Contact NextSign support to enable or disable this option.
Document Object
Used in:
- Case Create
- Case Update
- Document Convert
- response payloads from case endpoints
Common Request Fields
| Field | Type | Description |
|---|---|---|
name | string | File name including extension |
file | string | Hosted file URL, uploaded file URL, or base64 file data depending on the endpoint |
fileIsBlob | boolean | Set to true when file contains base64 file data |
signObligated | boolean | Whether signing is required for the document |
documentMustBeRead | boolean | Whether the document must be read before signing |
signatories | array | Selected signatories for the document |
mergeTags | boolean | Case Create only. Set to false to leave a .docx out of the case's template-tag merge |
Common Response Fields
| Field | Type | Description |
|---|---|---|
_id | string | Stored document entry identifier |
document_id | string | Stored document/file identifier |
file | string | URL to the stored or converted file |
name | string | Stored file name |
For Document Convert, only name and file are required from this object.
If the combined case documents are more than 3.5 MB, upload them first with Document Upload and use the returned URL in file.
After any recipient has signed, Case Update rejects document additions. Re-send a new contract/case instead.
Settings Object
Used in:
- Case Create
- Case Update
- Forms Submit
- response payloads from Case Get and Forms Get
| Field | Type | Description |
|---|---|---|
reminders.send | boolean | Whether reminder messages should be sent |
reminders.amount | number | Maximum number of reminders |
reminders.daysBetween | number | Days between reminders |
deletion.autoDelete | boolean | Whether the case should be automatically deleted later |
deletion.days | number | Days before auto deletion |
availability.unlimited | boolean | Whether the case should be available without an intended limit |
availability.days | number | Days the case should stay available for signing |
availability.expiration | string | ISO 8601 expiration timestamp managed by NextSign |
availability.isExpired | boolean | Whether the case is currently expired |
availability.expiresAt | string | Request only (v2 Case Create and Case Update): a fixed date and time the case expires, instead of availability.days. ISO 8601 with a UTC offset, e.g. 2026-12-01T14:00:00+01:00. See Fixed Expiry Time |
availability.exactExpiration | boolean | true on a case with a fixed expiry time: it expires at availability.expiration to the minute. Not present on other cases |
template | number | Signing page / document template selection |
lang | string | Language code such as da, en, de, or no |
allowAPI | boolean | Whether API usage is allowed in the related configuration context |
allowRecipientsViewOthers | boolean | Whether recipients may view other participants |
allowedRoles | array | Allowed roles list, primarily used with forms |
On case create and case update, NextSign recalculates availability.expiration from availability.days, unless availability.expiresAt sets a fixed time.
availability.expiration and availability.isExpired are managed by NextSign and should be treated as system values in responses.
Signing Schemas
Used in:
| Value | Name | CPR Required | Credits | Notes |
|---|---|---|---|---|
urn:grn:authn:dk:mitid:low | MitID Privat | No | 1 | MitID Privat for recipients with needsCpr: false |
urn:grn:authn:dk:mitid:substantial | MitID Privat with CPR match | Yes | 1 | MitID Privat for recipients with needsCpr: true |
urn:grn:authn:dk:mitid:business | MitID Erhverv | No | 1 | MitID business signing |
urn:grn:authn:se:bankid | BankID SE | No | 1 | Swedish BankID signing |
urn:grn:authn:no:bankid | BankID NO | No | 1.5 | Norwegian BankID signing. Not in the default set: add it to signingSchemas to offer it |
urn:grn:authn:de:personalausweis | Personalausweis | No | 1 | German national eID card (Personalausweis) signing |
draw | Touch | No | 0.5 | Drawn signature without CPR verification |
draw-cpr | Touch | Yes | 0.5 | Drawn signature with CPR verification |
sms-email | SMS + Email verification | No | 1 | NextSign-hosted verification flow |
approve | Godkendelse (click-approval) | No | 0.5 | Recipient-level only. The recipient approves the documents with a single click instead of signing — see the note below |
A signature is charged when it is made, at the credit price of the method the signer actually used. While a case offers several methods, NextSign's credit check counts the dearest one.
At the case level, signingSchemas defines the allowed signing methods for the case.
At the recipient level, recipient.signingSchema forces one specific method for that signer.
A recipient is only offered the methods whose "CPR Required" value matches their own needsCpr. A recipient with needsCpr: false never sees urn:grn:authn:dk:mitid:substantial or draw-cpr, and a recipient with needsCpr: true only sees those two.
low and substantial are not security levels: they are the same MitID Privat login without and with a CPR match. Sending ["urn:grn:authn:dk:mitid:substantial", "urn:grn:authn:dk:mitid:business"] to recipients without needsCpr leaves them with MitID Erhverv only. If you want MitID Privat, send both low and substantial and NextSign picks the right one for each recipient.
Approvers (approve) — setting recipient.signingSchema to approve (with signing: true) makes the recipient an approver: they review the documents and approve with a single click (logged with timestamp, IP, and browser). An approval is not a signature — the approver never appears on the signed documents or the signature page. Approvers participate in the signing order like any signer: an approver in group 1 must approve before group 2 is contacted, and a rejection denies the whole case. An approval (or rejection) is charged 0.5 credits. In responses, an approver who has approved has status: "signed"; distinguish approvers by their signingSchema.
approve is not accepted in the case-level signingSchemas list — it can only be forced per recipient.
After any recipient has signed, Case Update rejects signingSchemas changes. Re-send a new contract/case instead.
Case States
Used in:
Canonical Lifecycle Values
| Value | Meaning |
|---|---|
draft | The case exists but is not open for signing yet |
open | The case is active and can be signed |
completed | The case has been fully completed or manually marked as completed. A case nobody signs is completed when its e-Boks letter has been sent, see Send letters via e-Boks without signing |
denied | The case has been denied during the signing flow |
cancelled | The case has been cancelled |
Accepted Aliases On Case Update
| Value | Maps To |
|---|---|
pending | open |
signed | completed |
The status filter on Case List is a different concept. It currently filters by derived signing progress (pending, signed, denied) rather than the stored lifecycle state.