Landy Cuadra
Landy Cuadra

Reputation: 165

How do I know if a envelope have reach the recipient email?

I am sending envelopes from a template to some recipients, and getting the envelope id like this:

while i < len(excel_signers):
    signers = {"signer_name": excel_signers[i][2], "signer_email": excel_signers[i][3], "cc_email": "[email protected]", "cc_name": "Responsable prueba"}

    # to the template
    signer = TemplateRole(email=signers["signer_email"], name=signers["signer_name"], role_name="signer")
    # Create a cc template role.
    cc = TemplateRole(email=signers["cc_email"], name=signers["cc_name"], role_name="cc")
    envelope_definition = EnvelopeDefinition(template_id=args["template_id"], template_roles=[signer, cc])

    envelope_definition.status = args["status"]

    results = envelope_api.create_envelope(args['account_id'], envelope_definition=envelope_definition)

    envelope_id = results.envelope_id
    excel_signers[i] = np.append(excel_signers[i], [envelope_id]).tolist()
    i += 1

but then I want to know if the envelope was correctly delivered, I tried using list_status_change but it shows me "sent" in all of them which is the status I set when I send the envelope. but in the docusign's dashboard it shows "failure", how can I know when an email is not delivered?

Upvotes: 0

Views: 87

Answers (1)

Inbar Gazit
Inbar Gazit

Reputation: 14050

To check the status of the recipients in your envelope use the GetRecipientStatus endpoint of the eSignature API

Since you're using Python, you can use the Python SDK's method list_recipients() It retrieves a lot of data about the recipients in your envelope, including their status. https://developers.docusign.com/esign-rest-api/guides/concepts/recipients

delivered status means that the email to that recipient was delivered.

Upvotes: 1

Related Questions