Project

General

Profile

Actions

ID card verification

  1. User Interface

Description: User interface for ID card verification with form validation.

Page Route: /onboarding/idcard

Data Source:

  • localStorage -> member id
  • fetch from API -> prefill data

Fields Input

field type mandatory
National ID Card Number int 13 digits of number. last digit is calculate by Thai citizen ID formula Y
Date of Birth Date select from calendar Y
Laser Code string 12 characters. 2 english alphabats follow by 10 digits number Y
Expiration Date Date select from calendar. the expiration date must be at least 7 days from the present Y
Martial Status string select from value "single"|"married"|"divorced" Y

Workflow:


  1. System Integration

2.1 Prefill user data

Objective: To retrieve user latest submit form data

API:

  • Endpoint: /customer/pre-idcard
  • Mehthod: GET
  • Data: Query params
...?reference_id=${member_id}

Response:

Key Value
reference_id string
member_id string
date_of_birth string
id_card string
expire_date string

2.2 Form Submission

Objective: To save user data

API:

  • Endpoint: /customer/idcard
  • Mehthod: POST

Request Body:

Key Type Value
member_id string uuid
date_of_birth string date string
status int 1-single, 2-married, 3-devoiced
id_card string
laser_code string
expire_date string date string
step int page index

Response:

Key Type Value
reference_id string uuid
member_id string uuid
date_of_birth string date string
id_card string
expire_date string date string

Updated by prin methirattanasophon about 2 months ago · 2 revisions