Hi Mats,
Yes you are correct, we utilize tasks to separate the different signees.
The notification schedule will dictate the notifications for the signees, here a mail with an URL will be sent to “insert.recipient@mail.com”.
"tasks": [
{
"id": "task1",
"profile": "default",
"documents": [
{
"id": "doc1",
"action": "SIGN",
"source": "SESSION",
"description": "description",
"documentRef": "{{document_id}}"
}
],
"signatureMethods": [
{
"name": "nbid",
"type": "AUTHENTICATION_BASED"
}
],
"notifications": [
{
"id": "not1",
"recipient": "insert.recipient@mail.com",
"sender": "signicat@signicat.com",
"header": "Signingorder created",
"message": "Signing order sent to Ginny. ${taskUrl}",
"type": "EMAIL",
"schedule": [
{
"triggerStatus": "CREATED"
}
]
}
]
},
{
"id": "task2",
"profile": "default",
"documents": [
{
"id": "doc2",
"action": "SIGN",
"source": "SESSION",
"description": "description",
"documentRef": "{{document_id}}"
}
],
"signatureMethods": [
{
"name": "nbid",
"type": "AUTHENTICATION_BASED"
}
],
"notifications": [
{
"id": "not2",
"recipient": "insert.recipient@mail.com",
"sender": "signicat@signicat.com",
"header": "Signingorder created",
"message": "Signing order sent to Ginny. ${taskUrl}",
"type": "EMAIL",
"schedule": [
{
"triggerStatus": "CREATED"
}
]
}
]
},
"packagingTasks": [
{
"id": "packagingtask-1",
"sendToArchive": true,
"method": "pades",
"documents": [
{
"taskId": "task1",
"documentIds": [
"doc1"
]
},
{
"taskId": "task2",
"documentIds": [
"doc2"
]
}
]
}
]
}
Using GET https://preprod.signicat.com/sign/orders/{{order_id}}/packaging-tasks/packagingtask-1/result
will get you the packaged document, just remember to save it as an .pdf