KYC Iframe
The KYC (Know Your Customer) capture module allows connectors to collect and validate the necessary fiscal documents from OlaClick companies. This module is implemented as an iframe that OlaClick embeds in its platform.
How it works
- OlaClick embeds the connector's iframe in its interface
- OlaClick passes
company_idandcountryas query parameters - The company completes the document validation form inside the iframe
- Once validated, the connector calls the Update Connection Status endpoint to notify OlaClick
Create the iframe
The connector must expose a public URL that accepts the following query parameters:
https://your-domain.com/kyc?company_id={company_id}&country={country}
Query Parameters
| Parameter | Type | Description |
|---|---|---|
company_id | string (UUID) | Unique identifier of the company in OlaClick |
country | string (ISO 3166-1 alpha-2) | Company's country code (e.g.: BR, MX, CO, AR) |
URL Example
https://your-domain.com/kyc?company_id=550e8400-e29b-41d4-a716-446655440000&country=BR
Iframe requirements
Technical
- The URL must be accessible via HTTPS
- Must be responsive (will be displayed at different screen sizes)
- Must not redirect outside the iframe
- Must work without third-party cookies (use
SameSite=None; Secureif needed)
Content
The KYC form must capture all necessary documentation according to the country:
| Country | Typical Documents |
|---|---|
| Brazil | CNPJ, Inscricao Estadual, Certificado Digital |
| Mexico | RFC, Constancia de Situacion Fiscal, CSD |
| Colombia | NIT, RUT, Resolucion DIAN |
| Argentina | CUIT, Certificado AFIP |
UX
- Show clear progress indicators
- Validate fields in real time
- Show descriptive error messages
- Confirm to the user when the process is completed successfully
Integration in OlaClick
OlaClick embeds the iframe as follows:
<iframe
src="https://your-domain.com/kyc?company_id=550e8400-e29b-41d4-a716-446655440000&country=BR"
width="100%"
height="600"
frameborder="0"
allow="camera; microphone"
sandbox="allow-scripts allow-same-origin allow-forms allow-popups"
></iframe>
The camera and microphone permissions are included to allow document capture via camera if the connector requires it.
Style guide
Compliance with this style guide is mandatory for integration homologation. The iframe must look consistent with the OlaClick platform to ensure a seamless user experience.
Color palette
| Role | Color | Hex | Usage |
|---|---|---|---|
| Primary | Blue | #006FFF | Primary buttons, links, action elements |
| Secondary | Blue | #003E8F | Highlighted text, headers, hover states |
| Accent | Green | #01FFE3 | Badges, success indicators, highlights |
| Error | Red | #FE5F55 | Error messages, failed validations |
| Success | Green | #3CAF47 | Confirmations, completed states |
| Warning | Orange | #FF9800 | Alerts, pending states |
| Info | Blue | #24A4ED | Informational messages, tooltips |
Typography
- Font family:
Inter,system-ui,-apple-system,sans-serif - Base size:
14px - Headings: Semi-bold (
600) or Bold (700) - Body: Regular (
400)
Components
Buttons
CSS reference
/* Primary button */
.btn-primary {
background-color: #006fff;
color: #ffffff;
border: none;
border-radius: 4px;
padding: 10px 24px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
}
.btn-primary:hover {
background-color: #003e8f;
}
/* Secondary button */
.btn-secondary {
background-color: transparent;
color: #006fff;
border: 1px solid #006fff;
border-radius: 4px;
padding: 10px 24px;
font-size: 14px;
font-weight: 600;
}
Inputs
CSS reference
.input-field {
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 10px 12px;
font-size: 14px;
height: 40px;
width: 100%;
}
.input-field:focus {
border-color: #006fff;
outline: none;
box-shadow: 0 0 0 2px rgba(0, 111, 255, 0.1);
}
.input-field.error {
border-color: #fe5f55;
}
Spacing and layout
- Border radius:
4pxfor inputs and buttons,12pxfor cards/modals - Base spacing: multiples of
4px(8, 12, 16, 24, 32) - Form max width:
600pxcentered - Iframe internal padding: minimum
24px
General rules
- Do not use colors outside the defined palette
- Maintain minimum WCAG AA contrast (4.5:1 for text)
- The iframe background must be white (
#FFFFFF) or light gray (#F5F5F5) - Do not include the connector's own logos prominently
- Error messages must use the color
#FE5F55 - Success states must use the color
#3CAF47
After KYC
Once the connector successfully validates the company's documents, it must:
- Call the
PATCH /v1/conections/:idendpoint - Send
status: "active"if validation was successful - Send
status: "rejected"with areasonif validation failed
The connector is responsible for storing KYC documents. OlaClick does not store the company's fiscal documents.