DocuSignAPI Error Code INVALID_EMAIL_ADDRESS_FOR_RECIPIENT - docusignapi

Recieving an error Code when making a demo call using the rest api v2 with an an email configured as a prospect to a template. Can anyone please let me know why this is being returned and it seems to work fine when the request is with a test#email.com
errorDetails INVALID_EMAIL_ADDRESS_FOR_RECIPIENTThe email address for one of the recipients is not valid.
Answering my question again - ive actually removed the email tag from the envelope request , this was causing the problem

The DocuSign system does not know if it's actually a valid email address (it would have to do a test send to figure that out), the only validation that is done through the platform is on the actual format of the email address.
If it's not in the format (at least one character)#something.something then it will be flagged as an invalid email address. Looks like you've figured this out on your own though.

Related

Not able to edit phone number for User verification in DocuSign

This is in reference to the User verification using DocuSign, I am trying to explore the Phone Authentication mode, but I am not getting an option to edit the number/ Choose a new number on the Screen where DocuSign requests for the Access code , I have set the recipMayProvideNumber": to true, but it does not seems to be working , Please help
See this blog post on the topic of recipient authentication.
The number should be passed during the API call like you did. You cannot change it as the signer, only the sender can modify it.
If you want to modify it, you need to make a PUT request to the envelope before it is sent. Once set you can still change it but that would require a new email to also be sent out, the original email with the original link would be invalidated.

Recipient Delivery Failed -- Webhooks and Correcting/Resending via the API

I've been working on an integration that sends an envelope to 2 signers. I am trying to test and program for the case of 1 of the signers having a bad email address. I would need to:
Be notified of this (webhook?)
Update the email address for the signer
Update the email address in the custom fields as that's printed on the agreement
Resend the envelope
When I enable the delivery failure notification in Connect (this is set up at the account level, for now), I don't see where the failure is noted in the webhook response or for which signer the error is happening.
I've found multiple links via Google talking about "correct and resend" but I haven't been able to get anything definitive in terms of what steps need to be taken or a (PHP) code example. I've also found "resend" in the API reference but still no code examples.
I also haven't seen any code examples (PHP) of how I would update a signer's email address and how that would work via the API.
It'd also be good to know how to update custom field data for both signers so the email address in the contract is updated (it's listed separately as part of the custom form data).
And finally, how would I resend the envelope?
Thank you for your thoughts.
Per DocuSign support (customersupport#docusign.com):
Be notified of this (webhook?)
I have updated your account settings and now you should be able to see AutoResponded in your webhook messages when email invalid or unreachable.
(my comments: so it sounds like you have to ask to be able to see this stuff, it's not part of their standard webhook responses)
Update the email address for the signer
I also haven't seen any code examples of how I would update a signer and how that would work.
Unfortunately we don't have an example for recipient update but the logic is to get list of all recipients, pick the one need to be updated, and update.
You can use below to retrieve all recipients per envelope
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipients/list/
GET /restapi/v2.1/accounts/accountId/envelopes/envelopeId/recipients
Extract the one you need to update edit email and update using the below
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipients/update/
PUT /restapi/v2.1/accounts/accountId/envelopes/envelopeId/recipients
You can also see example code in C# how to do this in this thread https://github.com/docusign/docusign-csharp-client/issues/307
Update the email address in the custom fields as that's printed on the agreement
There is bug case created ( above link ) regarding this. At the moment you can not update signer custom fields case EC-2944.
Resend the envelope
You can resend the envelope during recipient update
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipients/update/
PUT /restapi/v2.1/accounts/accountId/envelopes/envelopeId/recipients
My commentary:
Since custom fields can't be updated, this whole use-case goes out the window. We can't have contracts with incorrect data on it, so my client will have to do these corrections by hand. Kind of a bummer.

Handling a Docusign Rest api exception?

I want to know if this is possible: I would like to have a custom text field on an envelope that I set and if the envelope fails for some reason, like there are missing tabs or email address is bad, I want to be able to look at the exception and see the custom field that I set. Would this info be in the raw data? It is as important to us to know which envelopes failed as to know why they failed. I saved the custom field in a database before sending out the envelope. When it fails, I can look up that custom field and discover which envelope didn't make it and to take some action, like correcting and resending.
If the envelope is created incorrectly (i.e: specifying a conditional parent tab which does not exist, syntax error, etc), then you will know at the time you attempt to create the envelope w/the API. The reason will be included in an error code the API returns
If an envelope was sent to an email address which does not exist/bounces, that information can be discovered using the DS API to see a recipient/envelope status of 'autoresponded', or if you are using DS Connect you can receive a push notification.
Is there additional rationale why you want to use a custom field? Per the above, I do not believe it is necessary or applicable.
With the RestSharp api, I was able to get the Request body. The Request body has a collection of Parameters, and one of those items is the RequestBody.

Nodejs receiving email and redirecting to gmail email address

So i have an website, abc.com. If someone sends an email at support#abc.com i want to receive it at gmail address or whatever address i chose. Then if i reply to that email it in gmail then it should send either using gmail or mandrill. And from of the email should show up as support#abc.com.
This is my first time tackling email. And i have no clue.
So far i understand i need something to take emails in, send emails out, and then there is smtp server.
I get that nodemailer fulfils the role needed by two of the first things..But rest is confusing.
I know this sounds vague but as front end jquery dev i never thought of this much. So be patient and understand like with http protocol i have not much of understanding on this. This question could be many questions however i don't know what those question need to be.

Mozilla Persona: get email address

I feel like I'm missing something basic here, but am having trouble finding it. I simply need to access the email address that someone has used to log into Persona. I'm looking for the email address so I can pass it along as an assertion for Open Badges.
The way to get the email address out of the assertion is to simply send the assertion to the verifier: https://developer.mozilla.org/en-US/docs/Persona/Quick_Setup#Step_4.3A_Verify_the_user.E2.80.99s_credentials

Resources