Copy link to clipboard
Copied
Hi All,
I am facing 415 error code, when trying to create an agreement. Can anyone asisst me on what am i doing wrong. i ma using accesstoken, api access point is pointing to shard "in1". PFB the json request i am using.
{
"fileInfos": [
{
"document": {
"createdDate": "2021-10-01",
"id": "",
"label": "Testing from API",
"numPages": 31,
"mimeType": "",
"name": ""
},
"label": "Testing from API 1",
"libraryDocumentId": "CBJCHBCAABAAXTzblJ-nauekJvs7OKwIc4hITZxX4IkL",
"notarize": false,
"transientDocumentId": "",
"urlFileInfo": {
"mimeType": "",
"name": "",
"url": ""
}
}
],
"name": "",
"participantSetsInfo": [
{
"memberInfos": [
{
"email": "varunchandana450@gmail.com",
"id": "",
"securityOption": {
"authenticationMethod": "NONE",
"nameInfo": {
"firstName": "Varun",
"lastName": "Ch"
},
"notaryAuthentication": "",
"password": "",
"phoneInfo": {
"countryCode": "",
"countryIsoCode": "",
"phone": ""
}
}
}
],
"order": 1,
"role": "SIGNER",
"id": "",
"label": "",
"name": "",
"privateMessage": "",
"visiblePages": [
""
]
}
],
"signatureType": "ESIGN",
"state": "IN_PROCESS",
"ccs": [
{
"email": "",
"label": "",
"visiblePages": [
""
]
}
],
"createdDate": "2021-10-01T01:46:19Z",
"deviceInfo": {
"applicationDescription": "",
"deviceDescription": "",
"deviceTime": ""
},
"documentVisibilityEnabled": false,
"emailOption": {
"sendOptions": {
"completionEmails": "ALL",
"inFlightEmails": "ALL",
"initEmails": "ALL"
}
},
"expirationTime": "2021-10-04T01:46:19Z",
"externalId": {
"id": "NB-10101"
},
"firstReminderDelay": 1,
"formFieldLayerTemplates": [
{
"document": {
"createdDate": "2021-10-01",
"id": "",
"label": "",
"numPages": 1,
"mimeType": "",
"name": ""
},
"label": "",
"libraryDocumentId": "CBJCHBCAABAAXTzblJ-nauekJvs7OKwIc4hITZxX4IkL",
"notarize": false,
"transientDocumentId": "",
"urlFileInfo": {
"mimeType": "",
"name": "",
"url": ""
}
}
],
"groupId": "",
"hasFormFieldData": false,
"hasSignerIdentityReport": false,
"id": "",
"isDocumentRetentionApplied": false,
"lastEventDate": "",
"locale": "",
"mergeFieldInfo": [
{
"defaultValue": "",
"fieldName": ""
}
],
"message": "",
"notaryInfo": {
"appointment": "",
"notaryEmail": "",
"notaryType": "",
"note": "",
"payment": ""
},
"parentId": "",
"postSignOption": {
"redirectDelay": 1,
"redirectUrl": ""
},
"reminderFrequency": "ONCE",
"securityOption": {
"openPassword": ""
},
"senderEmail": "",
"status": "",
"type": "",
"vaultingInfo": {
"enabled": false
},
"workflowId": "CBJCHBCAABAAEeb7TJbGCnJAQABh9J8alm8EcJt3NmXP"
}
Build out the minimum json, or remove from the complete json the parameters you don't need. Though most likely the issue is with having multipl options under fileInfo section. You only can use one in each section.
Copy link to clipboard
Copied
start by using the minimised json, there's a lot of parameter you are no using, the fileinfo ones in particular.
Use the minimum json example and replace transient documentid with the libraryid as that's what you seem to be using.
Copy link to clipboard
Copied
Hi Simon,
Thanks for responding !
The minimised json is working fine. For Actual Development we will need the Complete Json, as we need postSignOption, ExternalId, expirationTime, Remainders, formfields etc. for our business requirements. So when i try with complete json i am facing this issue.
(Currently i am using an individual developer account, We have a business account i am waiting for the client to provide us the credentials)
Copy link to clipboard
Copied
Build out the minimum json, or remove from the complete json the parameters you don't need. Though most likely the issue is with having multipl options under fileInfo section. You only can use one in each section.
Copy link to clipboard
Copied
Thanks for help ! The issue is because of the FileInfo . Looks like we should send only either one of the tag (transientDocumentId/ librabryDocumentid/ UrlFileInfo ) in the request but not all . I have removed the other 2 tags in the request and used LibraryDocumentId alone and it started working.
Initial : "fileInfos": [
{
"document": {
"createdDate": "2021-10-01",
"id": "",
"label": "Testing from API",
"numPages": 31,
"mimeType": "",
"name": ""
},
"label": "Testing from API 1",
"libraryDocumentId": "CBJCHBCAABAAXTzblJ-nauekJvs7OKwIc4hITZxX4IkL",
"notarize": false,
"transientDocumentId": "",
"urlFileInfo": {
"mimeType": "",
"name": "",
"url": ""
}
}
]
Final:
"fileInfos": [
{
"document": {
"createdDate": "date",
"id": "",
"label": "Testing from API",
"numPages": 31,
"mimeType": "",
"name": ""
},
"label": "Testing from API 1",
"transientDocumentId":"3AAABLblqZhC-mh-E95BQmVxrfMMhWjQn38oF_w6HPjbtf_mpI4AuN9hb7boXGZ_KAZL7O-zTigoILgJYM9LMKCbTYJXx6-xg2fwvVx2c0FsGIL2WUZKR9KaIvwyjOumxW0HbMdmYpGSEHaItMSNYjiNrmukFvAets1lxeyTONpx87yu-vq0JAmfj9ck7-UzJVJR3sNqmW9CII6F83Gk487_ZVW-ytg95xBya_zF0_Si1pf4_x2irVYJEUvrFRzSL3bnUDNirwH_9EcEVkzGR1ePQBjcZINzgY2i-kG8Ka32_skv0Y692CGLg55TwsJ4PndsyovA8Yg43rA4815znTLQHN2Gm-bdzzkPyPpcy5kKYtQQTZcAHOw**"
}
],