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}/resendSend 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.
# 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
openand has not expired. - The recipient still has to sign: not signed, not declined, and
signingistrue. - 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>" }.
| Status | Error | Meaning |
|---|---|---|
400 | invalid-id | A company, case or recipient id in the path is not a 24-character id |
400 | message-not-allowed | The request had a message. Use Case Remind for your own text |
400 | unsupported-channel | The recipient is not an e-mail recipient |
401 | Missing or invalid credentials, or another company's | |
404 | case-not-found | No case with this id in your company |
404 | recipient-not-found | The case has no recipient with this id |
409 | case-not-open | The case is a draft, or completed, declined, cancelled or deleted |
409 | case-expired | The case has expired |
409 | recipient-not-pending | The recipient has signed or declined, or does not sign |
409 | recipient-waiting | The recipient signs in a later group and has not been invited yet |
429 | already-sent | The 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 |
500 | send-failed | The invitation could not be queued. Try again later |
Related Endpoints
- Case Remind: a reminder now, on any channel
- Case Update
- Case Get