Hi Matt,
I hope you’re having a good day.
I’d say you’re using the correct method (createSenderView) to preview the envelope and, as you can see in the documentation for the createSenderView, by default, the returned sender view URL should look like:
https://apps-d.docusign.com/api/send/auth-from-console-1ds?
code=9348001a-xxxx-xxxx-xxxx-abe0932c78cb
&t=a534a28b-xxxx-xxxx-xxxx-5c7aae7adf16
&from=https%3A%2F%2Fdemo.docusign.net
&r=https%3A%2F%2Fwww.example.com%2F
&view=true
&DocuEnvelope=f37489d3-xxxx-xxxx-xxxx-4de057063d0e
&e=d290fcfd-xxxx-xxxx-xxxx-4af03a3f8831
&send=1
&accountId=a732e8d0-xxxx-xxxx-xxxx-730111abbe12
&a=tag
&vt=5
So, based on the information you passed, you’re getting the correct URL.
Are you using the Docusign Apps Launcher for Salesforce by any chance? I am asking you that because the error you’re getting was a known error with previous versions. Have a look at the documentation below:
https://support.docusign.com/s/articles/DAL-DocuSign-eSignature-for-Salesforce-Error-Login-Unsuccessful-redeem-console-code-RestApi-Error-Transaction-Id?language=en_US
Otherwise, you may be getting this error because you're creating a sender view URL and you’d need to be logged in as a sender to open the URL, if you’re not a sender, this is why you're seeing this error.
If you’re still having issues with this after the information above, I’d recommend opening a case with the Developer Support team and we’ll look into it in detail.
Leandro Reis
Developer Support