Reputation: 129
I am trying to create an envelope with composite templates using DocuSign SOAP based API call in my .net web application. First, I have created a template and recipient roles for the template in my DocuSign account. I can download the template and view the XML from the DocuSign UI.
Before I go ahead an create an envelope from the template, I need to assign recipients to specific roles at run time. In order to do so, I need to retrieve role information from the template at run time. I am looking into the SOAP/REST API guide for an API call that will allow me to retrieve role information and I checked the following API calls..
REST
SOAP
They do not return recipient role information. Is there an API call that will allow me to do so?
Upvotes: 1
Views: 715
Reputation: 4441
REST Get Template will work for what you're looking for. The information will come back as roleName
under the appropriate node in recipients
(ex. signer
)
This retrieves the definition of the specified template.
URL: /accounts/{accountId}/templates/{templateId}
Formats: XML, JSON
HTTP Method: GET
Parameters: The only required parameter is the template ID.
GET https://{server}/restapi/{apiVersion}/accounts/{accountId}/templates/{templateId}
X-DocuSign-Authentication:<DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><Integrato
rKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/json
Information directly taken from the DocuSign REST API Guide, version 2
Upvotes: 0