docusignapi - Senders Notifications -
i have following json request, if not use senders notifications, works if add senders notifications not, why?
{ "usersettings":[ { "value":"false", "name":"allowsendonbehalfof" } ], "signeremailnotifications":{ "envelopeactivation":"false", "envelopecomplete":"false", "carboncopynotification":"false", "certifieddeliverynotification":"false", "envelopedeclined":"false", "envelopevoided":"false", "envelopecorrected":"false", "reassignedsigner":"false", "purgedocuments":"false", "faxreceived":"false", "documentmarkupactivation":"false", "agentnotification":"false" }, "senderemailnotifications":{ "envelopecomplete":"false", "changedsigner":"false", "senderenvelopedeclined":"false", "withdrawnconsent":"false", "recipientviewed":"false", "deliveryfailed":"false" } }"
remove final "
request, works me.
{ "usersettings":[ { "value":"false", "name":"allowsendonbehalfof" } ], "signeremailnotifications":{ "envelopeactivation":"false", "envelopecomplete":"false", "carboncopynotification":"false", "certifieddeliverynotification":"false", "envelopedeclined":"false", "envelopevoided":"false", "envelopecorrected":"false", "reassignedsigner":"false", "purgedocuments":"false", "faxreceived":"false", "documentmarkupactivation":"false", "agentnotification":"false" }, "senderemailnotifications":{ "envelopecomplete":"false", "changedsigner":"false", "senderenvelopedeclined":"false", "withdrawnconsent":"false", "recipientviewed":"false", "deliveryfailed":"false" } }
leaving " in there error message, indicating request has additional text after json closed
{ errorcode: "invalid_request_body" message: "the request body missing or improperly formatted. additional text encountered after finished reading json content: \". path '', line 30, position 2." }
Comments
Post a Comment