cristianfrasineanu | Posts: 1

400 Bad Request

0 votes
Hey! I've used this codebase to put up a quick testing app: https://www.esignlive.com/blog/esignlive-how-to-creating-a-simple-php-web-application/ Unfortunately I am stuck for a day or so with a 400 error at this point:
POST /api/packages/A8e11I57ytWC1GHJzzphfLISw04=/documents/signed_documents HTTP/1.1
Host: sandbox.esignlive.com
Accept: */*
Authorization: Basic api_key
Content-Type: application/json
Content-Length: 138
The package is created successfully in the sandbox account, the signer is added as well but it cannot be set to SENT, as it yields a Bad Request error. I've tried changing the document and the API endpoint, but no luck... One thing that I noticed is that even in the admin panel it cannot be sent without adding the dynamic signature field in the document, am I missing something?

mwilliams | Posts: 957

Reply to: 400 Bad Request

0 votes
When changing the status to "SENT", are you doing a POST or a PUT call? The update package call is a PUT. You'll find it near the bottom on this page: http://docs.e-signlive.com//mc/content/c_esignlive_integrator_s_guide/rest_api/packages.htm

mwilliams | Posts: 957

Reply to: 400 Bad Request

0 votes
BTW, the POST call you're showing in your original post is for signing the documents. Is this where it's throwing the error or when trying to SEND?

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off