Skip to Content
0
Jan 28 at 05:38 AM

getting error in DocuSign API "{"requestId":"","message":"Unable to parse multipart body"}"

191 Views

HI All,

I am getting error while calling DocuSign API from sap ui5 application.

and its working fine in SAP open connector..

Error : {"requestId":"60123b87e4b00fe30653475f","message":"Unable to parse multipart body"}

Request Payload :

var templateData ={
"emailSubject": "Please sign this",
"emailBlurb": "Please sign...thanks!",
"templateId": "my template ID",
"envelopeIdStamping": "false",
"templateRoles": [{
"roleName": "Signer1",
"name": "John Doe",
"email": "xyx@gmail.com",
"recipientId": "1",
"tabs": {
"textTabs": [{
"tabLabel": "firstName",
"value": "John"
}, {
"tabLabel": "lastName",
"value": "Doe"
}, {
"tabLabel": "phoneNo",
"value": "22222222"
}, {
"tabLabel": "email",
"value": "xyz@gmail.com"
}]
}
}],
"status": "sent"
};
	var oAuth ="User /8eeSIY255zyErZUtoNNiUO64/vq4yV7Y0ODKdjsl/g=, Organization 7a2f3683439c37271ab9667e6e64f0d7, Element +CTzsypHRH5g1JBSKXe16QLH4YT6Djdvr8JK3Ir4yek=";
			var oData = JSON.stringify(templateData);
			var settings = {
				"async": true,
				"crossDomain": true,
				"url": '/docuSign/envelopes',
				"method": "POST",
				"resolveWithFullResponse": true,
				"data": oData,
				
				"headers": {
					"Authorization": oAuth,
					"Content-Type": 'application/json'


				},
			};
			var deferred = $.Deferred();
			$.ajax(settings).done(function (response) {
				debugger;
				deferred.resolve(response);
			}.bind(this)).fail(function (error) {
				debugger;
				deferred.reject(error);
			}.bind(this));