NextSign API
Cases

Case Resend

Send one recipient the case's invitation e-mail again with POST /api/v2/{company}/case/{case_id}/recipients/{recipient_id}/resend.

POST https://www.nextsign.dk/api/v2/{company}/case/{case_id}/recipients/{recipient_id}/resend

Send a recipient the case's invitation e-mail again, the original e-mail and not a reminder, with their own signing link. Use it after you corrected a wrong e-mail address with Case Update, which never sends anything itself. It is the same as Gem og send igen → Den oprindelige mail on the case page.

cURL
# 1. Correct the address
curl --request PATCH 'https://www.nextsign.dk/api/v2/{company}/case/657b2ffb0965b111023fb0d0/update' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{ "recipient": { "_id": "657b2ffb0965b111023fb0d1", "email": "kunde@example.com" } }'

# 2. Send the invitation to it
curl --request POST 'https://www.nextsign.dk/api/v2/{company}/case/657b2ffb0965b111023fb0d0/recipients/657b2ffb0965b111023fb0d1/resend' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  --data '{}'

Authenticate with your API key as the bearer token. The case and the recipient ids are in the path: the case's _id and the recipient's recipients[]._id from Case Get or the Case Create response. The request has no body fields. The invitation is sent as it is, so message is refused: to send your own text, use Case Remind.

Rules

  • E-mail recipients only. For an SMS or e-Boks recipient, use Case Remind.
  • The case is open and has not expired.
  • The recipient still has to sign: not signed, not declined, and signing is true.
  • With signing in groups, the recipient's group has been reached: the signers before them have signed.
  • One invitation per address per 30 minutes. An invitation to a different address, such as a corrected one, is not held back by an earlier one or by a reminder.

The invitation is queued and sent like the first one: from the case's message template, with its sender, logo, text and footer. It is logged in the case log as sent by "API". It is not a reminder, so it does not count towards the case's automatic reminders.

Case Update cannot change a recipient once anyone on the case has signed. Until then, correct the address there first and then send the invitation again here.

Response

200 OK:

{
  "success": true,
  "sent": "invitation",
  "channel": "email",
  "recipientId": "657b2ffb0965b111023fb0d1"
}

Errors

The body is { "success": false, "error": "<code>", "message": "<explanation>" }.

StatusErrorMeaning
400invalid-idA company, case or recipient id in the path is not a 24-character id
400message-not-allowedThe request had a message. Use Case Remind for your own text
400unsupported-channelThe recipient is not an e-mail recipient
401Missing or invalid credentials, or another company's
404case-not-foundNo case with this id in your company
404recipient-not-foundThe case has no recipient with this id
409case-not-openThe case is a draft, or completed, declined, cancelled or deleted
409case-expiredThe case has expired
409recipient-not-pendingThe recipient has signed or declined, or does not sign
409recipient-waitingThe recipient signs in a later group and has not been invited yet
429already-sentThe invitation went to this address within the last 30 minutes, or is still waiting to go out. When it is known, availableAt and the Retry-After header say when you can send it again
500send-failedThe invitation could not be queued. Try again later