Project

General

Profile

Sequence Diagram » History » Version 3

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