Onboarding API Spec » History » Version 13
Ryan Supawarapong, 02/19/2026 06:03 AM
| 1 | 1 | Ryan Supawarapong | # Onboarding API Spec |
|---|---|---|---|
| 2 | |||
| 3 | 13 | Ryan Supawarapong | THis will use [[Response_Specification]] as the baseline response body for the payload. |
| 4 | |||
| 5 | 1 | Ryan Supawarapong | **Table of content** |
| 6 | - [Fullname](#Fullname) |
||
| 7 | - [Verify](#Verify) |
||
| 8 | 7 | Ryan Supawarapong | - [Knowledge Test](#Knowledge-Test) |
| 9 | 5 | Ryan Supawarapong | - [Address](#Address) |
| 10 | 1 | Ryan Supawarapong | |
| 11 | ## Fullname |
||
| 12 | |||
| 13 | 3 | Ryan Supawarapong | |
| 14 | 1 | Ryan Supawarapong | | Type | Value | |
| 15 | | --------| ---- | |
||
| 16 | 4 | Ryan Supawarapong | | API Path| `/onboarding/v1/fullname` | |
| 17 | | Request Type | `POST` | |
||
| 18 | | Content-Type | `application/json` | |
||
| 19 | 1 | Ryan Supawarapong | |
| 20 | 4 | Ryan Supawarapong | ### Request Body |
| 21 | |||
| 22 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 23 | |-----|------|---------|----------| |
||
| 24 | | `title` | string | `"Mr."` | yes | |
||
| 25 | | `thName` | string | `"สมชาย"` | yes | |
||
| 26 | | `thMiddlename` | string | `"ใจดี"` | no | |
||
| 27 | | `thSurname` | string | `"รักดี"` | yes | |
||
| 28 | | `enName` | string | `"Somchai"` | yes | |
||
| 29 | | `enMiddlename` | string | `"Jaidee"` | no | |
||
| 30 | | `enSurname` | string | `"Rakdee"` | yes | |
||
| 31 | | `email` | string | `"somchai@example.com"` | yes | |
||
| 32 | | `mobile` | string | `"0812345678"` | yes | |
||
| 33 | | `citizenship` | integer | `764` | yes | |
||
| 34 | 4 | Ryan Supawarapong | |
| 35 | 8 | Ryan Supawarapong | ### response body |
| 36 | 1 | Ryan Supawarapong | |
| 37 | 8 | Ryan Supawarapong | | Key | Type | example | Required | |
| 38 | |---- |-------| ------- | -------- | |
||
| 39 | | `status` | string | "success" | yes | |
||
| 40 | | `xid` | string | "c4336914-d359-4ca7-ba0f-edc51b9d27ee" | yes | |
||
| 41 | | `data` | null | null | no | |
||
| 42 | 4 | Ryan Supawarapong | |
| 43 | ##### Error Response (400) |
||
| 44 | |||
| 45 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 46 | |-----|------|---------|----------| |
||
| 47 | 1 | Ryan Supawarapong | | error | string | "duplicate email, mobile" | yes | |
| 48 | |||
| 49 | ### Diagram |
||
| 50 | |||
| 51 | <img style="width: 324px;" src="clipboard-202602181537-fdab7.png"><br> |
||
| 52 | |||
| 53 | ## Verify |
||
| 54 | |||
| 55 | | Type | Value | |
||
| 56 | 11 | Ryan Supawarapong | | --------| ------ | |
| 57 | | API Path| /onboarding/v1/verify/init | |
||
| 58 | 3 | Ryan Supawarapong | | Request Type | POST | |
| 59 | |||
| 60 | |||
| 61 | 1 | Ryan Supawarapong | ### Request Body |
| 62 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 63 | |-----|------|---------|----------| |
||
| 64 | | `registerId` | string | `"c4336914-d359-4ca7-ba0f-edc51b9d27ee"` | yes | |
||
| 65 | | `email` | string | `"user@example.com"` | no | |
||
| 66 | | `mobile` | string | `"081234567890"` | no | |
||
| 67 | | `referenceCode` | string | `"REF123456"` | no | |
||
| 68 | | `otp` | string | `"123456"` | no | |
||
| 69 | | `isMobileVerify` | bool | `true` | no | |
||
| 70 | | `isEmailVerify` | bool | `false` | no | |
||
| 71 | | `ip` | string | `"203.0.113.10"` | no | |
||
| 72 | 1 | Ryan Supawarapong | |
| 73 | |||
| 74 | 8 | Ryan Supawarapong | ### Example response body |
| 75 | |||
| 76 | 12 | Ryan Supawarapong | |
| 77 | |||
| 78 | 1 | Ryan Supawarapong | ##### Error Response (400) |
| 79 | |||
| 80 | 8 | Ryan Supawarapong | ### Diagram |
| 81 | |||
| 82 | 1 | Ryan Supawarapong | |
| 83 | ## Address |
||
| 84 | 8 | Ryan Supawarapong | |
| 85 | 9 | Ryan Supawarapong | | Type | Value | |
| 86 | 11 | Ryan Supawarapong | | --------| ------ | |
| 87 | 9 | Ryan Supawarapong | | API Path| /onboarding/v1/TBA | |
| 88 | 10 | Ryan Supawarapong | | Request Type | TBA | |
| 89 | 5 | Ryan Supawarapong | |
| 90 | ### Request Body |
||
| 91 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 92 | |-----|------|---------|----------| |
||
| 93 | 1 | Ryan Supawarapong | |
| 94 | ### Example response body |
||
| 95 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 96 | |-----|------|---------|----------| |
||
| 97 | 1 | Ryan Supawarapong | |
| 98 | 8 | Ryan Supawarapong | ##### Error Response (400) |
| 99 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 100 | |-----|------|---------|----------| |
||
| 101 | 8 | Ryan Supawarapong | |
| 102 | ### Diagram |
||
| 103 | 1 | Ryan Supawarapong | |
| 104 | |||
| 105 | 8 | Ryan Supawarapong | ## Knowledge Test |
| 106 | |||
| 107 | 9 | Ryan Supawarapong | | Type | Value | |
| 108 | 1 | Ryan Supawarapong | | --------| ---- | |
| 109 | 8 | Ryan Supawarapong | | API Path| /onboarding/v1/TBA | |
| 110 | 10 | Ryan Supawarapong | | Request Type | TBA | |
| 111 | 5 | Ryan Supawarapong | |
| 112 | 1 | Ryan Supawarapong | ### Request Body |
| 113 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 114 | |-----|------|---------|----------| |
||
| 115 | 1 | Ryan Supawarapong | |
| 116 | ### Example response body |
||
| 117 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 118 | |-----|------|---------|----------| |
||
| 119 | 8 | Ryan Supawarapong | |
| 120 | ##### Error Response (400) |
||
| 121 | 11 | Ryan Supawarapong | | Key | Type | Example | Required | |
| 122 | |-----|------|---------|----------| |
||
| 123 | 9 | Ryan Supawarapong | |
| 124 | ### Diagram |