docusignapi - INVALID_REQUEST_PARAMETER creating an envelope with notifications -
i'm trying create envelope eventnotification, don't have poll status once every 15 minutes.
making request create envelope without notifications works fine, it's eventnotification part of request.
here full request:
{ "emailsubject": "test sending envelope 2", "eventnotification": { "envelopeevents": [ { "envelopeeventstatuscode": "sent" }, { "envelopeeventstatuscode": "delivered" }, { "envelopeeventstatuscode": "completed" }, { "envelopeeventstatuscode": "declined" }, { "envelopeeventstatuscode": "voided" } ], "includecertificateofcompletion": "true", "includecertificatewithsoap": "false", "includedocumentfields": "true", "includedocuments": true, "includeenvelopevoidreason": "true", "includesenderaccountascustomfield": "true", "includetimezone": "true", "loggingenabled": "true", "recipientevents": [ { "includedocuments": "sent" }, { "includedocuments": "delivered" }, { "includedocuments": "completed" }, { "includedocuments": "declined" }, { "includedocuments": "authenticationfailed" }, { "includedocuments": "autoresponded" } ], "requireacknowledgment": "true", "signmessagewithx509cert": "false", "url": "https://arealurl/api/docusign-notificationwebhook", "usesoapinterface": "false" }, "status": "sent", "templateid": "template-guid-4b95-guid-template", "templateroles": [ { "email": "someone@somewhere.com", "name": "someone somewhere", "rolename": "something" } ] }
and error comes is:
error calling createenvelope: { "errorcode": "invalid_request_parameter", "message": "the request contained @ least 1 invalid parameter. boolean value expected parameter: includedocuments" }.
i have tried includedocuments value being omitted, set string "true", , boolean true shown above.
the recipientevents
property incorrect. change includedocuments
recipienteventstatuscode
"recipientevents": [ { "recipienteventstatuscode": "sent" }, { "recipienteventstatuscode": "delivered" }, { "recipienteventstatuscode": "completed" }, { "recipienteventstatuscode": "declined" }, { "recipienteventstatuscode": "authenticationfailed" }, { "recipienteventstatuscode": "autoresponded" } ],
Comments
Post a Comment