87919

Senders Notifications

Question:

I have the following json request, if I do not use any senders notifications, it works but if I add the senders notifications it does 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" } }"

Answer1:

Remove the final " from your request, it works for 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 the " in there you get an error message, indicating that your request has additional text after the JSON is closed

{ errorCode: "INVALID_REQUEST_BODY" message: "The request body is missing or improperly formatted. Additional text encountered after finished reading JSON content: \". Path '', line 30, position 2." }

Recommend