I am new to call the document send Docusign REST API and using the document free docusign IDs, while calling the document send DocuSign REST API, getting BAD 400 request error and it's showing the error message "error-code": "UNSPECIFIED_ERROR" and "message": "Non-static method requires a target.
<script>
$(document).ready(function(){
$("#Submit").click(function(){
$.ajax({
method : 'POST',
crossDomain : true,
headers: {
"X-DocuSign-Authentication":
"{\"Username\":\"username\",\"Password\":\"password\",\"IntegratorKey\":\"HEWL-dadabbac-6614-\"}" },
body:
{
"emailBlurb": "DocuSign",
"emailSubject": "DocuSign",
"status": "Sent",
"templateId": "738411FD-73BD-4CE8-9BE2-D944943FE3DE",
"templateRoles": [
{
"roleName": "signer"
}
]
},
success: function(result){
var len = result.length;
alert("Success");
},
error: function(result){
alert("Please Checkit Once..... !");
},
error: function(result){
alert("Please Checkit Once..... !");
},
});