I am reviewing the Docusign Notary functionalioty through the API. But i am stuck in one point.
The API Return an exception "{"errorCode":"NOTARY_NOT_ALLOWED","message":"Notary not enabled."}"
.I am using developer account to test the above fuctionality(demo.docusign.net). Is there any additional settings there to enable Docusign Notary?
private static EnvelopeDefinition MakeEnvelope(string signerEmail, string signerName, string signerClientId, string docPdf, string accountId)
{
byte[] buffer = System.IO.File.ReadAllBytes(docPdf);
EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition();
envelopeDefinition.EmailSubject = "Please sign this document";
Document doc1 = new Document();
String doc1b64 = Convert.ToBase64String(buffer);
doc1.DocumentBase64 = doc1b64;
doc1.Name = "Lorem Ipsum";
doc1.FileExtension = "docx";
doc1.DocumentId = "3";
envelopeDefinition.Documents = new List<Document> { doc1 };
Signer signer1 = new Signer
{
Email = signerEmail,
Name = signerName,
ClientUserId = signerClientId,
RecipientId = "2",
NotaryId = "1",
RoutingOrder = "1"
};
NotaryRecipient notaryRecipient = new NotaryRecipient
{
Email = "[email protected]",
Name = "xxx",
RecipientId = "1",
RoutingOrder = "1",
Tabs = new Tabs
{
NotarySealTabs = new List<NotarySeal>() { new NotarySeal { XPosition = "50", YPosition = "150", DocumentId = "3", PageNumber = "1" } },
SignHereTabs = new List<SignHere>() { new SignHere { XPosition = "300", YPosition = "150", DocumentId = "3", PageNumber = "1" } }
},
UserId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",//accountId,
NotaryType = "remote"
};
Tabs signer1Tabs = new Tabs
{
SignHereTabs = new List<SignHere>() { new SignHere { XPosition = "150", YPosition = "150", DocumentId = "3", PageNumber = "1" } }
};
signer1.Tabs = signer1Tabs;
Recipients recipients = new Recipients
{
Signers = new List<Signer> { signer1 },
Notaries = new List<NotaryRecipient> { notaryRecipient }
};
envelopeDefinition.Recipients = recipients;
envelopeDefinition.Status = "sent";
return envelopeDefinition;
}
did I missed any thing?
