Customer flow#
This page tells you what your customer sees and does. The customer pages use Persian.
Steps#
The customer does the steps in this sequence:
- Document choice. The customer chooses one document from
allowed_document_types. - Document. The rear camera opens. The customer holds the document in the frame. Rokh takes the photo automatically when the full document is in the frame, large enough, still and sharp. After 10 seconds, a manual shutter button also comes into view.
- Face. The front camera opens. Rokh takes the photo automatically when one face is in the centre, near enough, still and sharp. If Rokh asks for a head turn, an arrow shows the direction. The customer turns the head and then looks at the camera again.
- Declaration. This step occurs only when
declaration_sentenceshas a sentence. The customer holds the document below the face and reads the sentence aloud. The words that Rokh hears become green.
Rokh records a video during each step. The recording, the photos and the time of each event become evidence for you.
Views of each document#
| Document | allowed_document_types |
Views that the customer shows |
|---|---|---|
| Smart national ID card | smart_id |
The front and the back |
| Passport | passport |
The open passport: the page with the photo and the opposite page |
| شناسنامه | booklet |
The open booklet: the first page and the opposite page |
| Driving licence | driving_licence |
The front and the back |
Time limits#
- The customer link works until
expires_at. After that time, the link shows a page that tells the customer that the link is not valid. - The customer has 20 minutes for all steps, from the first click on the start button. The time on the instruction pages between steps also counts.
- The time that Rokh uses for its checks does not count. Rokh adds that time to the 20 minutes.
- If the 20 minutes end, the customer must start again from the first step. The link continues to work until
expires_at.
Attempts#
- Each step has
attempt_limitattempts. The default is 3. - An attempt counts only when the customer sends it for the automatic checks.
- An attempt does not count if the customer stops it before Rokh receives it. Examples are a reload, the back button or a closed page. Rokh records these attempts and shows them to you.
- The customer can start again at most four times the attempt limit.
- If the customer uses all attempts of a step, the steps stop. The request becomes
submittedwith the decisionno_pass.
What the customer sees#
Rokh asks the customer to try a step again only for a problem that the customer can correct:
- The document or the face is not fully in the frame.
- The image is not sharp or the light is not sufficient.
- The document photo is not usable.
- The recording or the sound is not usable.
- The customer did not turn the head as Rokh asked.
The customer never sees the decision, the score, the expected identity or the reason for a mismatch. At the end, the customer sees «اطلاعات شما ثبت شد» for every decision. If the customer used all attempts of a step, the customer sees that the attempts ended. Only you receive the result.
Supported phones and browsers#
| Phone | Browser |
|---|---|
| Android | Chrome |
| iPhone | Safari |
- The customer page needs the camera. During the declaration step, it also needs the microphone.
- The browser asks the customer for permission to use the camera and the microphone. If the customer refuses, the page tells the customer how to give the permission.
- A computer with a camera can also open the link. But Rokh designed the steps for a phone.
Network rules#
- If
flow_policy.network.ip_countryisiran_only, a customer with a non-Iranian IP address sees a message at the start. The message tells the customer to turn off a VPN and open the page again. - In all other cases, the network does not stop the customer. Rokh records the network observations for you.
The link of a customer#
- Give each customer their own link. Do not give one link to two persons.
- The link contains a secret token. Anybody with the link can do the steps.
- If you think that a wrong person has the link, revoke the request. Then reissue it.