Bank Account » History » Version 2
prin methirattanasophon, 02/20/2026 03:13 AM
| 1 | 1 | prin methirattanasophon | # Bank Account |
|---|---|---|---|
| 2 | |||
| 3 | Description: This page lets users add a primary bank account and an optional secondary account, with localized bank options, validation, and saved progress prefill |
||
| 4 | |||
| 5 | Page Route: /onboarding/bank |
||
| 6 | |||
| 7 | Data Source: |
||
| 8 | - localStorage: member_id |
||
| 9 | - https://zvn-web-storage-dev.s3.ap-southeast-1.amazonaws.com/onboarding-web/constants/damas-banks.json |
||
| 10 | 2 | prin methirattanasophon | |
| 11 | Fields Requirements |
||
| 12 | |||
| 13 | |field|type|description|mandatory| |
||
| 14 | |:--|:--|:--|:--| |
||
| 15 | |bank name|dropdown|value of bank_name|Y| |
||
| 16 | |account number|number|bank account number. minimum 10 digits|Y| |
||
| 17 | |switch button|tab|hide \ display second bank form|Y| |
||
| 18 | |second bank name|dropdown||N| |
||
| 19 | |second account number|number|bank account number. minimum 10 digits|N| |
||
| 20 | |||
| 21 | Workflow: |
||
| 22 | |||
| 23 | <img style="width: 316px;" src="clipboard-202602201001-gqndv.png"><br> |
||
| 24 | |||
| 25 | --- |
||
| 26 | |||
| 27 | System Integration |
||
| 28 | |||
| 29 | Objective: To save user bank account inforamtion |
||
| 30 | |||
| 31 | API: |
||
| 32 | |||
| 33 | - Method: POST |
||
| 34 | - Endpoint: /bank |
||
| 35 | |||
| 36 | Request Body: |
||
| 37 | |||
| 38 | |key|type|value| |
||
| 39 | |:--|:--|:--| |
||
| 40 | |member_id|string|member_id| |
||
| 41 | |banks|Array[Bank]|array of Bank object| |
||
| 42 | |version|string|version of localizetion bank| |
||
| 43 | |step|int|page index| |
||
| 44 | |||
| 45 | |||
| 46 | Bank Object: |
||
| 47 | |||
| 48 | |key|type|value| |
||
| 49 | |:--|:--|:--| |
||
| 50 | |type|number|1= primary, 2= secondary| |
||
| 51 | |bank_name|string|bank_code| |
||
| 52 | |branch_name|string\|null|| |
||
| 53 | |account_number|string|bank account number| |
||
| 54 | |is_default|boolean|true= primary, false= secondary| |