Project

General

Profile

Sequence Diagram » History » Version 4

pasin sadsara, 03/04/2026 01:24 AM

1 1 karnake ruengchaicharnkij
# Sequence Diagram
2 2 pasin sadsara
3
There are the following API:
4
5
Client onboarding
6
Admin approve
7
8
Diagram
9
10
![](Onboarding.png)
11
12
```
13
title onboarding
14
15 4 pasin sadsara
title onboarding
16
17 2 pasin sadsara
participant "customer" as cs
18
participant "admin" as a
19
participant "frontend" as fe
20
participant "backend" as be
21
database "database" as db
22
participant "s3" as s3
23
participant  "appman" as am
24
participant  "DAP" as dp
25 1 karnake ruengchaicharnkij
26 4 pasin sadsara
27 2 pasin sadsara
group client onbaording
28
 group PAGE:{URL}/authentication/signup/type
29
cs -> fe: click select invester type
30
fe-->cs:
31
end
32
group PAGE:{URL}:/authentication/signup/addindividualaccount
33
 cs->fe: filled customer infomation
34
cs->fe:Cilck next form
35
fe->be: [POST]/api/v1/individual/ico/precreate
36
be->be: check dulipcate email mobile citizenID
37
be->be: create registerID
38
be<->db:save
39
be-->fe: registerID
40
fe->be: init appman
41
be<->am: init appman
42
be-->fe: appman url
43
fe-->cs: redirect to appman
44
end
45
46
group APPMAN Service
47
cs->am: ID Card liveness ocr
48
am-->fe: 
49
fe-->cs: redirect 
50
end
51
52
group PAGE {URL}:/authentication/signup/backCardwebcaminstructions
53
fe->be: [POST]/api/v1/appman/result
54
be<->am: Get IDCard liveness ocr result
55 1 karnake ruengchaicharnkij
be<->db: save
56 3 pasin sadsara
be<->am: check pep
57 2 pasin sadsara
be<->dp: check dopa
58
be<->dp: check amlo
59
be<->dp: check led
60
be<->db : save
61
be-->fe : registerID
62
63
cs->fe : upload backID Card
64
fe->be:[POST]/upload/onboarding
65
be<->db:save
66
be<->s3:upload
67
be-->fe:
68
fe-->cs:redirect
69
end
70
71
72
group PAGE{URL}:/authentication/signup/basicinfo
73
cs->fe: filled address occupation banks
74
cs->fe:Cilck next form
75
fe->be:[POST]/api/v1/individual/ico/postcreate
76
be->be:create risk score
77
be<->db:save
78
be-->fe:
79
fe-->cs:redirect
80
end
81
group PAGE{URL}:/authentication/signup/suittestfatca
82
cs->fe:filled suitetest fatca
83
cs->fe:Cilck next form
84
fe->be: [POST]/api/v1/suitetest/ico/result/individual/save
85
be<->db:save
86
be -->fe:
87
fe-->cs: redirect
88
end
89
group PAGE{URL}:/authentication/signup/otpemailconfirm
90
cs->fe: verify otp
91 1 karnake ruengchaicharnkij
fe->be:[POST]/api/v1/user/verify/mobile
92 2 pasin sadsara
be<->db:save
93 4 pasin sadsara
be<->otp: send OTP
94 2 pasin sadsara
be-->fe:
95
fe-->cs:
96 4 pasin sadsara
otp-->cs: OTP
97 2 pasin sadsara
cs->fe: filed OTP
98
cs -> fe: confirm
99
fe->be:[POST]/api/v1/user/verify/mobile/check
100
be<->db: get
101
be->be: check otp
102
be-->fe:
103
fe-->cs:
104
cs-> fe: verify email 
105
fe->be: [POST]/api/v1/user/verify/email
106
be<->db: save
107
be<->email:
108
email-->cs: send email
109
be-->fe:
110
fe-->cs:[URL]/authentication/signup/emailconfirmsucess
111
end
112
113
group Confrim email
114
cs->email: confirm email
115
email-->fe: 
116
fe->be: [POST]/api/v1/user/verify/email/check
117
be-->fe:
118
fe-->cs:[URL]/authentication/signup/identityverification
119
end
120
group ThaiD :{URL}/authentication/signup/identityverification
121
cs->fe: Cilck Select THAID
122
fe-->cs:
123
cs->fe:click do thaiD
124
fe->be:[POST]/api/v1/thaid/initial
125
be<->db:save
126
be->fe: dap url
127
fe-->cs: redirect to dap\n
128
cs->thaiD : verify
129
dp<->thaiD:
130
dp ->be: user data
131
be<->db:save
132
be->dp:
133
dp-->fe: \n
134
fe-->cs:[URL]/authentication/thaid/success
135
136
dp-->thaiD:
137
138
139
end 
140
end
141
142
group Admin
143
144
  group maker
145
a->fe: [URL]/create-job/change-individual-account/view
146
fe->be:[POST]/api/v1/individual/list
147
be<->db: get data
148
be-->fe:
149
fe-->a:
150
a->fe: bank verify
151
fe->be: upload [POST]/api/v1/admin/upload/onboarding
152
be<->db:save
153
be<->s3: upload
154
be-->fe:
155
a->fe: Select approve/reject/blacklist
156
fe->be:[POST]/api/v1/individual/approveocr
157
be<->db:update status
158
be-->fe:
159
fe-->a:
160
  end
161
alt maker Approved
162
  group checker
163
    a->fe:[URL]/todo-list/individual-account-opening
164
fe->be:[POST]/api/v1/individual/list/pending
165
be<->db: get
166
be-->fe:
167
fe-->a:
168
a->fe: approve/reject
169
fe->be:[POST]/api/v1/user/individual/approve
170
be<->db: update status
171
alt approve And risk score is medium
172
173
be->be: create account
174
be<->db:create
175
be<->email:send email
176
email-->cs: account/password
177
178
end
179
be-->fe:
180
fe-->a:
181
end
182
group Approver
183
184
 a->fe:[URL]/todo-list/individual-account-opening
185
fe->be:[POST]/api/v1/individual/list/pending
186
be<->db: get
187
be-->fe:
188
fe-->a:
189
a->fe: approve/reject
190
fe->be:[POST]/api/v1/user/individual/approve
191
be<->db: update status
192
alt approve
193
  be->be: create account
194
be<->db:create
195
be<->email:send email
196
email-->cs: account/password
197
end
198
be-->fe:
199
fe-->a:
200
end
201
end
202 1 karnake ruengchaicharnkij
end
203 3 pasin sadsara
204 2 pasin sadsara
205
```