Unknown Error While creating package
Monday, September 10, 2018 at 03:36amHi , i am trying to create a package using the rest API with sandbox url : https://sandbox.esignlive.com/api/packages. I am getting an error response.
{"technical":"","entity":null,"packageId":null,"messageKey":"http.status.400","messageLanguage":null,"message":"Validation Error","parameters":{},"code":400,"name":"Validation Error"}
I am unable to get what exactly is the problem. Please reply soon.
I have a query if payload json needs indentation.
Sample requests are as :
Sample 1
------WebKitFormBoundary1bNO60n7FqP5WO4t
Content-Disposition: form-data; name="file"; filename="download.pdf"
Content-Type: application/pdf
filedata
------WebKitFormBoundary1bNO60n7FqP5WO4t
Content-Disposition: form-data; name="payload"
{
"documents":[
{
"name":"Test package"
}
]
}
------WebKitFormBoundary1bNO60n7FqP5WO4t--
Sample 2
--WebKitFormBoundary9ee44645-3603-4c93-be15-e5858198b9f8
Content-Disposition: form-data; name="payload"
{
"type": "PACKAGE",
"language": "en",
"name": "Test package",
"documents": [
{
"approvals": [
{
"role": "Customer",
"name": "CustomerSignature",
"id": "CustomerSignature",
"fields": [
{
"name": "APR",
"id": "APR",
"extract": true,
"type": "INPUT",
"subtype": "TEXTFIELD"
},
{
"name": "CustomerSignature",
"id": "CustomerSignature",
"extract": true,
"type": "SIGNATURE",
"subtype": "FULLNAME"
}
]
},
{
"role": "Customer",
"name": "Agent",
"id": "Agent",
"fields": [
{
"name": "Agent",
"id": "Agent",
"extract": true,
"type": "SIGNATURE",
"subtype": "FULLNAME"
}
]
}
],
"extract": true,
"index": 0,
"name": "Test Document1"
}
],
"roles": [
{
"type": "SIGNER",
"id": "Customer",
"signers": [
{
"signature": null,
"firstName": "role",
"lastName": "one",
"email": "[email protected]",
"id": "Customer"
}
],
"name": "Customer"
}
]
}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="download.pdf"
Content-Type: application/pdf
filedata
--WebKitFormBoundary9ee44645-3603-4c93-be15-e5858198b9f8--
Reply to: Unknown Error While creating package
Tuesday, September 11, 2018 at 02:13amReply to: Unknown Error While creating package
Monday, September 10, 2018 at 04:22am"--" + boundary + "--"
(with two dashes instead of one) The attachment is a picture shows you the standard http request which you can check with your owns or you can kindly refer to my blog for more information. Hope this could help you! DuoReply to: Unknown Error While creating package
Monday, September 10, 2018 at 08:14pmReply to: Unknown Error While creating package
Monday, September 10, 2018 at 08:17pmReply to: Unknown Error While creating package
Monday, September 10, 2018 at 08:25pmReply to: Unknown Error While creating package
Monday, September 10, 2018 at 09:03pmReply to: Unknown Error While creating package
Tuesday, September 11, 2018 at 04:35amReply to: Unknown Error While creating package
Tuesday, September 11, 2018 at 04:37amReply to: Unknown Error While creating package
Tuesday, September 11, 2018 at 04:46am