When creating a widget using the API it ceates a parent Document key. When signed this creates a child Document key, which you need to use in order to retrieve the right status.
there's 2 ways of obtaining the child key:
Finding the child Document Keys using the getFormData method: Your application can
call the getFormData method and pass it the Document Key of the parent widget. The
output will include the data in comma-separated value (CSV) format. The first line
includes the column header names and each row represents a distinct instance of the
Finding the child Document Keys using the completion URL: When setting up the
Widget you can tell EchoSign where to send the user after they’ve completed signing
the widget. The child Document Key will be appended as a parameter to that URL if the
sender isthe same asthe API key user.
For more info see this guide page 6 onwards:
I've searched and looked for example code of how to get the child document key and also I cannot work out how to implement the completion URL when using the widget API have you an example code for this please.
To get the document key for the documents in your account, you can use "getMyDocuments" functionality and can retrieve the document key. And to get sample codes for API, you first need to have a Developer account and then you can download the Developer's Kit by going to Account tab->EchoSign API.
Let us know if you need more help!