Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

I am getting a 401 error when requesting an authentication token for a "SENDER" with a mixed-case email. Other places in the REST API do not require a lowercase value for email in the json.

I am tryng to change my working code from uploading a single PDF containing a "stage" of forms to upload each form selected from the "stage" as a PDF.
I want to keep track of my customer's usage for billing. Do I need another key segment or is the PackageID globally unique? My customers will have their own accounts.

Replies Created

Reply to: Java REST Setting the Sender is ignored

0 votes
Thanks Duo, I did just upload the zipped package for you. Before I was sending the Sender and it's role when I created the package after accumulating all of the forms in a PDF. Now I must send each form separately, so when I get to one that has signers, the package already contains the welcome or cover page form and maybe some others. I create the package as a draft and send the documents before finally changing it to SEND when the stage is completed. Our customers each have an API key and will create several senders for different purposes. I don't expect them to want the account owner as a sender for any of their packages. I use REST calls to add the senders and keep their ID's in a database so I can use them on the documents. I have logic which accepts the sender and other needed data for each signature. I guess it boils down to needing a way to upload documents for a new package without letting the account owner get defaulted so I can set the sender when it is available. Is there a way to do that?

Reply to: Java REST Setting the Sender is ignored

0 votes
OK, I finally got back to this. I wound up writing a pre-process subroutine to go through the stage and find the first status and sender information. If the status is blank I POST with the sender I found. If I have a status I PUT using the package ID I found. I will keep the template idea just in case I get cornered again. Sounds like a way to improve performance in the future if uploading all the documents is too slow. Thanks for your help. BTW, and error response on the POST when the sender is changed would have saved a lot of time here.

Reply to:

0 votes

Hi Duo,

Thanks for responding.

I am aware that lowercase is needed. I am using the token to create a package in:

https://sandbox.esignlive.com/api/packages/ POST

I use the unchanged address for the json Sender:email and Signers on that request with no problem. This is confusing and costs time to debug because the case mismatch issue is not mentioned in the API documentation for either call.

I am suggesting this be treated as a bug to save others this pain.

Steve

 


Subscriptions

Topics Replies Freshness Views Users

I am getting a 401 error when requesting an authentication token for a "SENDER" with a mixed-case email. Other places in the REST API do not require a lowercase value for email in the json.

5 3 years 9 months ago 85
Profile picture for user Duo_Liang
I am tryng to change my working code from uploading a single PDF containing a "stage" of forms to upload each form selected from the "stage" as a PDF.
3 5 years 6 months ago 17
Profile picture for user Duo_Liang
I want to keep track of my customer's usage for billing. Do I need another key segment or is the PackageID globally unique? My customers will have their own accounts.
1 6 years 7 months ago 3
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.