Getting Error 400 - Number of uploaded files does not match number of documents specified in package.
Thursday, June 29, 2023 at 10:24pmcould you please help me why i'm getting this error, here i want to request for signing only one document and one signer. Attached the file for which i'm testing.
{
"documents": [
{
"approvals": [
{
"id": "ClientSignature",
"role": "Signer1",
"fields": [
{
"page": 0,
"top": 200,
"subtype": "LABEL",
"height": 50,
"left": 100,
"width": 200,
"id": "myLabelField",
"type": "INPUT",
"value": "Example label field value"
},
{
"page": 0,
"top": 100,
"subtype": "FULLNAME",
"height": 50,
"left": 100,
"width": 200,
"type": "SIGNATURE",
"name": "ExampleSignatureId"
}
],
"name": ""
}
],
"id": "sample-contract",
"name": "Test Document"
}
],
"status": "DRAFT",
"type": "PACKAGE",
"roles": [
{
"id": "Signer1",
"type": "SIGNER",
"signers": [
{
"email": "[email protected]",
"firstName": "John",
"lastName": "Smith",
"id": "Signer1"
}
],
"name": "Signer1"
}
],
"name": "Example Package"
}
Reply to: Getting Error 400 - Number of uploaded files does not match number of documents specified in package.
Monday, July 3, 2023 at 08:55amI see, try the attached JSON payload. You can find more details about the Text Anchor feature from this guide.
Duo
Reply to: Getting Error 400 - Number of uploaded files does not match number of documents specified in package.
Friday, June 30, 2023 at 12:29pmHi Yogeshgyw,
Thanks for your post!
I did a quick test with the JSON payload and the file you shared in Postman, and I didn't encounter the same 400 error (see attachment).
Which programming language are you using? Could you share more details around how you make the Post call?
Duo
Reply to: Getting Error 400 - Number of uploaded files does not match number of documents specified in package.
Monday, July 3, 2023 at 02:51amHi Duo_Liang,
Currently trying this in Postman
After adding the name "File" to the Key where the selected document is, this worked. But, the Signature anchor was positioned incorrectly.
And also I want to add 2 Signers to the document exactly where the people have to sign (Requester Signature & Client Signature), i dont want to pass the measurement parameters in API body since documents are dynamic.