Skip to main content

Document Approval

The Document Approval SDK allows you to integrate flows in which a user must review and approve or reject documents with identity verification. This validation can include methods such as OTP and/or biometric validations, ensuring that only authorized users can issue valid approvals.

warning

Approval process validations are configured at the time of process creation, so they cannot be modified or overridden in the SDK integration.

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 for an SDK integration: 👉🏻 Events

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

const unsubscribe = AucoSDK({
iframeId: 'iframeId',
sdkType: 'sign',
language: 'es', // Accepted languages ​​'es' | 'en'
events: {
onSDKReady,
onSDKClose,
},
sdkData: {
document: 'WO0J4L3YWBWE', // Process code pending signature
signFlow: 'approve',
uxOptions: {
primaryColor: '#021c30',
alternateColor: '#a557f2',
},
},
env: process.env.PUBLIC_ENVIRONMENT === 'dev' ? 'DEV' : 'PROD',
});
info

Each approver has a 2-character ID that identifies them. In the integration, the document code must be specified concatenated with this ID as follows:

  • Document code: WO0J4L3YWB
  • Approver ID: WE
  • Integration code: WO0J4L3YWBWE