KYC Iframe
The KYC (Know Your Customer) capture module allows apps 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 app's iframe in its interface
- OlaClick passes
company_idandcountryas query parameters - The company completes the document validation form inside the iframe
- Once validated, the app calls the Update Connection Status endpoint to notify OlaClick
KYC state management
The app is responsible for managing KYC state within its iframe. Specifically:
- If the company has already submitted KYC documents, the iframe must not allow re-submission.
- If the connection status changes back (e.g. from
rejectedtopendingafter a retry), the iframe must show the current state and allow the company to make corrections. - OlaClick does not track KYC form state — the app must persist and enforce this logic on its side.
The iframe is displayed based on the connection status:
| Status | Iframe shown? | Reason |
|---|---|---|
pending | Yes | Company needs to complete KYC |
rejected | Yes | Company needs to redo KYC |
in_provider_review | No | Provider backend is reviewing the application |
awaiting_company_confirmation | No | Provider needs the company to take action externally |
active | No | KYC complete, connection is operational |
revoked | N/A | Connection terminated |
Create the iframe
The app 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 app 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 app's own logos prominently
- Error messages must use the color
#FE5F55 - Success states must use the color
#3CAF47
After KYC
Once the company submits documents, the app transitions the connection by calling PATCH /v1/conections/:id. The valid app transitions are:
From pending:
- →
active— KYC approved - →
rejected— KYC failed - →
in_provider_review— documents received, under review
From in_provider_review:
- →
active— review passed - →
rejected— review failed - →
awaiting_company_confirmation— provider needs the company to take action
From awaiting_company_confirmation:
- →
in_provider_review— company responded, back under review - →
active— issue resolved - →
rejected— company did not respond or failed
See Update Connection Status for the full API reference and transition table.
The app is responsible for storing KYC documents. OlaClick does not store the company's fiscal documents.