Error Code 400 - Validation Error
Friday, July 12, 2019 at 08:34amHi, I'm trying to follow the example https://developer.esignlive.com/guides/quick-start/creating-and-sending-a-package-rest/ however there seems to be conflicting information between the required fields listed there and the ones listed on the YAML. Looking for some help in troubleshooting the bad response i'm getting. Please find attached my payload (redacted the PDF data and personal info).
The PDF is being attached as a BASE64 encoded file, if that helps to debug. For example, starts with JVBERi0xLjQKJeLjz9MKMyAwIG9iaiA8P
The server returned status code: 400 Message: Bad Request Response:
{
"entity": null,
"technical": "",
"packageId": null,
"messageKey": "http.status.400",
"messageLanguage": null,
"parameters": {},
"message": "Validation Error",
"code": 400,
"name": "Validation Error"
}
URL USED: https://sandbox.esignlive.com/api/packages
QUERYSTRING USED: null
PAYLOAD USED:
--SilanisBoundary31353632393532313830323931
Content-Disposition: form-data; name="file"; filename="f_1562952145867.pdf"
Content-Type: application/pdf Content-Transfer-Encoding: application/pdf
**JVBERi0xLjQKJeLjz9MKMyAwIG9iaiA8P....REDACTED PDF DATA**
--SilanisBoundary31353632393532313830323931
Content-Disposition: form-data; name="payload"
{
"description": "New Package",
"documents": [
{
"approvals": [
{
"fields": [
{
"extractAnchor": {
"anchorPoint": "BOTTOMRIGHT",
"characterIndex": 0,
"height": 150,
"index": 0,
"leftOffset": 0,
"text": "1555615512268",
"topOffset": 0,
"width": 40
},
"height": 0,
"left": 0,
"page": 0,
"subtype": "FULLNAME",
"top": 0,
"type": "SIGNATURE",
"width": 0
}
],
"role": "1555615512268"
},
{
"fields": [
{
"extractAnchor": {
"anchorPoint": "BOTTOMRIGHT",
"characterIndex": 0,
"height": 150,
"index": 0,
"leftOffset": 0,
"text": "1555615513009",
"topOffset": 0,
"width": 40
},
"height": 0,
"left": 0,
"page": 0,
"subtype": "FULLNAME",
"top": 0,
"type": "SIGNATURE",
"width": 0
}
],
"role": "1555615513009"
}
],
"name": "1555615512117"
}
],
"emailmessage": "",
"language": "en",
"name": "Example Package",
"roles": [
{
"id": "1555615512268",
"signers": [
{
"company": null,
"email": "**REDACTED**",
"firstName": "Lazarus",
"lastName": "Bishop"
}
]
},
{
"id": "1555615513009",
"signers": [
{
"company": null,
"email": "**REDACTED**",
"firstName": null,
"lastName": null
}
]
}
],
"status": "SENT",
"type": "PACKAGE"
}
--SilanisBoundary31353632393532313830323931--
Reply to: Error Code 400 - Validation Error
Wednesday, July 17, 2019 at 05:05amReply to: Error Code 400 - Validation Error
Friday, July 12, 2019 at 08:37amReply to: Error Code 400 - Validation Error
Friday, July 12, 2019 at 08:46amReply to: Error Code 400 - Validation Error
Friday, July 12, 2019 at 08:53amReply to: Error Code 400 - Validation Error
Friday, July 12, 2019 at 09:15amReply to: Error Code 400 - Validation Error
Friday, July 12, 2019 at 09:51amReply to: Error Code 400 - Validation Error
Wednesday, July 17, 2019 at 05:43am