Reputation: 23
I'm new to the DocuSign API. I'm learning and trying to understand how it works.
So I started by creating a dev account.
Then I try to create a Template and follow this steps:
Login to app.docusign.com
Click on Templates
Click on 'Create Template' button.
Upload template
Fill Template Name and Description
Add Recipients to the Envelope (My self)
Next
Add few fields
Save and Close
Using postman I was able to reach the login_information endpoint and get the baseUrl to send my requests.
After that I get the templateId from the site and try to get the template:
As you can see I get that the envalope does not exist.
So after that I assume that I have to create an envelope with that template. So I create a request for that:
This is the jason I'm sending on the body:
{
"emailSubject":"This is a DocuSign Test from Mauricio",
"status":"sent",
"templateId":"22981491-ba7c-4411-880e-87a9b5b3afd8",
"templateRoles":[
{
"email":"[email protected]",
"name":"Mauricio Taranto",
"roleName":"test",
"routingOrder":"1",
}
],
}
The problem is that it seems that the API can't find the template.
What am I'm doing wrong?
I changed the Shared property of the template. And select OWNER, Administrators, Everyone.
Any help will be appreciated.
Thanks!
Upvotes: 0
Views: 314
Reputation: 5029
The most likely cause here is that the template exists in the Production environment (which you're accessing via app.docusign.com), but when using Postman you're hitting the Demo environment.
If you log in via https://demo.docusign.net and create a template there, you should be able to access it through the API.
Upvotes: 1