here are my code
let viewRequest = new docuSign.RecipientViewRequest();
viewRequest.returnUrl = this.returnUrl;
viewRequest.authenticationMethod = "none";
viewRequest.email = signerEmail;
viewRequest.userName = signerName;
viewRequest.clientUserId = this.clientUserId; //?
viewRequest.pingFrequency = 600;
console.log("view request", viewRequest);
console.log("accountInfo.apiAccountId", accountInfo.apiAccountId);
console.log("envelopeId", envelopeId);
result = await envelopesApi.createRecipientView(
accountInfo.apiAccountId,
envelopeId,
{
recipientViewRequest: viewRequest,
}
);
it keep return 400 error bad request
returnUrl="www.google.com"
clientUserId=1;
signerEmail = "[email protected]";
signerName = "tran le ha";
here is the signer i used for envelope
let signer = docuSign.Signer.constructFromObject({
email: envelopeArgs.signerEmail,
name: envelopeArgs.signerName,
recipientId: "1",
clientUserId: this.clientUserId,
});
the apiAccountId i used for both envelope is the same and i use jwt grant authenticate
Can any one help me fix this, i dont know what iam doing wrong