Copy link to clipboard
Copied
Hi,
I am trying to create a widget to embed on my site. I would like to:
- Avoid uploading the document each time to reduce the size of the request and improve performance.
- Supply merge fields to prepopulate some fields on the form.
I am trying to use the rest api to do this but am receiving the following error:
INVALID_TRANSIENTDOCUMENT_ID
The request body I am sending is:
{
"widgetCreationInfo": {
"widgetCompletionInfo": {
"deframe": false,
"delay": 0,
"url": ""
},
"widgetAuthFailureInfo": {
"deframe": false,
"delay": 0,
"url": ""
},
"mergeFieldInfo": [
{
"fieldName": "",
"defaultValue": ""
}
],
"formFieldLayerTemplates": [
{
"transientDocumentId": "",
"libraryDocumentId": "",
"libraryDocumentName": "",
"documentURL": {
"name": "",
"url": "",
"mimeType": ""
}
}
],
"securityOptions": {
"passwordProtection": {
"ALL_USERS": "enum",
"EXTERNAL_USERS": "enum",
"NONE": "enum",
"INTERNAL_USERS": "enum"
},
"kbaProtection": {
"ALL_USERS": "enum",
"EXTERNAL_USERS": "enum",
"NONE": "enum",
"INTERNAL_USERS": "enum"
},
"webIdentityProtection": {
"ALL_USERS": "enum",
"EXTERNAL_USERS": "enum",
"NONE": "enum",
"INTERNAL_USERS": "enum"
},
"protectOpen": false,
"internalPassword": "",
"externalPassword": "",
"openPassword": ""
},
"fileInfos": [
{
"transientDocumentId": "",
"libraryDocumentId": "",
"libraryDocumentName": "",
"documentURL": {
"name": "mydocument",
"url": "http://filebin.ca/2ck9Jy2lVeXo/template.pdf",
"mimeType": ""
}
}
],
"counterSignerSetInfos": [
{
"counterSignerSetRole": {
"SIGNER": "enum",
"DELEGATE_TO_SIGNER": "enum",
"DELEGATE_TO_APPROVER": "enum",
"APPROVER": "enum"
},
"counterSignerSetMemberInfos": [
{
"securityOptions": [
{
"authenticationMethod": {
"PHONE": "enum",
"INHERITED_FROM_DOCUMENT": "enum",
"KBA": "enum",
"WEB_IDENTITY": "enum",
"PASSWORD": "enum",
"NONE": "enum"
},
"phoneInfos": [
{
"phone": "",
"countryCode": ""
}
],
"password": ""
}
],
"email": ""
}
]
}
],
"callbackInfo": "",
"widgetSignerSecurityOptions": {
"authenticationMethod": {
"PHONE": "enum",
"INHERITED_FROM_DOCUMENT": "enum",
"KBA": "enum",
"WEB_IDENTITY": "enum",
"PASSWORD": "enum",
"NONE": "enum"
},
"phoneInfos": [
{
"phone": "",
"countryCode": ""
}
],
"password": ""
},
"name": "MyDoucument",
"locale": "",
"vaultingInfo": {
"enabled": false
},
"signatureFlow": ""
}
}
The response is:
{
"message": "The Transient Document ID specified is invalid",
"code": "INVALID_TRANSIENTDOCUMENT_ID"
}
Any help would be much appreciated. An example request would me magic!
Many thanks
Sam
Have something to add?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more