Saturday, 15 March 2014

docusignapi - Setting the recipient email address dynamically -



docusignapi - Setting the recipient email address dynamically -

i trying integrate docusign api application using rest.i have used request signature on document function form docusign apiwalkthrough.you can refer link http://iodocs.docusign.com/apiwalkthrough/requestsignaturefromdocument. trying add together recipient address email field.but getting error following.

/accountid = 657326 baseurl = https://demo.docusign.net/restapi/v2/accounts/657326 error calling webservice, status is:400 error text --> { "errorcode": "invalid_username_for_recipient", "message": "the user name recipient invalid. user name invalid recipient email somangshu.drocker@gmail.com" }/

the code above method follows.

$email=va_logic_session::getinstanceform()->emailaddress1;(this value passed dynamically or specified user) $data = array ( "emailsubject" => "sample document", "documents" => array( array( "documentid" => "1", "name" => $documentname)), "recipients" => array( "signers" => array( array( "email" => $email,(this variable declared above recipient email address spcified te user) "name" => $recipientname, "recipientid" => "1", "tabs" => array( "signheretabs" => array( array( "xposition" => "515", "yposition" => "279", "documentid" => "1", "pagenumber" => "2" ) )) )) ), "status" => "sent" );

also how point lastly page of pdf. find tab "pagenumber" shown above. parameter passed there. not able figure out problem hear.pls help

whenever receive error invalid_username_for_recipient check actual values beingness set recipient's name. our comments seems indeed problem in case.

with regards page number question, there's no "last page" property need know how many pages in document before create envelope able assign lastly page. instance, if determine document has 10 pages, set lastly page doing:

"pagenumber": "10",

in request body json (or xml).

docusignapi

No comments:

Post a Comment