Skip to main content

Uploading Documents with Attachments

The Uploading Documents with Attachments feature allows the integration of main documents along with additional files that act as attachments within the same signing flow, as well as requesting attached documents without the need for a main document.

Integration Example​

warning

For the integration, it is necessary to have an <iframe id='iframeId'> element where the SDK will be rendered, and the AucoSDK function must be provided with the ID of this element.

info

Follow the link to see the reference of the events required in an SDK integration: πŸ‘‰πŸ» Events

Basic Integration​

import { AucoSDK } from 'auco-sdk-integration';

const unsubscribe = AucoSDK({
iframeId: 'iframeId',
sdkType: 'attachments',
language: 'es', // Accepted languages ​​'es' | 'en'
keyPublic: 'puk_xxxxx', // Company public key needed to create the process
events: {
onSDKReady,
onSDKClose,
onSDKToken,
},
sdkData: {
uxOptions: {
primaryColor: '#021c30',
alternateColor: '#a557f2',
},
},
env: process.env.PUBLIC_ENVIRONMENT === 'dev' ? 'DEV' : 'PROD',
});

Integration with pre-loaded signers​

info

Follow the link to see the reference of accepted countries and document types πŸ‘‰πŸ» Documents and countries

import { AucoSDK } from 'auco-sdk-integration';

const unsubscribe = AucoSDK({
iframeId: 'iframeId',
sdkType: 'attachments',
language: 'es', // Accepted languages ​​'es' | 'en'
keyPublic: 'puk_xxxxx', // Company public key required for process creation
events: {
onSDKReady,
onSDKClose,
onSDKToken,
},
sdkData: {
users: [
{
name: 'Signer #1';
email: 'signer@auco.ai';
phone: '+573151234567';
country: 'CO';
id: '1234567890';
idType: 'CC';
}
],
uxOptions: {
primaryColor: '#021c30',
alternateColor: '#a557f2',
},
},
env: process.env.PUBLIC_ENVIRONMENT === 'dev' ? 'DEV' : 'PROD',
});