Skip to main content

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​

  1. OlaClick embeds the app's iframe in its interface
  2. OlaClick passes company_id and country as query parameters
  3. The company completes the document validation form inside the iframe
  4. 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 rejected to pending after 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:

StatusIframe shown?Reason
pendingYesCompany needs to complete KYC
rejectedYesCompany needs to redo KYC
in_provider_reviewNoProvider backend is reviewing the application
awaiting_company_confirmationNoProvider needs the company to take action externally
activeNoKYC complete, connection is operational
revokedN/AConnection 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​

ParameterTypeDescription
company_idstring (UUID)Unique identifier of the company in OlaClick
countrystring (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; Secure if needed)

Content​

The KYC form must capture all necessary documentation according to the country:

CountryTypical Documents
BrazilCNPJ, Inscricao Estadual, Certificado Digital
MexicoRFC, Constancia de Situacion Fiscal, CSD
ColombiaNIT, RUT, Resolucion DIAN
ArgentinaCUIT, 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>
info

The camera and microphone permissions are included to allow document capture via camera if the app requires it.

Style guide​

Important

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​

RoleColorHexUsage
PrimaryBlue#006FFFPrimary buttons, links, action elements
SecondaryBlue#003E8FHighlighted text, headers, hover states
AccentGreen#01FFE3Badges, success indicators, highlights
ErrorRed#FE5F55Error messages, failed validations
SuccessGreen#3CAF47Confirmations, completed states
WarningOrange#FF9800Alerts, pending states
InfoBlue#24A4EDInformational 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: 4px for inputs and buttons, 12px for cards/modals
  • Base spacing: multiples of 4px (8, 12, 16, 24, 32)
  • Form max width: 600px centered
  • 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.

warning

The app is responsible for storing KYC documents. OlaClick does not store the company's fiscal documents.