This is what I wanted to do:
Using rest API send a document to be signed
Person signs it and webhook triggers XML containing signed document in this case PDF
What happens is in Connect log I see that API triggered webhook that is then picked up by requestb.in. In here what I see is XML is incomplete same as on my real Web service catcher procedure?
<?xml version="1.0" encoding="utf-8"?>
<DocuSignEnvelopeInformation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.net/API/3.0">
<EnvelopeStatus>
<RecipientStatuses>
<RecipientStatus>
<Type>Signer</Type>
<Email>lino#xx.xxx</Email>
<UserName>Lino</UserName>
<RoutingOrder>1</RoutingOrder>
<Sent>2017-01-10T04:42:34.857</Sent>
<DeclineReason xsi:nil="true" />
<Status>Sent</Status>
<RecipientIPAddress />
<CustomFields />
<TabStatuses>
<TabStatus>
<TabType>SignHere</TabType>
<Status>Active</Status>
<XPosition>52</XPosition>
<YPosition>104</YPosition>
<TabLabel>Sign Here</TabLabel>
<TabName>SignHere</TabName>
<TabValue />
<DocumentID>1</DocumentID>
<PageNumber>1</PageNumber>
</TabStatus>
</TabStatuses>
<AccountStatus>Active</AccountStatus>
<RecipientId>d6567258-6407-4bd8-a544-c12528e32XXX</RecipientId>
</RecipientStatus>
</RecipientStatuses>
<TimeGenerated>2017-01-10T04:42:55.0381883</TimeGenerated>
<EnvelopeID>e08dcbc1-a09a-459b-9b84-5b5Xb3f335XX</EnvelopeID>
<Subject>Request a signature via email example</Subject>
<UserName>Lino</UserName>
<Email>lino#xx.xxx</Email>
<Status>Sent</Status>
<Created>2017-01-10T04:42:34.343</Created>
<Sent>2017-01-10T04:42:34.903</Sent>
<ACStatus>Original</ACStatus>
<ACStatusDate>2017-01-10T04:42:34.343</ACStatusDate>
<ACHolder>Lino</ACHolder>
<ACHolderEmail>lino#xx.xxx</ACHolderEmail>
<ACHolderLocation>DocuSign</ACHolderLocation>
<SigningLocation>Online</SigningLocation>
<SenderIPAddress>XX.XXX.XXX.XX </SenderIPAddress>
<EnvelopePDFHash />
<CustomFields />
<AutoNavigation>true</AutoNavigation>
<EnvelopeIdStamping>true</EnvelopeIdStamping>
<AuthoritativeCopy>false</AuthoritativeCopy>
<DocumentStatuses>
<DocumentStatus>
<ID>1</ID>
<Name>contract.pdf</Name>
<TemplateName />
<Sequence>1</Sequence>
</DocumentStatus>
</DocumentStatuses>
</EnvelopeStatus>
<DocumentPDFs>
<DocumentPDF>
<Name>contract.pdf</Name>
<PDFBytes>.........
But there are no closing tags or anything. This is all I get.
When I try downloading it as BLOB using base64 file it says pdf invalid or corrupted.
Related
When I make a POST request to https://demo.docusign.net/api/3.0/dsapi.asmx to CreateAndSendEnvelope, I set up a tab:
But in result document there is no SignHere field at all.
What should I do to place SignHere to desired place?
<Tab>
<Type>SignHere</Type>
<RecipientID>1</RecipientID>
<xPosition>1</xPosition>
<yPosition>1</yPosition>
</Tab>
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CreateAndSendEnvelope xmlns="http://www.docusign.net/API/3.0">
<Envelope>
<AccountId>a290cac9-e2c4-415c-8a47-900587258cce</AccountId>
<Documents>
<Document>
<ID>1</ID>
<Name>Simple NDA.pdf</Name>
<PDFBytes>Jo=
</PDFBytes>
<FileExtension>pdf</FileExtension>
<AttachmentDescription>Simple NDA</AttachmentDescription>
</Document>
</Documents>
<Recipients>
<Recipient>
<ID>1</ID>
<Email>Somemail#gmail.com</Email>
<UserName>Betty Adams</UserName>
<Type>Signer</Type>
<RoutingOrder>1</RoutingOrder>
</Recipient>
</Recipients>
<Tabs>
<Tab>
<Type>SignHere</Type>
<RecipientID>1</RecipientID>
<xPosition>1</xPosition>
<yPosition>1</yPosition>
</Tab>
</Tabs>
<Subject>Please DocuSign this document</Subject>
<EmailBlurb>Please sign this document using DocuSign...thanks!</EmailBlurb>
</Envelope>
</CreateAndSendEnvelope>
</soap:Body></soap:Envelope>
It looks like you're missing a DocumentID and PageNumber for your tab. Adding
<DocumentID>1</DocumentID>
<PageNumber>1</PageNumber>
to the tab definition should cause it to appear on the first page of your document.
i'm implementing a DRM server, so far HLS is working great but i have a problem with the playready key encryption, i know that i need to use the public key and License Nonce(IV) from the client request but i couldn't find the algorithm to encrypt it.
example from Microsoft playReady test server
client requst:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AcquireLicense xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols">
<challenge>
<Challenge xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols/messages">
<LA xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols" Id="SignedData" xml:space="preserve">
<Version>1</Version>
<ContentHeader>
<WRMHEADER xmlns="http://schemas.microsoft.com/DRM/2007/03/PlayReadyHeader" version="4.0.0.0">
<DATA>
<PROTECTINFO>
<KEYLEN>16</KEYLEN>
<ALGID>AESCTR</ALGID>
</PROTECTINFO>
<KID>7987aj+eE0uBlXi0N73AQw==</KID>
<CHECKSUM>s1zZSs3Wwow=</CHECKSUM>
<CUSTOMATTRIBUTES>
<IIS_DRM_VERSION>7.1.1064.0</IIS_DRM_VERSION>
</CUSTOMATTRIBUTES>
<LA_URL>http://playready.directtaps.net/pr/svc/rightsmanager.asmx</LA_URL>
<DS_ID>AH+03juKbUGbHl1V/QIwRA==</DS_ID>
</DATA>
</WRMHEADER>
</ContentHeader>
<CLIENTINFO>
<CLIENTVERSION>2.0.0.1446</CLIENTVERSION>
</CLIENTINFO>
<RevocationLists>
<RevListInfo>
<ListID>ioydTlK2p0WXkWklprR5Hw==</ListID>
<Version>11</Version>
</RevListInfo>
<RevListInfo>
<ListID>gC4IKKPHsUCCVhnlttibJw==</ListID>
<Version>11</Version>
</RevListInfo>
<RevListInfo>
<ListID>BOZ1zT1UnEqfCf5tJOi/kA==</ListID>
<Version>12</Version>
</RevListInfo>
<RevListInfo>
<ListID>Ef/RUojT3U6Ct2jqTCChbA==</ListID>
<Version>34</Version>
</RevListInfo>
</RevocationLists>
<LicenseNonce>e7NgfwBi1xX/egdgV9BrWQ==</LicenseNonce>
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Element">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#ecc256" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>WMRMServer</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>W13Rs+iFyn5Qgh8iAduenxsRw3w2mOTNhfOPI6Fwv5kIn93cCauDFJexka6jtQHJ+by8wyTv4u7RofeZW9G8NakvV0JpGg7d5rEg1q1XMwy267Hecnch75FKEPSiydx2NU83IambHenRhJJ5gg3/u1aVpaXsCVtnQsv5pt5L+JM=</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>cWEqivcZkvs9Le02WXFsSnCn8W+J87cN0a0/6IXZ1OIYJ8ZgVE2Bf6J14Destd4rYxKonQiMZ5mL+LZytuq7dA8LGFASKUNGKynx887tdMDMbwJnBQAllE593kUqnD4XIyKO04APahlQ1k4ezBrTU3o0TD8ssIN2OxxW4NdoNMPc+rlrPMY31hXVoIdUV7viueMRFcokDgDk/vii3yrHfLpx+iyVINhYhye1Oh0JsKc8Fkz/O1XfSrCVQzVZHI3Hui62r/Pf9H1kblv7CXo1H7Vno8trNq2zsEj96lz2b2GgYpbbiMHBJAMmIjsR6o9z3KUbOIh0eIrupDLTTvITDXDX8Q9x1A9dsDOJJGW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neWnaY1wLOSExCIv6glJ+oMfPvZT/pq/uhz6C7u7gfvVvTG3eY3/srKRE5baKwI8MJCEEqmWonHM5C+NRboRFMpqO5AR5X27YrSsa38xen8f1VHnzYLFr0UdkprbLbm/dvFpaxivYTqfCVQEXaFMTfNp884OylSAcmvNZbUvrCyritL5xiBm/1rxypDprDv0X0C1WR9rfGilbpqc8MdqcBgmsSpJO1zW43LBBPI6U4/oBlpYKx+T2ovlq/zdgwrtmX/rp6BB+nXFtWdgJZWYN+4cwF0FooIAF8hXNiJGWR9tVPipT7s00BaL0u8udR59W/2T79vUIt0PMpuVHFmp7ZSZumsr2W1pTybmmuj5Lv54XoXryTE63GZYZRhiEE5uS3hwSWLqxd0xyCnz6ThuWaS6N0+rlxDVM+9Z1rlIhR4C5YJ5LJ2xpZFsS1apXPLm+QQ7SM1lspF/bSlHv4m3/LJqaK/sbaLAaxORDF1uE6</CipherValue>
</CipherData>
</EncryptedData>
</LA>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
<SignatureMethod Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#ecdsa-sha256" />
<Reference URI="#SignedData">
<DigestMethod Algorithm="http://schemas.microsoft.com/DRM/2007/03/protocols#sha256" />
<DigestValue>Y6z9FSz2qWpvIN823wrK13in0TnWGoAcPCKw9KlWZPk=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>u45hKzad6Wir2SLSY7WTkTxpziPY2w5WTiLbNSb0RyciFV8Xm2aFyLbOCpMW33ZYubN59lsaZy8fAjUsr7ManA==</SignatureValue>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyValue>
<ECCKeyValue>
<PublicKey>2sumijs/TOhMhxwvkmjp4nXwJku8UXFHU+oY4fg+sRTp/pM7O3/w4k4QXAAn69pHahdLN+6OGpnQfwTv4xzGCQ==</PublicKey>
</ECCKeyValue>
</KeyValue>
</KeyInfo>
</Signature>
</Challenge>
</challenge>
</AcquireLicense>
</soap:Body>
</soap:Envelope>
server response:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<AcquireLicenseResponse xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols">
<AcquireLicenseResult>
<Response xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols/messages">
<LicenseResponse xmlns="http://schemas.microsoft.com/DRM/2007/03/protocols">
<Version>1</Version>
<Licenses>
<License>WE1SAAAAAAN7s2B/AGLXFf96B2BX0GtZAAMAAQAAAVAAAgAEAAAACAADAAIAAAAyAAAADQAAAAoAAQABADIAAAAMAAAAIgABADQAAAAKAJYAAAAzAAAACgABAAMACQAAAPIAAQAKAAAAnu/fO2o/nhNLgZV4tDe9wEMAAQADAIDB6u6Ltq5a8s2SvNkd4kAVzxDnlUysqzX6k5epsJ4iNaZaFyLTtpgVjTRQP2lgDeJaJSIObuf2yd2Qd1tWIQDk4gXxCbUPL8NJgdvl6d4z2xBIvJq4Ol3KDiHgkYn6mYEyniIm+2IWZUrUWsKo6Z2brnsoe3GoYoNmXkJ5+kyMOgAAACoAAABMAAEAQDrjNbZngMLUdzVuWakTkwXziavX6rZhzIaQJYQOWLtJSqiFpiWTutb777SRP48Zvx2FMpyqhGdjn53dLmsiRDYAAQALAAAAHAABABB8/phYFmuGw7Y3HoQs0swN</License>
</Licenses>
<Acknowledgement>
<TransactionID>5c062475-4b2c-48e6-9b0b-54fce5b2b770</TransactionID>
</Acknowledgement>
</LicenseResponse>
</Response>
</AcquireLicenseResult>
</AcquireLicenseResponse>
</soap:Body>
</soap:Envelope>
how do i create the License from the client request and my 16 byte key?
I cannot get a date tab to appear on the PDF. Here is my envelope. I can get the sign here tab working fine. The date tabs do not work. There does not seem to be any good help on the date tabs. Any clues..?
<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<emailSubject>DocuSign API - Signature Request on Document</emailSubject>
<status>sent</status>
<documents>
<document>
<documentId>1</documentId>
<name>TEST0467960B.pdf</name>
</document>
</documents>
<recipients>
<signers>
<signer>
<recipientId>1</recipientId>
<email>xxxx#xxx.com</email>
<name>First EMailer</name>
<tabs>
<dateSignedTabs>
<dateSigned>
<xPosition>225</xPosition>
<yPosition>655</yPosition>
<documentId>1</documentId>
<pageNumber>5</pageNumber>
<tabLabel>Date Signed</tabLabel>
<name>Date Signed</name>
<recipientId>1</recipientId>
</dateSigned>
</dateSignedTabs>
</tabs>
</signer>
<signer>
<recipientId>2</recipientId>
<email>xxx#xxx.com</email>
<name>Second signed</name>
<tabs>
<dateSignedTabs>
<dateSigned>
<xPosition>225</xPosition>
<yPosition>655</yPosition>
<documentId>1</documentId>
<pageNumber>5</pageNumber>
<tabLabel>Date Signed</tabLabel>
<name>Date Signed</name>
<recipientId>2</recipientId>
</dateSigned>
</dateSignedTabs>
</tabs>
</signer>
</signers>
</recipients>
You appear to be doing it correctly.
DocuSign REST API Help has some pretty good examples of XML formatting most of the calls. JSON appears to be there for everything, XML is there for most things.
Your call works just fine for me with moving them to page 1 on a sample document that has 1 page
Here's my request to create a quick draft to check. And both recipients have a Date Signed tab on page 1 near the bottom, they are however stacked on top of each other.
<envelopeDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
<emailSubject>DocuSign API - Signature Request on Document</emailSubject>
<status>created</status>
<documents>
<document>
<documentId>1</documentId>
<name>TEST0467960B.pdf</name>
<documentBase64>{omitted}</documentBase64>
</document>
</documents>
<recipients>
<signers>
<signer>
<recipientId>1</recipientId>
<email>xxxx#xxx.com</email>
<name>First EMailer</name>
<tabs>
<dateSignedTabs>
<dateSigned>
<xPosition>225</xPosition>
<yPosition>655</yPosition>
<documentId>1</documentId>
<pageNumber>1</pageNumber>
<tabLabel>Date Signed</tabLabel>
<name>Date Signed</name>
<recipientId>1</recipientId>
</dateSigned>
</dateSignedTabs>
</tabs>
</signer>
<signer>
<recipientId>2</recipientId>
<email>xxx#xxx.com</email>
<name>Second signed</name>
<tabs>
<dateSignedTabs>
<dateSigned>
<xPosition>225</xPosition>
<yPosition>655</yPosition>
<documentId>1</documentId>
<pageNumber>1</pageNumber>
<tabLabel>Date Signed</tabLabel>
<name>Date Signed</name>
<recipientId>2</recipientId>
</dateSigned>
</dateSignedTabs>
</tabs>
</signer>
</signers>
</recipients>
</envelopeDefinition>
can you please help me with below query:
I am using demo login. I am trying to send a document for signatures using java. I need to set the expiration on my envelope as 1 day. I tried using below but it did not set the expiration on my envelope.
<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<emailSubject>Contract for Signature</emailSubject>
<status>sent</status>
<notification>
<expirations>
<expiration>
<expirationEnabled>true</expirationEnabled>
<expirationAfter>1</expirationAfter>
<expirationWarn>1</expirationWarn>
</expiration>
</expirations>
</notification>
<documents>
<document>
<name> documentName </name>
<documentId>1</documentId>
<order>1</order>
</document>
</documents>
<recipients>
<signers>
<signer>
<email> custEmail </email>
<name> recipientNameCust </name>
<recipientId>1</recipientId>
<routingOrder>1</routingOrder>
<tabs>
<signHereTabs>
<signHere>
<anchorString>SIGNED on behalf of the Customer</anchorString>
<anchorXOffset>10</anchorXOffset>
<anchorYOffset>50</anchorYOffset>
<anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
<anchorUnits>Pixels</anchorUnits>
<documentId>1</documentId>
<recipientId>1</recipientId>
<tabLabel>Sign Here1</tabLabel>
<name>SignHere1</name>
</signHere>
</signHereTabs>
</tabs>
</signer>
<signer>
<email> receipientEmail </email>
<name> recipientNameTotal </name>
<recipientId>2</recipientId>
<routingOrder>2</routingOrder>
<tabs>
<signHereTabs>
<signHere>
<anchorString>SIGNED on behalf of Total</anchorString>
<anchorXOffset>10</anchorXOffset>
<anchorYOffset>50</anchorYOffset>
<anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
<anchorUnits>Pixels</anchorUnits>
<documentId>1</documentId>
<recipientId>2</recipientId>
<tabLabel>Sign Here2</tabLabel>
<name>SignHere2</name>
</signHere>
</signHereTabs>
</tabs>
</signer>
</signers>
</recipients>
The api documentation says the tags as -expireEnabled instead of expirationEnabled, expireAfter instead of expirationAfter, expireWarn instead of expirationWarn. So I have tried with these tags also and it still did not work. Can you please let me know if anything is wrong with the above xml.
In the portal under Account Administration/Set default reminders expirations the check box "do not allow users to override" is not checked. Also Expire/void Envelope is set to 2 days. But all my envelopes are getting created with expiration setting as 120 days.
Use the following XML:
<notification>
<expirations>
<expireEnabled>true</expireEnabled>
<expireAfter>1</expireAfter>
<expireWarn>0</expireWarn>
</expirations>
</notification>
I am trying to add 2 signer tabs from code for a document and send. I am able to see the signatures tabs properly where they are expected. After the document signed by both signers, when i open the completed document, the signatures are missing. The pdf also shows an error message saying pdf has errors.
Here is my xml. Can you please help:
<envelopeDefinition xmlns="http://www.docusign.com/restapi">
<emailSubject>API Call for adding signature request to document and sending</emailSubject>
<status>sent</status>
<documents>
<document>
<name> documentName </name>
<documentId>1</documentId>
<order>1</order>
</document>
</documents>
<recipients>
<signers>
<signer>
<email> custEmail </email>
<name> recipientNameCust </name>
<recipientId>1</recipientId>
<routingOrder>1</routingOrder>
<tabs>
<signHereTabs>
<signHere>
<anchorString>SIGNED on behalf of the Customer</anchorString>
<anchorXOffset>10</anchorXOffset>
<anchorYOffset>50</anchorYOffset>
<anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
<anchorUnits>Pixels</anchorUnits>
<documentId>1</documentId>
<recipientId>1</recipientId>
<tabLabel>Sign Here1</tabLabel>
<name>SignHere1</name>
</signHere>
</signHereTabs>
</tabs>
</signer>
<signer>
<email> receipientEmail </email>
<name> recipientNameTotal </name>
<recipientId>2</recipientId>
<routingOrder>2</routingOrder>
<tabs>
<signHereTabs>
<signHere>
<anchorString>SIGNED on behalf of Total Gas</anchorString>
<anchorXOffset>10</anchorXOffset>
<anchorYOffset>50</anchorYOffset>
<anchorIgnoreIfNotPresent>false</anchorIgnoreIfNotPresent>
<anchorUnits>Pixels</anchorUnits>
<documentId>1</documentId>
<recipientId>2</recipientId>
<tabLabel>Sign Here2</tabLabel>
<name>SignHere2</name>
</signHere>
</signHereTabs>
</tabs>
</signer>
</signers>
</recipients> </envelopeDefinition>
You should contact DocuSign support. If the signers are signing and submitting documents, you should see the signatures in the completed document.