Yogeshgyw | Posts: 7

Getting Error 400 - Number of uploaded files does not match number of documents specified in package.

0 votes

could 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"

}


Attachments
Approved Answer
Duo_Liang | Posts: 3776

Reply to: Getting Error 400 - Number of uploaded files does not match number of documents specified in package.

0 votes

I see, try the attached JSON payload. You can find more details about the Text Anchor feature from this guide.

 

Duo


Attachments
Duo_Liang | Posts: 3776

Reply to: Getting Error 400 - Number of uploaded files does not match number of documents specified in package.

0 votes

Hi 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


Attachments
Yogeshgyw | Posts: 7

Reply to: Getting Error 400 - Number of uploaded files does not match number of documents specified in package.

0 votes

Hi 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.


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