简体   繁体   中英

Docusign nodejs envelopes api returns exports {}

I'm running the following code in my nodejs server

  // Create the recipient view, the Signing Ceremony
  
  let viewRequest: RecipientViewRequest = {
    returnUrl: "http://localhost:3000/fund/123?state=123",
    authenticationMethod: "none",
    email: "my_email",
    userName: "Ryan",
    clientUserId: "my client user id",
    pingFrequency: "600",
    pingUrl: "http://localhost:3000"
  };

  // Call the CreateRecipientView API
  // Exceptions will be caught by the calling function

  const dsApiClient = new ApiClient();
  dsApiClient.setBasePath("https://account-d.docusign.com");

  const api = new EnvelopesApi(dsApiClient);
  const results = await api.createRecipientView(
    "1234",
    "5678",
    { recipientViewRequest: viewRequest }
  );

and it keeps giving me the output of exports {} no errors or anything. this is pretty painful to debug. has anyone else ran into a similar problem? and how did you fix it?

When you use embedded signing you must set the clientUserId .

But, the clientUserId has to be set when the envelope is created, or when the recipient is added to an a draft envelope and must match the value you later pass in a request for a recipient View.

You cannot make a request for recipient view for an envelope that was created via the web app, unless your code modified that envelope to set the clientUserId for the recipient you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM