@gofynd/fdk-client-javascript 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/.github/workflows/on_create_release.yml +23 -0
  2. package/.github/workflows/on_merge_main.yml +38 -0
  3. package/.github/workflows/on_pull_request.yml +35 -0
  4. package/.prettierrc +5 -0
  5. package/LICENSE +21 -0
  6. package/README.md +118 -0
  7. package/application.d.ts +3 -0
  8. package/application.js +6 -0
  9. package/common.d.ts +4 -0
  10. package/common.js +9 -0
  11. package/documentation/application/CART.md +7290 -0
  12. package/documentation/application/CATALOG.md +9570 -0
  13. package/documentation/application/COMMON.md +448 -0
  14. package/documentation/application/COMMUNICATION.md +463 -0
  15. package/documentation/application/CONFIGURATION.md +2902 -0
  16. package/documentation/application/CONTENT.md +3350 -0
  17. package/documentation/application/FILESTORAGE.md +491 -0
  18. package/documentation/application/LEAD.md +1891 -0
  19. package/documentation/application/LOGISTIC.md +439 -0
  20. package/documentation/application/ORDER.md +3428 -0
  21. package/documentation/application/PAYMENT.md +5035 -0
  22. package/documentation/application/POSCART.md +7889 -0
  23. package/documentation/application/README.md +21 -0
  24. package/documentation/application/REWARDS.md +714 -0
  25. package/documentation/application/SHARE.md +729 -0
  26. package/documentation/application/THEME.md +5796 -0
  27. package/documentation/application/USER.md +4326 -0
  28. package/documentation/platform/ANALYTICS.md +1150 -0
  29. package/documentation/platform/AUDITTRAIL.md +572 -0
  30. package/documentation/platform/BILLING.md +2396 -0
  31. package/documentation/platform/CART.md +5539 -0
  32. package/documentation/platform/CATALOG.md +21624 -0
  33. package/documentation/platform/COMMON.md +448 -0
  34. package/documentation/platform/COMMUNICATION.md +5714 -0
  35. package/documentation/platform/COMPANYPROFILE.md +2141 -0
  36. package/documentation/platform/CONFIGURATION.md +7335 -0
  37. package/documentation/platform/CONTENT.md +8989 -0
  38. package/documentation/platform/DISCOUNT.md +773 -0
  39. package/documentation/platform/FILESTORAGE.md +994 -0
  40. package/documentation/platform/INVENTORY.md +1775 -0
  41. package/documentation/platform/LEAD.md +4736 -0
  42. package/documentation/platform/ORDER.md +3764 -0
  43. package/documentation/platform/PARTNER.md +216 -0
  44. package/documentation/platform/PAYMENT.md +3444 -0
  45. package/documentation/platform/README.md +27 -0
  46. package/documentation/platform/REWARDS.md +871 -0
  47. package/documentation/platform/SHARE.md +602 -0
  48. package/documentation/platform/THEME.md +35725 -0
  49. package/documentation/platform/USER.md +2305 -0
  50. package/documentation/platform/WEBHOOK.md +587 -0
  51. package/documentation/public/CONFIGURATION.md +448 -0
  52. package/documentation/public/INVENTORY.md +686 -0
  53. package/documentation/public/WEBHOOK.md +348 -0
  54. package/index.d.ts +10 -0
  55. package/index.js +18 -0
  56. package/jest.config.d.ts +4 -0
  57. package/jest.config.js +6 -0
  58. package/package.json +35 -0
  59. package/platform.d.ts +3 -0
  60. package/platform.js +6 -0
  61. package/public.d.ts +3 -0
  62. package/public.js +6 -0
  63. package/sdk/application/ApplicationAPIClient.d.ts +11 -0
  64. package/sdk/application/ApplicationAPIClient.js +44 -0
  65. package/sdk/application/ApplicationClient.d.ts +40 -0
  66. package/sdk/application/ApplicationClient.js +84 -0
  67. package/sdk/application/ApplicationConfig.d.ts +19 -0
  68. package/sdk/application/ApplicationConfig.js +55 -0
  69. package/sdk/application/ApplicationModels.d.ts +826 -0
  70. package/sdk/application/ApplicationModels.js +10474 -0
  71. package/sdk/application/client/CartApplicationClient.d.ts +432 -0
  72. package/sdk/application/client/CartApplicationClient.js +1066 -0
  73. package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
  74. package/sdk/application/client/CatalogApplicationClient.js +1629 -0
  75. package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
  76. package/sdk/application/client/CommonApplicationClient.js +105 -0
  77. package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
  78. package/sdk/application/client/CommunicationApplicationClient.js +131 -0
  79. package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
  80. package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
  81. package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
  82. package/sdk/application/client/ContentApplicationClient.js +785 -0
  83. package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
  84. package/sdk/application/client/FileStorageApplicationClient.js +214 -0
  85. package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
  86. package/sdk/application/client/LeadApplicationClient.js +264 -0
  87. package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
  88. package/sdk/application/client/LogisticApplicationClient.js +128 -0
  89. package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
  90. package/sdk/application/client/OrderApplicationClient.js +479 -0
  91. package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
  92. package/sdk/application/client/PaymentApplicationClient.js +1378 -0
  93. package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
  94. package/sdk/application/client/PosCartApplicationClient.js +1123 -0
  95. package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
  96. package/sdk/application/client/RewardsApplicationClient.js +293 -0
  97. package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
  98. package/sdk/application/client/ShareApplicationClient.js +268 -0
  99. package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
  100. package/sdk/application/client/ThemeApplicationClient.js +161 -0
  101. package/sdk/application/client/UserApplicationClient.d.ts +446 -0
  102. package/sdk/application/client/UserApplicationClient.js +1275 -0
  103. package/sdk/application/constructUrl.d.ts +5 -0
  104. package/sdk/application/constructUrl.js +13 -0
  105. package/sdk/application/index.d.ts +2 -0
  106. package/sdk/application/index.js +4 -0
  107. package/sdk/application/models/CartValidator.d.ts +29 -0
  108. package/sdk/application/models/CartValidator.js +223 -0
  109. package/sdk/application/models/CatalogValidator.d.ts +33 -0
  110. package/sdk/application/models/CatalogValidator.js +233 -0
  111. package/sdk/application/models/CommonValidator.d.ts +5 -0
  112. package/sdk/application/models/CommonValidator.js +18 -0
  113. package/sdk/application/models/CommunicationValidator.d.ts +6 -0
  114. package/sdk/application/models/CommunicationValidator.js +20 -0
  115. package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
  116. package/sdk/application/models/ConfigurationValidator.js +88 -0
  117. package/sdk/application/models/ContentValidator.d.ts +22 -0
  118. package/sdk/application/models/ContentValidator.js +106 -0
  119. package/sdk/application/models/FileStorageValidator.d.ts +6 -0
  120. package/sdk/application/models/FileStorageValidator.js +24 -0
  121. package/sdk/application/models/LeadValidator.d.ts +10 -0
  122. package/sdk/application/models/LeadValidator.js +48 -0
  123. package/sdk/application/models/LogisticValidator.d.ts +6 -0
  124. package/sdk/application/models/LogisticValidator.js +22 -0
  125. package/sdk/application/models/OrderValidator.d.ts +15 -0
  126. package/sdk/application/models/OrderValidator.js +87 -0
  127. package/sdk/application/models/PaymentValidator.d.ts +40 -0
  128. package/sdk/application/models/PaymentValidator.js +235 -0
  129. package/sdk/application/models/PosCartValidator.d.ts +30 -0
  130. package/sdk/application/models/PosCartValidator.js +232 -0
  131. package/sdk/application/models/RewardsValidator.d.ts +10 -0
  132. package/sdk/application/models/RewardsValidator.js +43 -0
  133. package/sdk/application/models/ShareValidator.d.ts +10 -0
  134. package/sdk/application/models/ShareValidator.js +44 -0
  135. package/sdk/application/models/ThemeValidator.d.ts +7 -0
  136. package/sdk/application/models/ThemeValidator.js +27 -0
  137. package/sdk/application/models/UserValidator.d.ts +38 -0
  138. package/sdk/application/models/UserValidator.js +233 -0
  139. package/sdk/common/AxiosHelper.d.ts +1 -0
  140. package/sdk/common/AxiosHelper.js +141 -0
  141. package/sdk/common/Constant.d.ts +294 -0
  142. package/sdk/common/Constant.js +332 -0
  143. package/sdk/common/FDKError.d.ts +26 -0
  144. package/sdk/common/FDKError.js +51 -0
  145. package/sdk/common/Logger.d.ts +2 -0
  146. package/sdk/common/Logger.js +85 -0
  147. package/sdk/common/Paginator.d.ts +16 -0
  148. package/sdk/common/Paginator.js +26 -0
  149. package/sdk/common/RequestSigner.d.ts +1 -0
  150. package/sdk/common/RequestSigner.js +306 -0
  151. package/sdk/common/Utility.d.ts +9 -0
  152. package/sdk/common/Utility.js +86 -0
  153. package/sdk/common/utils.d.ts +14 -0
  154. package/sdk/common/utils.js +165 -0
  155. package/sdk/platform/OAuthClient.d.ts +26 -0
  156. package/sdk/platform/OAuthClient.js +221 -0
  157. package/sdk/platform/PlatformAPIClient.d.ts +12 -0
  158. package/sdk/platform/PlatformAPIClient.js +43 -0
  159. package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
  160. package/sdk/platform/PlatformApplicationClient.js +23185 -0
  161. package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
  162. package/sdk/platform/PlatformApplicationModels.js +21262 -0
  163. package/sdk/platform/PlatformClient.d.ts +9535 -0
  164. package/sdk/platform/PlatformClient.js +12336 -0
  165. package/sdk/platform/PlatformConfig.d.ts +29 -0
  166. package/sdk/platform/PlatformConfig.js +36 -0
  167. package/sdk/platform/PlatformModels.d.ts +1396 -0
  168. package/sdk/platform/PlatformModels.js +19222 -0
  169. package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
  170. package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
  171. package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
  172. package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
  173. package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
  174. package/sdk/platform/client/BillingPlatformClient.js +381 -0
  175. package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
  176. package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
  177. package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
  178. package/sdk/platform/client/CommonPlatformClient.js +84 -0
  179. package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
  180. package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
  181. package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
  182. package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
  183. package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
  184. package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
  185. package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
  186. package/sdk/platform/client/DiscountPlatformClient.js +364 -0
  187. package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
  188. package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
  189. package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
  190. package/sdk/platform/client/InventoryPlatformClient.js +409 -0
  191. package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
  192. package/sdk/platform/client/LeadPlatformClient.js +439 -0
  193. package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
  194. package/sdk/platform/client/OrderPlatformClient.js +521 -0
  195. package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
  196. package/sdk/platform/client/PaymentPlatformClient.js +331 -0
  197. package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
  198. package/sdk/platform/client/WebhookPlatformClient.js +207 -0
  199. package/sdk/platform/index.d.ts +2 -0
  200. package/sdk/platform/index.js +4 -0
  201. package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
  202. package/sdk/platform/models/AnalyticsValidator.js +36 -0
  203. package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
  204. package/sdk/platform/models/AuditTrailValidator.js +26 -0
  205. package/sdk/platform/models/BillingValidator.d.ts +15 -0
  206. package/sdk/platform/models/BillingValidator.js +72 -0
  207. package/sdk/platform/models/CartValidator.d.ts +0 -0
  208. package/sdk/platform/models/CartValidator.js +0 -0
  209. package/sdk/platform/models/CatalogValidator.d.ts +74 -0
  210. package/sdk/platform/models/CatalogValidator.js +484 -0
  211. package/sdk/platform/models/CommonValidator.d.ts +5 -0
  212. package/sdk/platform/models/CommonValidator.js +18 -0
  213. package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
  214. package/sdk/platform/models/CommunicationValidator.js +11 -0
  215. package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
  216. package/sdk/platform/models/CompanyProfileValidator.js +93 -0
  217. package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
  218. package/sdk/platform/models/ConfigurationValidator.js +134 -0
  219. package/sdk/platform/models/ContentValidator.d.ts +0 -0
  220. package/sdk/platform/models/ContentValidator.js +0 -0
  221. package/sdk/platform/models/DiscountValidator.d.ts +13 -0
  222. package/sdk/platform/models/DiscountValidator.js +75 -0
  223. package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
  224. package/sdk/platform/models/FileStorageValidator.js +44 -0
  225. package/sdk/platform/models/InventoryValidator.d.ts +15 -0
  226. package/sdk/platform/models/InventoryValidator.js +81 -0
  227. package/sdk/platform/models/LeadValidator.d.ts +14 -0
  228. package/sdk/platform/models/LeadValidator.js +78 -0
  229. package/sdk/platform/models/OrderValidator.d.ts +14 -0
  230. package/sdk/platform/models/OrderValidator.js +110 -0
  231. package/sdk/platform/models/PartnerValidator.d.ts +0 -0
  232. package/sdk/platform/models/PartnerValidator.js +0 -0
  233. package/sdk/platform/models/PaymentValidator.d.ts +13 -0
  234. package/sdk/platform/models/PaymentValidator.js +65 -0
  235. package/sdk/platform/models/RewardsValidator.d.ts +0 -0
  236. package/sdk/platform/models/RewardsValidator.js +0 -0
  237. package/sdk/platform/models/ShareValidator.d.ts +0 -0
  238. package/sdk/platform/models/ShareValidator.js +0 -0
  239. package/sdk/platform/models/ThemeValidator.d.ts +0 -0
  240. package/sdk/platform/models/ThemeValidator.js +0 -0
  241. package/sdk/platform/models/UserValidator.d.ts +0 -0
  242. package/sdk/platform/models/UserValidator.js +0 -0
  243. package/sdk/platform/models/WebhookValidator.d.ts +9 -0
  244. package/sdk/platform/models/WebhookValidator.js +42 -0
  245. package/sdk/public/PublicAPIClient.d.ts +11 -0
  246. package/sdk/public/PublicAPIClient.js +38 -0
  247. package/sdk/public/PublicClient.d.ts +12 -0
  248. package/sdk/public/PublicClient.js +24 -0
  249. package/sdk/public/PublicConfig.d.ts +10 -0
  250. package/sdk/public/PublicConfig.js +12 -0
  251. package/sdk/public/PublicModels.d.ts +50 -0
  252. package/sdk/public/PublicModels.js +712 -0
  253. package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
  254. package/sdk/public/client/ConfigurationPublicClient.js +102 -0
  255. package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
  256. package/sdk/public/client/InventoryPublicClient.js +239 -0
  257. package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
  258. package/sdk/public/client/WebhookPublicClient.js +92 -0
  259. package/sdk/public/constructUrl.d.ts +5 -0
  260. package/sdk/public/constructUrl.js +13 -0
  261. package/sdk/public/index.d.ts +2 -0
  262. package/sdk/public/index.js +4 -0
  263. package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
  264. package/sdk/public/models/ConfigurationValidator.js +18 -0
  265. package/sdk/public/models/InventoryValidator.d.ts +9 -0
  266. package/sdk/public/models/InventoryValidator.js +43 -0
  267. package/sdk/public/models/WebhookValidator.d.ts +5 -0
  268. package/sdk/public/models/WebhookValidator.js +14 -0
  269. package/tests/application/catalog.spec.js +47 -0
  270. package/tests/common/action-url.spec.js +35 -0
  271. package/tests/common/schema/action-url.json +163 -0
  272. package/tests/common/schema/url-action.json +667 -0
  273. package/tests/common/url-action.spec.js +48 -0
  274. package/tests/helpers/cookie.helper.js +31 -0
  275. package/tests/helpers/oauth.helper.js +43 -0
  276. package/tests/platform/catalog.spec.js +49 -0
  277. package/tests/public/location.spec.js +39 -0
@@ -0,0 +1,4326 @@
1
+
2
+
3
+
4
+
5
+ ##### [Back to Application docs](./README.md)
6
+
7
+ ## User Methods
8
+ Authentication Service
9
+ * [loginWithFacebook](#loginwithfacebook)
10
+ * [loginWithGoogle](#loginwithgoogle)
11
+ * [loginWithGoogleAndroid](#loginwithgoogleandroid)
12
+ * [loginWithGoogleIOS](#loginwithgoogleios)
13
+ * [loginWithAppleIOS](#loginwithappleios)
14
+ * [loginWithOTP](#loginwithotp)
15
+ * [loginWithEmailAndPassword](#loginwithemailandpassword)
16
+ * [sendResetPasswordEmail](#sendresetpasswordemail)
17
+ * [sendResetPasswordMobile](#sendresetpasswordmobile)
18
+ * [forgotPassword](#forgotpassword)
19
+ * [sendResetToken](#sendresettoken)
20
+ * [loginWithToken](#loginwithtoken)
21
+ * [registerWithForm](#registerwithform)
22
+ * [verifyEmail](#verifyemail)
23
+ * [verifyMobile](#verifymobile)
24
+ * [hasPassword](#haspassword)
25
+ * [updatePassword](#updatepassword)
26
+ * [deleteUser](#deleteuser)
27
+ * [logout](#logout)
28
+ * [sendOTPOnMobile](#sendotponmobile)
29
+ * [verifyMobileOTP](#verifymobileotp)
30
+ * [sendOTPOnEmail](#sendotponemail)
31
+ * [verifyEmailOTP](#verifyemailotp)
32
+ * [getLoggedInUser](#getloggedinuser)
33
+ * [getListOfActiveSessions](#getlistofactivesessions)
34
+ * [getPlatformConfig](#getplatformconfig)
35
+ * [updateProfile](#updateprofile)
36
+ * [addMobileNumber](#addmobilenumber)
37
+ * [deleteMobileNumber](#deletemobilenumber)
38
+ * [setMobileNumberAsPrimary](#setmobilenumberasprimary)
39
+ * [sendVerificationLinkToMobile](#sendverificationlinktomobile)
40
+ * [addEmail](#addemail)
41
+ * [deleteEmail](#deleteemail)
42
+ * [setEmailAsPrimary](#setemailasprimary)
43
+ * [sendVerificationLinkToEmail](#sendverificationlinktoemail)
44
+
45
+
46
+
47
+ ## Methods with example and description
48
+
49
+
50
+ ### loginWithFacebook
51
+ Login or Register using Facebook
52
+
53
+
54
+
55
+ ```javascript
56
+ // Promise
57
+ const promise = user.loginWithFacebook({ body : value,
58
+ platform : value });
59
+
60
+ // Async/Await
61
+ const data = await user.loginWithFacebook({ body : value,
62
+ platform : value });
63
+ ```
64
+
65
+
66
+
67
+
68
+
69
+ | Argument | Type | Required | Description |
70
+ | --------- | ----- | -------- | ----------- |
71
+ | platform | string | no | ID of the application |
72
+ | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
73
+
74
+
75
+ Use this API to login or register using Facebook credentials.
76
+
77
+ *Returned Response:*
78
+
79
+
80
+
81
+
82
+ [AuthSuccess](#AuthSuccess)
83
+
84
+ Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
85
+
86
+
87
+
88
+
89
+ <details>
90
+ <summary><i>&nbsp; Examples:</i></summary>
91
+
92
+
93
+ <details>
94
+ <summary><i>&nbsp; Success</i></summary>
95
+
96
+ ```json
97
+ {
98
+ "value": {
99
+ "user_exists": false,
100
+ "user": {
101
+ "emails": [
102
+ {
103
+ "email": "www.akash24@gmail.com",
104
+ "verified": true,
105
+ "primary": true,
106
+ "active": true
107
+ }
108
+ ],
109
+ "phone_numbers": [],
110
+ "first_name": "Akash",
111
+ "last_name": "Mane",
112
+ "debug": {
113
+ "platform": "Fynd"
114
+ },
115
+ "active": true
116
+ },
117
+ "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
118
+ }
119
+ }
120
+ ```
121
+ </details>
122
+
123
+ </details>
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ ---
134
+
135
+
136
+ ### loginWithGoogle
137
+ Login or Register using Google
138
+
139
+
140
+
141
+ ```javascript
142
+ // Promise
143
+ const promise = user.loginWithGoogle({ body : value,
144
+ platform : value });
145
+
146
+ // Async/Await
147
+ const data = await user.loginWithGoogle({ body : value,
148
+ platform : value });
149
+ ```
150
+
151
+
152
+
153
+
154
+
155
+ | Argument | Type | Required | Description |
156
+ | --------- | ----- | -------- | ----------- |
157
+ | platform | string | no | ID of the application |
158
+ | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
159
+
160
+
161
+ Use this API to login or register using Google Account credentials.
162
+
163
+ *Returned Response:*
164
+
165
+
166
+
167
+
168
+ [AuthSuccess](#AuthSuccess)
169
+
170
+ Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
171
+
172
+
173
+
174
+
175
+ <details>
176
+ <summary><i>&nbsp; Examples:</i></summary>
177
+
178
+
179
+ <details>
180
+ <summary><i>&nbsp; Success</i></summary>
181
+
182
+ ```json
183
+ {
184
+ "value": {
185
+ "user_exists": false,
186
+ "user": {
187
+ "emails": [
188
+ {
189
+ "email": "www.akash24@gmail.com",
190
+ "verified": true,
191
+ "primary": true,
192
+ "active": true
193
+ }
194
+ ],
195
+ "phone_numbers": [],
196
+ "first_name": "Akash",
197
+ "last_name": "Mane",
198
+ "debug": {
199
+ "platform": "Fynd"
200
+ },
201
+ "active": true
202
+ },
203
+ "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
204
+ }
205
+ }
206
+ ```
207
+ </details>
208
+
209
+ </details>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ ---
220
+
221
+
222
+ ### loginWithGoogleAndroid
223
+ Login or Register using Google on Android
224
+
225
+
226
+
227
+ ```javascript
228
+ // Promise
229
+ const promise = user.loginWithGoogleAndroid({ body : value,
230
+ platform : value });
231
+
232
+ // Async/Await
233
+ const data = await user.loginWithGoogleAndroid({ body : value,
234
+ platform : value });
235
+ ```
236
+
237
+
238
+
239
+
240
+
241
+ | Argument | Type | Required | Description |
242
+ | --------- | ----- | -------- | ----------- |
243
+ | platform | string | no | ID of the application |
244
+ | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
245
+
246
+
247
+ Use this API to login or register in Android app using Google Account credentials.
248
+
249
+ *Returned Response:*
250
+
251
+
252
+
253
+
254
+ [AuthSuccess](#AuthSuccess)
255
+
256
+ Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
257
+
258
+
259
+
260
+
261
+ <details>
262
+ <summary><i>&nbsp; Examples:</i></summary>
263
+
264
+
265
+ <details>
266
+ <summary><i>&nbsp; Success</i></summary>
267
+
268
+ ```json
269
+ {
270
+ "value": {
271
+ "user_exists": false,
272
+ "user": {
273
+ "emails": [
274
+ {
275
+ "email": "www.akash24@gmail.com",
276
+ "verified": true,
277
+ "primary": true,
278
+ "active": true
279
+ }
280
+ ],
281
+ "phone_numbers": [],
282
+ "first_name": "Akash",
283
+ "last_name": "Mane",
284
+ "debug": {
285
+ "platform": "Fynd"
286
+ },
287
+ "active": true
288
+ },
289
+ "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
290
+ }
291
+ }
292
+ ```
293
+ </details>
294
+
295
+ </details>
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+ ---
306
+
307
+
308
+ ### loginWithGoogleIOS
309
+ Login or Register using Google on iOS
310
+
311
+
312
+
313
+ ```javascript
314
+ // Promise
315
+ const promise = user.loginWithGoogleIOS({ body : value,
316
+ platform : value });
317
+
318
+ // Async/Await
319
+ const data = await user.loginWithGoogleIOS({ body : value,
320
+ platform : value });
321
+ ```
322
+
323
+
324
+
325
+
326
+
327
+ | Argument | Type | Required | Description |
328
+ | --------- | ----- | -------- | ----------- |
329
+ | platform | string | no | ID of the application |
330
+ | body | [OAuthRequestSchema](#OAuthRequestSchema) | yes | Request body |
331
+
332
+
333
+ Use this API to login or register in iOS app using Google Account credentials.
334
+
335
+ *Returned Response:*
336
+
337
+
338
+
339
+
340
+ [AuthSuccess](#AuthSuccess)
341
+
342
+ Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
343
+
344
+
345
+
346
+
347
+ <details>
348
+ <summary><i>&nbsp; Examples:</i></summary>
349
+
350
+
351
+ <details>
352
+ <summary><i>&nbsp; Success</i></summary>
353
+
354
+ ```json
355
+ {
356
+ "value": {
357
+ "user_exists": false,
358
+ "user": {
359
+ "emails": [
360
+ {
361
+ "email": "www.akash24@gmail.com",
362
+ "verified": true,
363
+ "primary": true,
364
+ "active": true
365
+ }
366
+ ],
367
+ "phone_numbers": [],
368
+ "first_name": "Akash",
369
+ "last_name": "Mane",
370
+ "debug": {
371
+ "platform": "Fynd"
372
+ },
373
+ "active": true
374
+ },
375
+ "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
376
+ }
377
+ }
378
+ ```
379
+ </details>
380
+
381
+ </details>
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+ ---
392
+
393
+
394
+ ### loginWithAppleIOS
395
+ Login or Register using Apple on iOS
396
+
397
+
398
+
399
+ ```javascript
400
+ // Promise
401
+ const promise = user.loginWithAppleIOS({ body : value,
402
+ platform : value });
403
+
404
+ // Async/Await
405
+ const data = await user.loginWithAppleIOS({ body : value,
406
+ platform : value });
407
+ ```
408
+
409
+
410
+
411
+
412
+
413
+ | Argument | Type | Required | Description |
414
+ | --------- | ----- | -------- | ----------- |
415
+ | platform | string | no | ID of the application |
416
+ | body | [OAuthRequestAppleSchema](#OAuthRequestAppleSchema) | yes | Request body |
417
+
418
+
419
+ Use this API to login or register in iOS app using Apple Account credentials.
420
+
421
+ *Returned Response:*
422
+
423
+
424
+
425
+
426
+ [AuthSuccess](#AuthSuccess)
427
+
428
+ Success. Returns a JSON object with the user details. Check the example shown below or refer `AuthSuccess` for more details.
429
+
430
+
431
+
432
+
433
+ <details>
434
+ <summary><i>&nbsp; Examples:</i></summary>
435
+
436
+
437
+ <details>
438
+ <summary><i>&nbsp; Success</i></summary>
439
+
440
+ ```json
441
+ {
442
+ "value": {
443
+ "user_exists": false,
444
+ "user": {
445
+ "emails": [
446
+ {
447
+ "email": "www.akash24@gmail.com",
448
+ "verified": true,
449
+ "primary": true,
450
+ "active": true
451
+ }
452
+ ],
453
+ "phone_numbers": [],
454
+ "first_name": "Akash",
455
+ "last_name": "Mane",
456
+ "debug": {
457
+ "platform": "Fynd"
458
+ },
459
+ "active": true
460
+ },
461
+ "register_token": "d960c388-e286-43d9-b688-f6d1decc632d"
462
+ }
463
+ }
464
+ ```
465
+ </details>
466
+
467
+ </details>
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+ ---
478
+
479
+
480
+ ### loginWithOTP
481
+ Login or Register with OTP
482
+
483
+
484
+
485
+ ```javascript
486
+ // Promise
487
+ const promise = user.loginWithOTP({ body : value,
488
+ platform : value });
489
+
490
+ // Async/Await
491
+ const data = await user.loginWithOTP({ body : value,
492
+ platform : value });
493
+ ```
494
+
495
+
496
+
497
+
498
+
499
+ | Argument | Type | Required | Description |
500
+ | --------- | ----- | -------- | ----------- |
501
+ | platform | string | no | ID of the application |
502
+ | body | [SendOtpRequestSchema](#SendOtpRequestSchema) | yes | Request body |
503
+
504
+
505
+ Use this API to login or register with a One-time Password (OTP) sent via Email or SMS.
506
+
507
+ *Returned Response:*
508
+
509
+
510
+
511
+
512
+ [SendOtpResponse](#SendOtpResponse)
513
+
514
+ Success. Check the example shown below or refer `SendOtpResponse` for more details.
515
+
516
+
517
+
518
+
519
+ <details>
520
+ <summary><i>&nbsp; Examples:</i></summary>
521
+
522
+
523
+ <details>
524
+ <summary><i>&nbsp; Success</i></summary>
525
+
526
+ ```json
527
+ {
528
+ "value": {
529
+ "success": true,
530
+ "request_id": "01503005aeab87cbed93d40f46cc2749",
531
+ "message": "OTP sent",
532
+ "mobile": "8652523958",
533
+ "country_code": "91",
534
+ "resend_timer": 30,
535
+ "resendToken": "58e72ca0-66ae-11eb-98b1-77d61363826e"
536
+ }
537
+ }
538
+ ```
539
+ </details>
540
+
541
+ </details>
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+ ---
552
+
553
+
554
+ ### loginWithEmailAndPassword
555
+ Login or Register with password
556
+
557
+
558
+
559
+ ```javascript
560
+ // Promise
561
+ const promise = user.loginWithEmailAndPassword({ body : value });
562
+
563
+ // Async/Await
564
+ const data = await user.loginWithEmailAndPassword({ body : value });
565
+ ```
566
+
567
+
568
+
569
+
570
+
571
+ | Argument | Type | Required | Description |
572
+ | --------- | ----- | -------- | ----------- |
573
+ | body | [PasswordLoginRequestSchema](#PasswordLoginRequestSchema) | yes | Request body |
574
+
575
+
576
+ Use this API to login or register using an email address and password.
577
+
578
+ *Returned Response:*
579
+
580
+
581
+
582
+
583
+ [LoginSuccess](#LoginSuccess)
584
+
585
+ Success. Check the example shown below or refer `LoginSuccess` for more details.
586
+
587
+
588
+
589
+
590
+ <details>
591
+ <summary><i>&nbsp; Examples:</i></summary>
592
+
593
+
594
+ <details>
595
+ <summary><i>&nbsp; Success</i></summary>
596
+
597
+ ```json
598
+ {
599
+ "value": {
600
+ "user": {
601
+ "debug": {
602
+ "source": "deadlock",
603
+ "platform": "000000000000000000000001"
604
+ },
605
+ "gender": "male",
606
+ "account_type": "user",
607
+ "active": true,
608
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
609
+ "has_old_password_hash": false,
610
+ "_id": "5e68af49cfa09bf7233022f1",
611
+ "first_name": "Akash",
612
+ "last_name": "Mane",
613
+ "username": "akashmane_gofynd_com_10039",
614
+ "phone_numbers": [
615
+ {
616
+ "active": true,
617
+ "primary": true,
618
+ "verified": true,
619
+ "phone": "8652523958",
620
+ "country_code": 91
621
+ }
622
+ ],
623
+ "emails": [
624
+ {
625
+ "active": true,
626
+ "primary": true,
627
+ "verified": true,
628
+ "email": "akashmane@gofynd.com"
629
+ },
630
+ {
631
+ "active": true,
632
+ "primary": false,
633
+ "verified": true,
634
+ "email": "akashmane@fynd.com"
635
+ },
636
+ {
637
+ "active": true,
638
+ "primary": false,
639
+ "verified": true,
640
+ "email": "akashmane@uniket.store"
641
+ }
642
+ ],
643
+ "created_at": "2020-03-11T09:28:41.982Z",
644
+ "updated_at": "2021-02-04T10:10:44.981Z"
645
+ }
646
+ }
647
+ }
648
+ ```
649
+ </details>
650
+
651
+ </details>
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+ ---
662
+
663
+
664
+ ### sendResetPasswordEmail
665
+ Reset Password
666
+
667
+
668
+
669
+ ```javascript
670
+ // Promise
671
+ const promise = user.sendResetPasswordEmail({ body : value,
672
+ platform : value });
673
+
674
+ // Async/Await
675
+ const data = await user.sendResetPasswordEmail({ body : value,
676
+ platform : value });
677
+ ```
678
+
679
+
680
+
681
+
682
+
683
+ | Argument | Type | Required | Description |
684
+ | --------- | ----- | -------- | ----------- |
685
+ | platform | string | no | ID of the application |
686
+ | body | [SendResetPasswordEmailRequestSchema](#SendResetPasswordEmailRequestSchema) | yes | Request body |
687
+
688
+
689
+ Use this API to reset a password using the link sent on email.
690
+
691
+ *Returned Response:*
692
+
693
+
694
+
695
+
696
+ [ResetPasswordSuccess](#ResetPasswordSuccess)
697
+
698
+ Success. Check the example shown below or refer `ResetPasswordSuccess` for more details.
699
+
700
+
701
+
702
+
703
+ <details>
704
+ <summary><i>&nbsp; Example:</i></summary>
705
+
706
+ ```json
707
+ {
708
+ "status": "sent"
709
+ }
710
+ ```
711
+ </details>
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+ ---
722
+
723
+
724
+ ### sendResetPasswordMobile
725
+ Reset Password
726
+
727
+
728
+
729
+ ```javascript
730
+ // Promise
731
+ const promise = user.sendResetPasswordMobile({ body : value,
732
+ platform : value });
733
+
734
+ // Async/Await
735
+ const data = await user.sendResetPasswordMobile({ body : value,
736
+ platform : value });
737
+ ```
738
+
739
+
740
+
741
+
742
+
743
+ | Argument | Type | Required | Description |
744
+ | --------- | ----- | -------- | ----------- |
745
+ | platform | string | no | ID of the application |
746
+ | body | [SendResetPasswordMobileRequestSchema](#SendResetPasswordMobileRequestSchema) | yes | Request body |
747
+
748
+
749
+ Use this API to reset a password using the link sent on mobile.
750
+
751
+ *Returned Response:*
752
+
753
+
754
+
755
+
756
+ [ResetPasswordSuccess](#ResetPasswordSuccess)
757
+
758
+ Success. Check the example shown below or refer `ResetPasswordSuccess` for more details.
759
+
760
+
761
+
762
+
763
+ <details>
764
+ <summary><i>&nbsp; Example:</i></summary>
765
+
766
+ ```json
767
+ {
768
+ "status": "sent"
769
+ }
770
+ ```
771
+ </details>
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+ ---
782
+
783
+
784
+ ### forgotPassword
785
+ Forgot Password
786
+
787
+
788
+
789
+ ```javascript
790
+ // Promise
791
+ const promise = user.forgotPassword({ body : value });
792
+
793
+ // Async/Await
794
+ const data = await user.forgotPassword({ body : value });
795
+ ```
796
+
797
+
798
+
799
+
800
+
801
+ | Argument | Type | Required | Description |
802
+ | --------- | ----- | -------- | ----------- |
803
+ | body | [ForgotPasswordRequestSchema](#ForgotPasswordRequestSchema) | yes | Request body |
804
+
805
+
806
+ Use this API to reset a password using the code sent on email or SMS.
807
+
808
+ *Returned Response:*
809
+
810
+
811
+
812
+
813
+ [LoginSuccess](#LoginSuccess)
814
+
815
+ Success. Check the example shown below or refer `LoginSuccess` for more details.
816
+
817
+
818
+
819
+
820
+ <details>
821
+ <summary><i>&nbsp; Examples:</i></summary>
822
+
823
+
824
+ <details>
825
+ <summary><i>&nbsp; Success</i></summary>
826
+
827
+ ```json
828
+ {
829
+ "value": {
830
+ "user": {
831
+ "debug": {
832
+ "source": "deadlock",
833
+ "platform": "000000000000000000000001"
834
+ },
835
+ "gender": "male",
836
+ "account_type": "user",
837
+ "active": true,
838
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
839
+ "has_old_password_hash": false,
840
+ "_id": "5e68af49cfa09bf7233022f1",
841
+ "first_name": "Akash",
842
+ "last_name": "Mane",
843
+ "username": "akashmane_gofynd_com_10039",
844
+ "phone_numbers": [
845
+ {
846
+ "active": true,
847
+ "primary": true,
848
+ "verified": true,
849
+ "phone": "8652523958",
850
+ "country_code": 91
851
+ }
852
+ ],
853
+ "emails": [
854
+ {
855
+ "active": true,
856
+ "primary": true,
857
+ "verified": true,
858
+ "email": "akashmane@gofynd.com"
859
+ },
860
+ {
861
+ "active": true,
862
+ "primary": false,
863
+ "verified": true,
864
+ "email": "akashmane@fynd.com"
865
+ },
866
+ {
867
+ "active": true,
868
+ "primary": false,
869
+ "verified": true,
870
+ "email": "akashmane@uniket.store"
871
+ }
872
+ ],
873
+ "created_at": "2020-03-11T09:28:41.982Z",
874
+ "updated_at": "2021-02-04T10:10:44.981Z"
875
+ }
876
+ }
877
+ }
878
+ ```
879
+ </details>
880
+
881
+ </details>
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+ ---
892
+
893
+
894
+ ### sendResetToken
895
+ Reset Password using token
896
+
897
+
898
+
899
+ ```javascript
900
+ // Promise
901
+ const promise = user.sendResetToken({ body : value });
902
+
903
+ // Async/Await
904
+ const data = await user.sendResetToken({ body : value });
905
+ ```
906
+
907
+
908
+
909
+
910
+
911
+ | Argument | Type | Required | Description |
912
+ | --------- | ----- | -------- | ----------- |
913
+ | body | [CodeRequestBodySchema](#CodeRequestBodySchema) | yes | Request body |
914
+
915
+
916
+ Use this API to send code to reset password.
917
+
918
+ *Returned Response:*
919
+
920
+
921
+
922
+
923
+ [ResetPasswordSuccess](#ResetPasswordSuccess)
924
+
925
+ Success. Check the example shown below or refer `ResetPasswordSuccess` for more details.
926
+
927
+
928
+
929
+
930
+ <details>
931
+ <summary><i>&nbsp; Example:</i></summary>
932
+
933
+ ```json
934
+ {
935
+ "status": "success"
936
+ }
937
+ ```
938
+ </details>
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+ ---
949
+
950
+
951
+ ### loginWithToken
952
+ Login or Register with token
953
+
954
+
955
+
956
+ ```javascript
957
+ // Promise
958
+ const promise = user.loginWithToken({ body : value });
959
+
960
+ // Async/Await
961
+ const data = await user.loginWithToken({ body : value });
962
+ ```
963
+
964
+
965
+
966
+
967
+
968
+ | Argument | Type | Required | Description |
969
+ | --------- | ----- | -------- | ----------- |
970
+ | body | [TokenRequestBodySchema](#TokenRequestBodySchema) | yes | Request body |
971
+
972
+
973
+ Use this API to login or register using a token for authentication.
974
+
975
+ *Returned Response:*
976
+
977
+
978
+
979
+
980
+ [LoginSuccess](#LoginSuccess)
981
+
982
+ Success. Check the example shown below or refer `LoginSuccess` for more details.
983
+
984
+
985
+
986
+
987
+ <details>
988
+ <summary><i>&nbsp; Examples:</i></summary>
989
+
990
+
991
+ <details>
992
+ <summary><i>&nbsp; Success</i></summary>
993
+
994
+ ```json
995
+ {
996
+ "value": {
997
+ "user": {
998
+ "debug": {
999
+ "source": "deadlock",
1000
+ "platform": "000000000000000000000001"
1001
+ },
1002
+ "gender": "male",
1003
+ "account_type": "user",
1004
+ "active": true,
1005
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
1006
+ "has_old_password_hash": false,
1007
+ "_id": "5e68af49cfa09bf7233022f1",
1008
+ "first_name": "Akash",
1009
+ "last_name": "Mane",
1010
+ "username": "akashmane_gofynd_com_10039",
1011
+ "phone_numbers": [
1012
+ {
1013
+ "active": true,
1014
+ "primary": true,
1015
+ "verified": true,
1016
+ "phone": "8652523958",
1017
+ "country_code": 91
1018
+ }
1019
+ ],
1020
+ "emails": [
1021
+ {
1022
+ "active": true,
1023
+ "primary": true,
1024
+ "verified": true,
1025
+ "email": "akashmane@gofynd.com"
1026
+ },
1027
+ {
1028
+ "active": true,
1029
+ "primary": false,
1030
+ "verified": true,
1031
+ "email": "akashmane@fynd.com"
1032
+ },
1033
+ {
1034
+ "active": true,
1035
+ "primary": false,
1036
+ "verified": true,
1037
+ "email": "akashmane@uniket.store"
1038
+ }
1039
+ ],
1040
+ "created_at": "2020-03-11T09:28:41.982Z",
1041
+ "updated_at": "2021-02-04T10:10:44.981Z"
1042
+ }
1043
+ }
1044
+ }
1045
+ ```
1046
+ </details>
1047
+
1048
+ </details>
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+ ---
1059
+
1060
+
1061
+ ### registerWithForm
1062
+ Registration using a form
1063
+
1064
+
1065
+
1066
+ ```javascript
1067
+ // Promise
1068
+ const promise = user.registerWithForm({ body : value,
1069
+ platform : value });
1070
+
1071
+ // Async/Await
1072
+ const data = await user.registerWithForm({ body : value,
1073
+ platform : value });
1074
+ ```
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+ | Argument | Type | Required | Description |
1081
+ | --------- | ----- | -------- | ----------- |
1082
+ | platform | string | no | ID of the application |
1083
+ | body | [FormRegisterRequestSchema](#FormRegisterRequestSchema) | yes | Request body |
1084
+
1085
+
1086
+ Use this API to perform user registration by sending form data in the request body.
1087
+
1088
+ *Returned Response:*
1089
+
1090
+
1091
+
1092
+
1093
+ [RegisterFormSuccess](#RegisterFormSuccess)
1094
+
1095
+ Success. Check the example shown below or refer `RegisterFormSuccess` for more details.
1096
+
1097
+
1098
+
1099
+
1100
+ <details>
1101
+ <summary><i>&nbsp; Example:</i></summary>
1102
+
1103
+ ```json
1104
+ {
1105
+ "success": true,
1106
+ "request_id": "ebc059191393681cdfb805b5424bddad",
1107
+ "message": "OTP sent",
1108
+ "mobile": "7400448798",
1109
+ "country_code": "91",
1110
+ "resend_timer": 30,
1111
+ "resend_token": "5197ff90-66e2-11eb-9399-0312fbf2c2a6",
1112
+ "verify_mobile_otp": true,
1113
+ "register_token": "276e718a-d406-4a4b-83f7-cb6cb72b99ff",
1114
+ "userExists": false
1115
+ }
1116
+ ```
1117
+ </details>
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+ ---
1128
+
1129
+
1130
+ ### verifyEmail
1131
+ Verify email
1132
+
1133
+
1134
+
1135
+ ```javascript
1136
+ // Promise
1137
+ const promise = user.verifyEmail({ body : value });
1138
+
1139
+ // Async/Await
1140
+ const data = await user.verifyEmail({ body : value });
1141
+ ```
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+ | Argument | Type | Required | Description |
1148
+ | --------- | ----- | -------- | ----------- |
1149
+ | body | [CodeRequestBodySchema](#CodeRequestBodySchema) | yes | Request body |
1150
+
1151
+
1152
+ Use this API to send a verification code to verify an email.
1153
+
1154
+ *Returned Response:*
1155
+
1156
+
1157
+
1158
+
1159
+ [VerifyEmailSuccess](#VerifyEmailSuccess)
1160
+
1161
+ Success. Check the example shown below or refer `VerifyEmailSuccess` for more details.
1162
+
1163
+
1164
+
1165
+
1166
+ <details>
1167
+ <summary><i>&nbsp; Example:</i></summary>
1168
+
1169
+ ```json
1170
+ {
1171
+ "message": "verified"
1172
+ }
1173
+ ```
1174
+ </details>
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+ ---
1185
+
1186
+
1187
+ ### verifyMobile
1188
+ Verify mobile
1189
+
1190
+
1191
+
1192
+ ```javascript
1193
+ // Promise
1194
+ const promise = user.verifyMobile({ body : value });
1195
+
1196
+ // Async/Await
1197
+ const data = await user.verifyMobile({ body : value });
1198
+ ```
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+ | Argument | Type | Required | Description |
1205
+ | --------- | ----- | -------- | ----------- |
1206
+ | body | [CodeRequestBodySchema](#CodeRequestBodySchema) | yes | Request body |
1207
+
1208
+
1209
+ Use this API to send a verification code to verify a mobile number.
1210
+
1211
+ *Returned Response:*
1212
+
1213
+
1214
+
1215
+
1216
+ [VerifyEmailSuccess](#VerifyEmailSuccess)
1217
+
1218
+ Success. Check the example shown below or refer `VerifyEmailSuccess` for more details.
1219
+
1220
+
1221
+
1222
+
1223
+ <details>
1224
+ <summary><i>&nbsp; Example:</i></summary>
1225
+
1226
+ ```json
1227
+ {
1228
+ "message": "verified"
1229
+ }
1230
+ ```
1231
+ </details>
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+ ---
1242
+
1243
+
1244
+ ### hasPassword
1245
+ Check password
1246
+
1247
+
1248
+
1249
+ ```javascript
1250
+ // Promise
1251
+ const promise = user.hasPassword();
1252
+
1253
+ // Async/Await
1254
+ const data = await user.hasPassword();
1255
+ ```
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+ Use this API to check if user has created a password for login.
1263
+
1264
+ *Returned Response:*
1265
+
1266
+
1267
+
1268
+
1269
+ [HasPasswordSuccess](#HasPasswordSuccess)
1270
+
1271
+ Success. Returns a boolean value. Check the example shown below or refer `HasPasswordSuccess` for more details.
1272
+
1273
+
1274
+
1275
+
1276
+ <details>
1277
+ <summary><i>&nbsp; Example:</i></summary>
1278
+
1279
+ ```json
1280
+
1281
+ ```
1282
+ </details>
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+ ---
1293
+
1294
+
1295
+ ### updatePassword
1296
+ Update user password
1297
+
1298
+
1299
+
1300
+ ```javascript
1301
+ // Promise
1302
+ const promise = user.updatePassword({ body : value });
1303
+
1304
+ // Async/Await
1305
+ const data = await user.updatePassword({ body : value });
1306
+ ```
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+ | Argument | Type | Required | Description |
1313
+ | --------- | ----- | -------- | ----------- |
1314
+ | body | [UpdatePasswordRequestSchema](#UpdatePasswordRequestSchema) | yes | Request body |
1315
+
1316
+
1317
+ Use this API to update the password.
1318
+
1319
+ *Returned Response:*
1320
+
1321
+
1322
+
1323
+
1324
+ [VerifyEmailSuccess](#VerifyEmailSuccess)
1325
+
1326
+ Success. Returns a success message. Refer `VerifyEmailSuccess` for more details.
1327
+
1328
+
1329
+
1330
+
1331
+ <details>
1332
+ <summary><i>&nbsp; Example:</i></summary>
1333
+
1334
+ ```json
1335
+ {
1336
+ "message": "success"
1337
+ }
1338
+ ```
1339
+ </details>
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+ ---
1350
+
1351
+
1352
+ ### deleteUser
1353
+ verify otp and delete user
1354
+
1355
+
1356
+
1357
+ ```javascript
1358
+ // Promise
1359
+ const promise = user.deleteUser({ body : value });
1360
+
1361
+ // Async/Await
1362
+ const data = await user.deleteUser({ body : value });
1363
+ ```
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+ | Argument | Type | Required | Description |
1370
+ | --------- | ----- | -------- | ----------- |
1371
+ | body | [DeleteApplicationUserRequestSchema](#DeleteApplicationUserRequestSchema) | yes | Request body |
1372
+
1373
+
1374
+ verify otp and delete user
1375
+
1376
+ *Returned Response:*
1377
+
1378
+
1379
+
1380
+
1381
+ [DeleteUserSuccess](#DeleteUserSuccess)
1382
+
1383
+ Success. Returns a success message. Refer `DeleteUserSuccess` for more details.
1384
+
1385
+
1386
+
1387
+
1388
+ <details>
1389
+ <summary><i>&nbsp; Example:</i></summary>
1390
+
1391
+ ```json
1392
+ {
1393
+ "success": true
1394
+ }
1395
+ ```
1396
+ </details>
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+ ---
1407
+
1408
+
1409
+ ### logout
1410
+ Logs out currently logged in user
1411
+
1412
+
1413
+
1414
+ ```javascript
1415
+ // Promise
1416
+ const promise = user.logout();
1417
+
1418
+ // Async/Await
1419
+ const data = await user.logout();
1420
+ ```
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+ Use this API to check to logout a user from the app.
1428
+
1429
+ *Returned Response:*
1430
+
1431
+
1432
+
1433
+
1434
+ [LogoutSuccess](#LogoutSuccess)
1435
+
1436
+ Success. Returns a success message as shown below. Refer `LogoutSuccess` for more details.
1437
+
1438
+
1439
+
1440
+
1441
+ <details>
1442
+ <summary><i>&nbsp; Example:</i></summary>
1443
+
1444
+ ```json
1445
+
1446
+ ```
1447
+ </details>
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+ ---
1458
+
1459
+
1460
+ ### sendOTPOnMobile
1461
+ Send OTP on mobile
1462
+
1463
+
1464
+
1465
+ ```javascript
1466
+ // Promise
1467
+ const promise = user.sendOTPOnMobile({ body : value,
1468
+ platform : value });
1469
+
1470
+ // Async/Await
1471
+ const data = await user.sendOTPOnMobile({ body : value,
1472
+ platform : value });
1473
+ ```
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+ | Argument | Type | Required | Description |
1480
+ | --------- | ----- | -------- | ----------- |
1481
+ | platform | string | no | ID of the application |
1482
+ | body | [SendMobileOtpRequestSchema](#SendMobileOtpRequestSchema) | yes | Request body |
1483
+
1484
+
1485
+ Use this API to send an OTP to a mobile number.
1486
+
1487
+ *Returned Response:*
1488
+
1489
+
1490
+
1491
+
1492
+ [OtpSuccess](#OtpSuccess)
1493
+
1494
+ Success. Returns a JSON object as shown below. Refer `OtpSuccess` for more details.
1495
+
1496
+
1497
+
1498
+
1499
+ <details>
1500
+ <summary><i>&nbsp; Example:</i></summary>
1501
+
1502
+ ```json
1503
+ {
1504
+ "success": true,
1505
+ "request_id": "01503005aeab87cbed93d40f46cc2749",
1506
+ "message": "OTP sent",
1507
+ "mobile": "8652523958",
1508
+ "country_code": "91",
1509
+ "resend_timer": 30,
1510
+ "resend_token": "18fc3d60-66e5-11eb-9399-0312fbf2c2a6"
1511
+ }
1512
+ ```
1513
+ </details>
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+ ---
1524
+
1525
+
1526
+ ### verifyMobileOTP
1527
+ Verify OTP on mobile
1528
+
1529
+
1530
+
1531
+ ```javascript
1532
+ // Promise
1533
+ const promise = user.verifyMobileOTP({ body : value,
1534
+ platform : value });
1535
+
1536
+ // Async/Await
1537
+ const data = await user.verifyMobileOTP({ body : value,
1538
+ platform : value });
1539
+ ```
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+ | Argument | Type | Required | Description |
1546
+ | --------- | ----- | -------- | ----------- |
1547
+ | platform | string | no | ID of the application |
1548
+ | body | [VerifyOtpRequestSchema](#VerifyOtpRequestSchema) | yes | Request body |
1549
+
1550
+
1551
+ Use this API to verify the OTP received on a mobile number.
1552
+
1553
+ *Returned Response:*
1554
+
1555
+
1556
+
1557
+
1558
+ [VerifyOtpSuccess](#VerifyOtpSuccess)
1559
+
1560
+ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more details.
1561
+
1562
+
1563
+
1564
+
1565
+ <details>
1566
+ <summary><i>&nbsp; Examples:</i></summary>
1567
+
1568
+
1569
+ <details>
1570
+ <summary><i>&nbsp; default</i></summary>
1571
+
1572
+ ```json
1573
+ {
1574
+ "value": {
1575
+ "verify_mobile_link": true,
1576
+ "user": {
1577
+ "debug": {
1578
+ "source": "deadlock",
1579
+ "platform": "000000000000000000000001"
1580
+ },
1581
+ "gender": "male",
1582
+ "account_type": "user",
1583
+ "active": true,
1584
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
1585
+ "has_old_password_hash": false,
1586
+ "_id": "5e68af49cfa09bf7233022f1",
1587
+ "first_name": "Akash",
1588
+ "last_name": "Mane",
1589
+ "username": "akashmane_gofynd_com_10039",
1590
+ "phone_numbers": [
1591
+ {
1592
+ "active": true,
1593
+ "primary": true,
1594
+ "verified": true,
1595
+ "phone": "8652523958",
1596
+ "country_code": 91
1597
+ }
1598
+ ],
1599
+ "emails": [
1600
+ {
1601
+ "active": true,
1602
+ "primary": true,
1603
+ "verified": true,
1604
+ "email": "akashmane@gofynd.com"
1605
+ },
1606
+ {
1607
+ "active": true,
1608
+ "primary": false,
1609
+ "verified": true,
1610
+ "email": "akashmane@fynd.com"
1611
+ },
1612
+ {
1613
+ "active": true,
1614
+ "primary": false,
1615
+ "verified": true,
1616
+ "email": "akashmane@uniket.store"
1617
+ }
1618
+ ],
1619
+ "created_at": "2020-03-11T09:28:41.982Z",
1620
+ "updated_at": "2021-02-04T10:10:44.981Z"
1621
+ }
1622
+ }
1623
+ }
1624
+ ```
1625
+ </details>
1626
+
1627
+ </details>
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+ ---
1638
+
1639
+
1640
+ ### sendOTPOnEmail
1641
+ Send OTP on email
1642
+
1643
+
1644
+
1645
+ ```javascript
1646
+ // Promise
1647
+ const promise = user.sendOTPOnEmail({ body : value,
1648
+ platform : value });
1649
+
1650
+ // Async/Await
1651
+ const data = await user.sendOTPOnEmail({ body : value,
1652
+ platform : value });
1653
+ ```
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+ | Argument | Type | Required | Description |
1660
+ | --------- | ----- | -------- | ----------- |
1661
+ | platform | string | no | ID of the application |
1662
+ | body | [SendEmailOtpRequestSchema](#SendEmailOtpRequestSchema) | yes | Request body |
1663
+
1664
+
1665
+ Use this API to send an OTP to an email ID.
1666
+
1667
+ *Returned Response:*
1668
+
1669
+
1670
+
1671
+
1672
+ [EmailOtpSuccess](#EmailOtpSuccess)
1673
+
1674
+ Success. Returns a JSON object as shown below. Refer `EmailOtpSuccess` for more details.
1675
+
1676
+
1677
+
1678
+
1679
+ <details>
1680
+ <summary><i>&nbsp; Example:</i></summary>
1681
+
1682
+ ```json
1683
+ {
1684
+ "success": true
1685
+ }
1686
+ ```
1687
+ </details>
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+ ---
1698
+
1699
+
1700
+ ### verifyEmailOTP
1701
+ Verify OTP on email
1702
+
1703
+
1704
+
1705
+ ```javascript
1706
+ // Promise
1707
+ const promise = user.verifyEmailOTP({ body : value,
1708
+ platform : value });
1709
+
1710
+ // Async/Await
1711
+ const data = await user.verifyEmailOTP({ body : value,
1712
+ platform : value });
1713
+ ```
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+ | Argument | Type | Required | Description |
1720
+ | --------- | ----- | -------- | ----------- |
1721
+ | platform | string | no | ID of the application |
1722
+ | body | [VerifyEmailOtpRequestSchema](#VerifyEmailOtpRequestSchema) | yes | Request body |
1723
+
1724
+
1725
+ Use this API to verify the OTP received on an email ID.
1726
+
1727
+ *Returned Response:*
1728
+
1729
+
1730
+
1731
+
1732
+ [VerifyOtpSuccess](#VerifyOtpSuccess)
1733
+
1734
+ Success. Returns a JSON object as shown below. Refer `VerifyOtpSuccess` for more details.
1735
+
1736
+
1737
+
1738
+
1739
+ <details>
1740
+ <summary><i>&nbsp; Examples:</i></summary>
1741
+
1742
+
1743
+ <details>
1744
+ <summary><i>&nbsp; default</i></summary>
1745
+
1746
+ ```json
1747
+ {
1748
+ "value": {
1749
+ "verify_mobile_link": true,
1750
+ "user": {
1751
+ "debug": {
1752
+ "source": "deadlock",
1753
+ "platform": "000000000000000000000001"
1754
+ },
1755
+ "gender": "male",
1756
+ "account_type": "user",
1757
+ "active": true,
1758
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
1759
+ "has_old_password_hash": false,
1760
+ "_id": "5e68af49cfa09bf7233022f1",
1761
+ "first_name": "Akash",
1762
+ "last_name": "Mane",
1763
+ "username": "akashmane_gofynd_com_10039",
1764
+ "phone_numbers": [
1765
+ {
1766
+ "active": true,
1767
+ "primary": true,
1768
+ "verified": true,
1769
+ "phone": "8652523958",
1770
+ "country_code": 91
1771
+ }
1772
+ ],
1773
+ "emails": [
1774
+ {
1775
+ "active": true,
1776
+ "primary": true,
1777
+ "verified": true,
1778
+ "email": "akashmane@gofynd.com"
1779
+ },
1780
+ {
1781
+ "active": true,
1782
+ "primary": false,
1783
+ "verified": true,
1784
+ "email": "akashmane@fynd.com"
1785
+ },
1786
+ {
1787
+ "active": true,
1788
+ "primary": false,
1789
+ "verified": true,
1790
+ "email": "akashmane@uniket.store"
1791
+ }
1792
+ ],
1793
+ "created_at": "2020-03-11T09:28:41.982Z",
1794
+ "updated_at": "2021-02-04T10:10:44.981Z"
1795
+ }
1796
+ }
1797
+ }
1798
+ ```
1799
+ </details>
1800
+
1801
+ </details>
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+ ---
1812
+
1813
+
1814
+ ### getLoggedInUser
1815
+ Get logged in user
1816
+
1817
+
1818
+
1819
+ ```javascript
1820
+ // Promise
1821
+ const promise = user.getLoggedInUser();
1822
+
1823
+ // Async/Await
1824
+ const data = await user.getLoggedInUser();
1825
+ ```
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+ Use this API to get the details of a logged in user.
1833
+
1834
+ *Returned Response:*
1835
+
1836
+
1837
+
1838
+
1839
+ [UserObjectSchema](#UserObjectSchema)
1840
+
1841
+ Success. Returns a JSON object with user details. Refer `UserObjectSchema` for more details.
1842
+
1843
+
1844
+
1845
+
1846
+ <details>
1847
+ <summary><i>&nbsp; Examples:</i></summary>
1848
+
1849
+
1850
+ <details>
1851
+ <summary><i>&nbsp; default</i></summary>
1852
+
1853
+ ```json
1854
+ {
1855
+ "value": {
1856
+ "user": {
1857
+ "debug": {
1858
+ "source": "deadlock",
1859
+ "platform": "000000000000000000000001"
1860
+ },
1861
+ "gender": "male",
1862
+ "account_type": "user",
1863
+ "active": true,
1864
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
1865
+ "has_old_password_hash": false,
1866
+ "_id": "5e68af49cfa09bf7233022f1",
1867
+ "first_name": "Akash",
1868
+ "last_name": "Mane",
1869
+ "username": "akashmane_gofynd_com_10039",
1870
+ "phone_numbers": [
1871
+ {
1872
+ "active": true,
1873
+ "primary": true,
1874
+ "verified": true,
1875
+ "phone": "8652523958",
1876
+ "country_code": 91
1877
+ }
1878
+ ],
1879
+ "emails": [
1880
+ {
1881
+ "active": true,
1882
+ "primary": true,
1883
+ "verified": true,
1884
+ "email": "akashmane@gofynd.com"
1885
+ },
1886
+ {
1887
+ "active": true,
1888
+ "primary": false,
1889
+ "verified": true,
1890
+ "email": "akashmane@fynd.com"
1891
+ },
1892
+ {
1893
+ "active": true,
1894
+ "primary": false,
1895
+ "verified": true,
1896
+ "email": "akashmane@uniket.store"
1897
+ }
1898
+ ],
1899
+ "created_at": "2020-03-11T09:28:41.982Z",
1900
+ "updated_at": "2021-02-04T10:10:44.981Z"
1901
+ }
1902
+ }
1903
+ }
1904
+ ```
1905
+ </details>
1906
+
1907
+ </details>
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+ ---
1918
+
1919
+
1920
+ ### getListOfActiveSessions
1921
+ Get list of sessions
1922
+
1923
+
1924
+
1925
+ ```javascript
1926
+ // Promise
1927
+ const promise = user.getListOfActiveSessions();
1928
+
1929
+ // Async/Await
1930
+ const data = await user.getListOfActiveSessions();
1931
+ ```
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+ Use this API to retrieve all active sessions of a user.
1939
+
1940
+ *Returned Response:*
1941
+
1942
+
1943
+
1944
+
1945
+ [SessionListSuccess](#SessionListSuccess)
1946
+
1947
+ Success. Returns a JSON object containing an array of sessions. Refer `SessionListSuccess` for more details.
1948
+
1949
+
1950
+
1951
+
1952
+ <details>
1953
+ <summary><i>&nbsp; Example:</i></summary>
1954
+
1955
+ ```json
1956
+ {
1957
+ "sessions": [
1958
+ "session_1",
1959
+ "session_2"
1960
+ ]
1961
+ }
1962
+ ```
1963
+ </details>
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+ ---
1974
+
1975
+
1976
+ ### getPlatformConfig
1977
+ Get platform configurations
1978
+
1979
+
1980
+
1981
+ ```javascript
1982
+ // Promise
1983
+ const promise = user.getPlatformConfig({ name : value });
1984
+
1985
+ // Async/Await
1986
+ const data = await user.getPlatformConfig({ name : value });
1987
+ ```
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+ | Argument | Type | Required | Description |
1994
+ | --------- | ----- | -------- | ----------- |
1995
+ | name | string | no | Name of the application, e.g. Fynd |
1996
+
1997
+
1998
+
1999
+ Use this API to get all the platform configurations such as mobile image, desktop image, social logins, and all other text.
2000
+
2001
+ *Returned Response:*
2002
+
2003
+
2004
+
2005
+
2006
+ [PlatformSchema](#PlatformSchema)
2007
+
2008
+ Success. Returns a JSON object containing the all the platform configurations. Refer `PlatformSchema` for more details.
2009
+
2010
+
2011
+
2012
+
2013
+ <details>
2014
+ <summary><i>&nbsp; Example:</i></summary>
2015
+
2016
+ ```json
2017
+ {
2018
+ "active": true,
2019
+ "mobile_image": null,
2020
+ "desktop_image": null,
2021
+ "social": {
2022
+ "facebook": true,
2023
+ "google": true,
2024
+ "account_kit": true
2025
+ },
2026
+ "flash_card": {
2027
+ "text": "",
2028
+ "text_color": "#FFFFFF",
2029
+ "background_color": "#EF5350"
2030
+ },
2031
+ "register": true,
2032
+ "forgot_password": true,
2033
+ "login": {
2034
+ "password": true,
2035
+ "otp": true
2036
+ },
2037
+ "skip_captcha": false,
2038
+ "display": "Fynd",
2039
+ "subtext": "Login to Fynd",
2040
+ "name": "Fynd",
2041
+ "meta": {},
2042
+ "required_fields": {
2043
+ "email": {
2044
+ "is_required": false,
2045
+ "level": "hard"
2046
+ },
2047
+ "mobile": {
2048
+ "is_required": true,
2049
+ "level": "hard"
2050
+ }
2051
+ },
2052
+ "register_required_fields": {
2053
+ "email": {
2054
+ "is_required": false,
2055
+ "level": "hard"
2056
+ },
2057
+ "mobile": {
2058
+ "is_required": true,
2059
+ "level": "hard"
2060
+ }
2061
+ },
2062
+ "skip_login": false,
2063
+ "look_and_feel": {
2064
+ "background_color": "#F5F5F5",
2065
+ "card_position": "center"
2066
+ },
2067
+ "social_tokens": {
2068
+ "google": {
2069
+ "appId": "token_123"
2070
+ },
2071
+ "facebook": {
2072
+ "appId": "2033146826724884"
2073
+ },
2074
+ "account_kit": {
2075
+ "appId": "548529975557631"
2076
+ }
2077
+ },
2078
+ "delete_account_reasons": [
2079
+ {
2080
+ "reason_text": "test",
2081
+ "reason_id": "123",
2082
+ "show_text_area": true
2083
+ }
2084
+ ],
2085
+ "delete_account_day": 7,
2086
+ "delete_account_consent": {
2087
+ "consent_text": ""
2088
+ },
2089
+ "_id": "5e04a5e5220bc15839ad9bc0",
2090
+ "created_at": "2019-12-26T12:21:57.878Z",
2091
+ "updated_at": "2020-08-13T14:31:09.878Z",
2092
+ "__v": 0
2093
+ }
2094
+ ```
2095
+ </details>
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+
2104
+
2105
+ ---
2106
+
2107
+
2108
+ ### updateProfile
2109
+ Edit Profile Details
2110
+
2111
+
2112
+
2113
+ ```javascript
2114
+ // Promise
2115
+ const promise = user.updateProfile({ body : value,
2116
+ platform : value });
2117
+
2118
+ // Async/Await
2119
+ const data = await user.updateProfile({ body : value,
2120
+ platform : value });
2121
+ ```
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+ | Argument | Type | Required | Description |
2128
+ | --------- | ----- | -------- | ----------- |
2129
+ | platform | string | no | ID of the application |
2130
+ | body | [EditProfileRequestSchema](#EditProfileRequestSchema) | yes | Request body |
2131
+
2132
+
2133
+ Use this API to update details in the user profile. Details can be first name, last name, gender, email, phone number, or profile picture.
2134
+
2135
+ *Returned Response:*
2136
+
2137
+
2138
+
2139
+
2140
+ [ProfileEditSuccess](#ProfileEditSuccess)
2141
+
2142
+ Success. Check the example shown below or refer `LoginSuccess` for more details.
2143
+
2144
+
2145
+
2146
+
2147
+ <details>
2148
+ <summary><i>&nbsp; Examples:</i></summary>
2149
+
2150
+
2151
+ <details>
2152
+ <summary><i>&nbsp; default</i></summary>
2153
+
2154
+ ```json
2155
+ {
2156
+ "value": {
2157
+ "user": {
2158
+ "debug": {
2159
+ "source": "deadlock",
2160
+ "platform": "000000000000000000000001"
2161
+ },
2162
+ "gender": "male",
2163
+ "account_type": "user",
2164
+ "active": true,
2165
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2166
+ "has_old_password_hash": false,
2167
+ "_id": "5e68af49cfa09bf7233022f1",
2168
+ "first_name": "Akash",
2169
+ "last_name": "Mane",
2170
+ "username": "akashmane_gofynd_com_10039",
2171
+ "phone_numbers": [
2172
+ {
2173
+ "active": true,
2174
+ "primary": true,
2175
+ "verified": true,
2176
+ "phone": "8652523958",
2177
+ "country_code": 91
2178
+ }
2179
+ ],
2180
+ "emails": [
2181
+ {
2182
+ "active": true,
2183
+ "primary": true,
2184
+ "verified": true,
2185
+ "email": "akashmane@gofynd.com"
2186
+ },
2187
+ {
2188
+ "active": true,
2189
+ "primary": false,
2190
+ "verified": true,
2191
+ "email": "akashmane@fynd.com"
2192
+ },
2193
+ {
2194
+ "active": true,
2195
+ "primary": false,
2196
+ "verified": true,
2197
+ "email": "akashmane@uniket.store"
2198
+ }
2199
+ ],
2200
+ "created_at": "2020-03-11T09:28:41.982Z",
2201
+ "updated_at": "2021-02-04T10:10:44.981Z"
2202
+ }
2203
+ }
2204
+ }
2205
+ ```
2206
+ </details>
2207
+
2208
+ </details>
2209
+
2210
+
2211
+
2212
+
2213
+
2214
+
2215
+
2216
+
2217
+
2218
+ ---
2219
+
2220
+
2221
+ ### addMobileNumber
2222
+ Add mobile number to profile
2223
+
2224
+
2225
+
2226
+ ```javascript
2227
+ // Promise
2228
+ const promise = user.addMobileNumber({ body : value,
2229
+ platform : value });
2230
+
2231
+ // Async/Await
2232
+ const data = await user.addMobileNumber({ body : value,
2233
+ platform : value });
2234
+ ```
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+ | Argument | Type | Required | Description |
2241
+ | --------- | ----- | -------- | ----------- |
2242
+ | platform | string | no | ID of the application |
2243
+ | body | [EditMobileRequestSchema](#EditMobileRequestSchema) | yes | Request body |
2244
+
2245
+
2246
+ Use this API to add a new mobile number to a profile.
2247
+
2248
+ *Returned Response:*
2249
+
2250
+
2251
+
2252
+
2253
+ [VerifyMobileOTPSuccess](#VerifyMobileOTPSuccess)
2254
+
2255
+ Success. Check the example shown below or refer `VerifyMobileOTPSuccess` for more details.
2256
+
2257
+
2258
+
2259
+
2260
+ <details>
2261
+ <summary><i>&nbsp; Examples:</i></summary>
2262
+
2263
+
2264
+ <details>
2265
+ <summary><i>&nbsp; default</i></summary>
2266
+
2267
+ ```json
2268
+ {
2269
+ "value": {
2270
+ "verify_mobile_link": true,
2271
+ "user": {
2272
+ "debug": {
2273
+ "source": "deadlock",
2274
+ "platform": "000000000000000000000001"
2275
+ },
2276
+ "gender": "male",
2277
+ "account_type": "user",
2278
+ "active": true,
2279
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2280
+ "has_old_password_hash": false,
2281
+ "_id": "5e68af49cfa09bf7233022f1",
2282
+ "first_name": "Akash",
2283
+ "last_name": "Mane",
2284
+ "username": "akashmane_gofynd_com_10039",
2285
+ "phone_numbers": [
2286
+ {
2287
+ "active": true,
2288
+ "primary": true,
2289
+ "verified": true,
2290
+ "phone": "8652523958",
2291
+ "country_code": 91
2292
+ }
2293
+ ],
2294
+ "emails": [
2295
+ {
2296
+ "active": true,
2297
+ "primary": true,
2298
+ "verified": true,
2299
+ "email": "akashmane@gofynd.com"
2300
+ },
2301
+ {
2302
+ "active": true,
2303
+ "primary": false,
2304
+ "verified": true,
2305
+ "email": "akashmane@fynd.com"
2306
+ },
2307
+ {
2308
+ "active": true,
2309
+ "primary": false,
2310
+ "verified": true,
2311
+ "email": "akashmane@uniket.store"
2312
+ }
2313
+ ],
2314
+ "created_at": "2020-03-11T09:28:41.982Z",
2315
+ "updated_at": "2021-02-04T10:10:44.981Z"
2316
+ }
2317
+ }
2318
+ }
2319
+ ```
2320
+ </details>
2321
+
2322
+ </details>
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+
2330
+
2331
+
2332
+ ---
2333
+
2334
+
2335
+ ### deleteMobileNumber
2336
+ Delete mobile number from profile
2337
+
2338
+
2339
+
2340
+ ```javascript
2341
+ // Promise
2342
+ const promise = user.deleteMobileNumber({ active : value,
2343
+ primary : value,
2344
+ verified : value,
2345
+ countryCode : value,
2346
+ phone : value,
2347
+ platform : value });
2348
+
2349
+ // Async/Await
2350
+ const data = await user.deleteMobileNumber({ active : value,
2351
+ primary : value,
2352
+ verified : value,
2353
+ countryCode : value,
2354
+ phone : value,
2355
+ platform : value });
2356
+ ```
2357
+
2358
+
2359
+
2360
+
2361
+
2362
+ | Argument | Type | Required | Description |
2363
+ | --------- | ----- | -------- | ----------- |
2364
+ | platform | string | no | ID of the application |
2365
+ | active | boolean | yes | This is a boolean value to check if mobile number is active 1.True - Number is active 2. False - Number is inactive |
2366
+ | primary | boolean | yes | This is a boolean value to check if mobile number is primary number (main number) 1. True - Number is primary 2. False - Number is not primary |
2367
+ | verified | boolean | yes | This is a boolean value to check if mobile number is verified 1. True - Number is verified 2.False - Number is not verified yet |
2368
+ | countryCode | string | yes | Country code of the phone number, e.g. 91 |
2369
+ | phone | string | yes | Phone number |
2370
+
2371
+
2372
+
2373
+ Use this API to delete a mobile number from a profile.
2374
+
2375
+ *Returned Response:*
2376
+
2377
+
2378
+
2379
+
2380
+ [LoginSuccess](#LoginSuccess)
2381
+
2382
+ Success. Check the example shown below or refer `LoginSuccess` for more details.
2383
+
2384
+
2385
+
2386
+
2387
+ <details>
2388
+ <summary><i>&nbsp; Examples:</i></summary>
2389
+
2390
+
2391
+ <details>
2392
+ <summary><i>&nbsp; default</i></summary>
2393
+
2394
+ ```json
2395
+ {
2396
+ "value": {
2397
+ "user": {
2398
+ "debug": {
2399
+ "source": "deadlock",
2400
+ "platform": "000000000000000000000001"
2401
+ },
2402
+ "gender": "male",
2403
+ "account_type": "user",
2404
+ "active": true,
2405
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2406
+ "has_old_password_hash": false,
2407
+ "_id": "5e68af49cfa09bf7233022f1",
2408
+ "first_name": "Akash",
2409
+ "last_name": "Mane",
2410
+ "username": "akashmane_gofynd_com_10039",
2411
+ "phone_numbers": [
2412
+ {
2413
+ "active": true,
2414
+ "primary": true,
2415
+ "verified": true,
2416
+ "phone": "8652523958",
2417
+ "country_code": 91
2418
+ }
2419
+ ],
2420
+ "emails": [
2421
+ {
2422
+ "active": true,
2423
+ "primary": true,
2424
+ "verified": true,
2425
+ "email": "akashmane@gofynd.com"
2426
+ },
2427
+ {
2428
+ "active": true,
2429
+ "primary": false,
2430
+ "verified": true,
2431
+ "email": "akashmane@fynd.com"
2432
+ },
2433
+ {
2434
+ "active": true,
2435
+ "primary": false,
2436
+ "verified": true,
2437
+ "email": "akashmane@uniket.store"
2438
+ }
2439
+ ],
2440
+ "created_at": "2020-03-11T09:28:41.982Z",
2441
+ "updated_at": "2021-02-04T10:10:44.981Z"
2442
+ }
2443
+ }
2444
+ }
2445
+ ```
2446
+ </details>
2447
+
2448
+ </details>
2449
+
2450
+
2451
+
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+ ---
2459
+
2460
+
2461
+ ### setMobileNumberAsPrimary
2462
+ Set mobile as primary
2463
+
2464
+
2465
+
2466
+ ```javascript
2467
+ // Promise
2468
+ const promise = user.setMobileNumberAsPrimary({ body : value });
2469
+
2470
+ // Async/Await
2471
+ const data = await user.setMobileNumberAsPrimary({ body : value });
2472
+ ```
2473
+
2474
+
2475
+
2476
+
2477
+
2478
+ | Argument | Type | Required | Description |
2479
+ | --------- | ----- | -------- | ----------- |
2480
+ | body | [SendVerificationLinkMobileRequestSchema](#SendVerificationLinkMobileRequestSchema) | yes | Request body |
2481
+
2482
+
2483
+ Use this API to set a mobile number as primary. Primary number is a verified number used for all future communications.
2484
+
2485
+ *Returned Response:*
2486
+
2487
+
2488
+
2489
+
2490
+ [LoginSuccess](#LoginSuccess)
2491
+
2492
+ Success. Check the example shown below or refer `LoginSuccess` for more details.
2493
+
2494
+
2495
+
2496
+
2497
+ <details>
2498
+ <summary><i>&nbsp; Examples:</i></summary>
2499
+
2500
+
2501
+ <details>
2502
+ <summary><i>&nbsp; default</i></summary>
2503
+
2504
+ ```json
2505
+ {
2506
+ "value": {
2507
+ "user": {
2508
+ "debug": {
2509
+ "source": "deadlock",
2510
+ "platform": "000000000000000000000001"
2511
+ },
2512
+ "gender": "male",
2513
+ "account_type": "user",
2514
+ "active": true,
2515
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2516
+ "has_old_password_hash": false,
2517
+ "_id": "5e68af49cfa09bf7233022f1",
2518
+ "first_name": "Akash",
2519
+ "last_name": "Mane",
2520
+ "username": "akashmane_gofynd_com_10039",
2521
+ "phone_numbers": [
2522
+ {
2523
+ "active": true,
2524
+ "primary": true,
2525
+ "verified": true,
2526
+ "phone": "8652523958",
2527
+ "country_code": 91
2528
+ }
2529
+ ],
2530
+ "emails": [
2531
+ {
2532
+ "active": true,
2533
+ "primary": true,
2534
+ "verified": true,
2535
+ "email": "akashmane@gofynd.com"
2536
+ },
2537
+ {
2538
+ "active": true,
2539
+ "primary": false,
2540
+ "verified": true,
2541
+ "email": "akashmane@fynd.com"
2542
+ },
2543
+ {
2544
+ "active": true,
2545
+ "primary": false,
2546
+ "verified": true,
2547
+ "email": "akashmane@uniket.store"
2548
+ }
2549
+ ],
2550
+ "created_at": "2020-03-11T09:28:41.982Z",
2551
+ "updated_at": "2021-02-04T10:10:44.981Z"
2552
+ }
2553
+ }
2554
+ }
2555
+ ```
2556
+ </details>
2557
+
2558
+ </details>
2559
+
2560
+
2561
+
2562
+
2563
+
2564
+
2565
+
2566
+
2567
+
2568
+ ---
2569
+
2570
+
2571
+ ### sendVerificationLinkToMobile
2572
+ Send verification link to mobile
2573
+
2574
+
2575
+
2576
+ ```javascript
2577
+ // Promise
2578
+ const promise = user.sendVerificationLinkToMobile({ body : value,
2579
+ platform : value });
2580
+
2581
+ // Async/Await
2582
+ const data = await user.sendVerificationLinkToMobile({ body : value,
2583
+ platform : value });
2584
+ ```
2585
+
2586
+
2587
+
2588
+
2589
+
2590
+ | Argument | Type | Required | Description |
2591
+ | --------- | ----- | -------- | ----------- |
2592
+ | platform | string | no | ID of the application |
2593
+ | body | [SendVerificationLinkMobileRequestSchema](#SendVerificationLinkMobileRequestSchema) | yes | Request body |
2594
+
2595
+
2596
+ Use this API to send a verification link to a mobile number
2597
+
2598
+ *Returned Response:*
2599
+
2600
+
2601
+
2602
+
2603
+ [SendMobileVerifyLinkSuccess](#SendMobileVerifyLinkSuccess)
2604
+
2605
+ Success. Check the example shown below or refer `SendMobileVerifyLinkSuccess` for more details.
2606
+
2607
+
2608
+
2609
+
2610
+ <details>
2611
+ <summary><i>&nbsp; Examples:</i></summary>
2612
+
2613
+
2614
+ <details>
2615
+ <summary><i>&nbsp; default</i></summary>
2616
+
2617
+ ```json
2618
+ {
2619
+ "value": {
2620
+ "verify_mobile_link": true,
2621
+ "user": {
2622
+ "debug": {
2623
+ "source": "deadlock",
2624
+ "platform": "000000000000000000000001"
2625
+ },
2626
+ "gender": "male",
2627
+ "account_type": "user",
2628
+ "active": true,
2629
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2630
+ "has_old_password_hash": false,
2631
+ "_id": "5e68af49cfa09bf7233022f1",
2632
+ "first_name": "Akash",
2633
+ "last_name": "Mane",
2634
+ "username": "akashmane_gofynd_com_10039",
2635
+ "phone_numbers": [
2636
+ {
2637
+ "active": true,
2638
+ "primary": true,
2639
+ "verified": true,
2640
+ "phone": "8652523958",
2641
+ "country_code": 91
2642
+ }
2643
+ ],
2644
+ "emails": [
2645
+ {
2646
+ "active": true,
2647
+ "primary": true,
2648
+ "verified": true,
2649
+ "email": "akashmane@gofynd.com"
2650
+ },
2651
+ {
2652
+ "active": true,
2653
+ "primary": false,
2654
+ "verified": true,
2655
+ "email": "akashmane@fynd.com"
2656
+ },
2657
+ {
2658
+ "active": true,
2659
+ "primary": false,
2660
+ "verified": true,
2661
+ "email": "akashmane@uniket.store"
2662
+ }
2663
+ ],
2664
+ "created_at": "2020-03-11T09:28:41.982Z",
2665
+ "updated_at": "2021-02-04T10:10:44.981Z"
2666
+ }
2667
+ }
2668
+ }
2669
+ ```
2670
+ </details>
2671
+
2672
+ </details>
2673
+
2674
+
2675
+
2676
+
2677
+
2678
+
2679
+
2680
+
2681
+
2682
+ ---
2683
+
2684
+
2685
+ ### addEmail
2686
+ Add email to profile
2687
+
2688
+
2689
+
2690
+ ```javascript
2691
+ // Promise
2692
+ const promise = user.addEmail({ body : value,
2693
+ platform : value });
2694
+
2695
+ // Async/Await
2696
+ const data = await user.addEmail({ body : value,
2697
+ platform : value });
2698
+ ```
2699
+
2700
+
2701
+
2702
+
2703
+
2704
+ | Argument | Type | Required | Description |
2705
+ | --------- | ----- | -------- | ----------- |
2706
+ | platform | string | no | ID of the application |
2707
+ | body | [EditEmailRequestSchema](#EditEmailRequestSchema) | yes | Request body |
2708
+
2709
+
2710
+ Use this API to add a new email address to a profile
2711
+
2712
+ *Returned Response:*
2713
+
2714
+
2715
+
2716
+
2717
+ [VerifyEmailOTPSuccess](#VerifyEmailOTPSuccess)
2718
+
2719
+ Success. Returns a JSON object with user details. Refer `VerifyEmailOTPSuccess` for more details.
2720
+
2721
+
2722
+
2723
+
2724
+ <details>
2725
+ <summary><i>&nbsp; Examples:</i></summary>
2726
+
2727
+
2728
+ <details>
2729
+ <summary><i>&nbsp; default</i></summary>
2730
+
2731
+ ```json
2732
+ {
2733
+ "value": {
2734
+ "verify_email_link": true,
2735
+ "user": {
2736
+ "debug": {
2737
+ "source": "deadlock",
2738
+ "platform": "000000000000000000000001"
2739
+ },
2740
+ "gender": "male",
2741
+ "account_type": "user",
2742
+ "active": true,
2743
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2744
+ "has_old_password_hash": false,
2745
+ "_id": "5e68af49cfa09bf7233022f1",
2746
+ "first_name": "Akash",
2747
+ "last_name": "Mane",
2748
+ "username": "akashmane_gofynd_com_10039",
2749
+ "phone_numbers": [
2750
+ {
2751
+ "active": true,
2752
+ "primary": true,
2753
+ "verified": true,
2754
+ "phone": "8652523958",
2755
+ "country_code": 91
2756
+ }
2757
+ ],
2758
+ "emails": [
2759
+ {
2760
+ "active": true,
2761
+ "primary": true,
2762
+ "verified": true,
2763
+ "email": "akashmane@gofynd.com"
2764
+ },
2765
+ {
2766
+ "active": true,
2767
+ "primary": false,
2768
+ "verified": true,
2769
+ "email": "akashmane@fynd.com"
2770
+ },
2771
+ {
2772
+ "active": true,
2773
+ "primary": false,
2774
+ "verified": true,
2775
+ "email": "akashmane@uniket.store"
2776
+ }
2777
+ ],
2778
+ "created_at": "2020-03-11T09:28:41.982Z",
2779
+ "updated_at": "2021-02-04T10:10:44.981Z"
2780
+ }
2781
+ }
2782
+ }
2783
+ ```
2784
+ </details>
2785
+
2786
+ </details>
2787
+
2788
+
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+ ---
2797
+
2798
+
2799
+ ### deleteEmail
2800
+ Delete email from profile
2801
+
2802
+
2803
+
2804
+ ```javascript
2805
+ // Promise
2806
+ const promise = user.deleteEmail({ active : value,
2807
+ primary : value,
2808
+ verified : value,
2809
+ email : value,
2810
+ platform : value });
2811
+
2812
+ // Async/Await
2813
+ const data = await user.deleteEmail({ active : value,
2814
+ primary : value,
2815
+ verified : value,
2816
+ email : value,
2817
+ platform : value });
2818
+ ```
2819
+
2820
+
2821
+
2822
+
2823
+
2824
+ | Argument | Type | Required | Description |
2825
+ | --------- | ----- | -------- | ----------- |
2826
+ | platform | string | no | ID of the application |
2827
+ | active | boolean | yes | This is a boolean value to check if email ID is active 1. True - Email ID is active 2.False - Email ID is inactive |
2828
+ | primary | boolean | yes | This is a boolean value to check if email ID is primary (main email ID) 1. True - Email ID is primary 2.False - Email ID is not primary |
2829
+ | verified | boolean | yes | This is a boolean value to check if email ID is verified 1. True - Email ID is verified 2.False - Email ID is not verified yet |
2830
+ | email | string | yes | The email ID to delete |
2831
+
2832
+
2833
+
2834
+ Use this API to delete an email address from a profile
2835
+
2836
+ *Returned Response:*
2837
+
2838
+
2839
+
2840
+
2841
+ [LoginSuccess](#LoginSuccess)
2842
+
2843
+ Success. Returns a JSON object with user details. Refer `LoginSuccess` for more details.
2844
+
2845
+
2846
+
2847
+
2848
+ <details>
2849
+ <summary><i>&nbsp; Examples:</i></summary>
2850
+
2851
+
2852
+ <details>
2853
+ <summary><i>&nbsp; default</i></summary>
2854
+
2855
+ ```json
2856
+ {
2857
+ "value": {
2858
+ "user": {
2859
+ "debug": {
2860
+ "source": "deadlock",
2861
+ "platform": "000000000000000000000001"
2862
+ },
2863
+ "gender": "male",
2864
+ "account_type": "user",
2865
+ "active": true,
2866
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2867
+ "has_old_password_hash": false,
2868
+ "_id": "5e68af49cfa09bf7233022f1",
2869
+ "first_name": "Akash",
2870
+ "last_name": "Mane",
2871
+ "username": "akashmane_gofynd_com_10039",
2872
+ "phone_numbers": [
2873
+ {
2874
+ "active": true,
2875
+ "primary": true,
2876
+ "verified": true,
2877
+ "phone": "8652523958",
2878
+ "country_code": 91
2879
+ }
2880
+ ],
2881
+ "emails": [
2882
+ {
2883
+ "active": true,
2884
+ "primary": true,
2885
+ "verified": true,
2886
+ "email": "akashmane@gofynd.com"
2887
+ },
2888
+ {
2889
+ "active": true,
2890
+ "primary": false,
2891
+ "verified": true,
2892
+ "email": "akashmane@fynd.com"
2893
+ },
2894
+ {
2895
+ "active": true,
2896
+ "primary": false,
2897
+ "verified": true,
2898
+ "email": "akashmane@uniket.store"
2899
+ }
2900
+ ],
2901
+ "created_at": "2020-03-11T09:28:41.982Z",
2902
+ "updated_at": "2021-02-04T10:10:44.981Z"
2903
+ }
2904
+ }
2905
+ }
2906
+ ```
2907
+ </details>
2908
+
2909
+ </details>
2910
+
2911
+
2912
+
2913
+
2914
+
2915
+
2916
+
2917
+
2918
+
2919
+ ---
2920
+
2921
+
2922
+ ### setEmailAsPrimary
2923
+ Set email as primary
2924
+
2925
+
2926
+
2927
+ ```javascript
2928
+ // Promise
2929
+ const promise = user.setEmailAsPrimary({ body : value });
2930
+
2931
+ // Async/Await
2932
+ const data = await user.setEmailAsPrimary({ body : value });
2933
+ ```
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+ | Argument | Type | Required | Description |
2940
+ | --------- | ----- | -------- | ----------- |
2941
+ | body | [EditEmailRequestSchema](#EditEmailRequestSchema) | yes | Request body |
2942
+
2943
+
2944
+ Use this API to set an email address as primary. Primary email ID is a email address used for all future communications.
2945
+
2946
+ *Returned Response:*
2947
+
2948
+
2949
+
2950
+
2951
+ [LoginSuccess](#LoginSuccess)
2952
+
2953
+ Success. Returns a JSON object with user details. Refer `LoginSuccess` for more details.
2954
+
2955
+
2956
+
2957
+
2958
+ <details>
2959
+ <summary><i>&nbsp; Examples:</i></summary>
2960
+
2961
+
2962
+ <details>
2963
+ <summary><i>&nbsp; default</i></summary>
2964
+
2965
+ ```json
2966
+ {
2967
+ "value": {
2968
+ "user": {
2969
+ "debug": {
2970
+ "source": "deadlock",
2971
+ "platform": "000000000000000000000001"
2972
+ },
2973
+ "gender": "male",
2974
+ "account_type": "user",
2975
+ "active": true,
2976
+ "profile_pic_url": "https://d2co8r51m5ca2d.cloudfront.net/inapp_banners/default_profile_img.png",
2977
+ "has_old_password_hash": false,
2978
+ "_id": "5e68af49cfa09bf7233022f1",
2979
+ "first_name": "Akash",
2980
+ "last_name": "Mane",
2981
+ "username": "akashmane_gofynd_com_10039",
2982
+ "phone_numbers": [
2983
+ {
2984
+ "active": true,
2985
+ "primary": true,
2986
+ "verified": true,
2987
+ "phone": "8652523958",
2988
+ "country_code": 91
2989
+ }
2990
+ ],
2991
+ "emails": [
2992
+ {
2993
+ "active": true,
2994
+ "primary": true,
2995
+ "verified": true,
2996
+ "email": "akashmane@gofynd.com"
2997
+ },
2998
+ {
2999
+ "active": true,
3000
+ "primary": false,
3001
+ "verified": true,
3002
+ "email": "akashmane@fynd.com"
3003
+ },
3004
+ {
3005
+ "active": true,
3006
+ "primary": false,
3007
+ "verified": true,
3008
+ "email": "akashmane@uniket.store"
3009
+ }
3010
+ ],
3011
+ "created_at": "2020-03-11T09:28:41.982Z",
3012
+ "updated_at": "2021-02-04T10:10:44.981Z"
3013
+ }
3014
+ }
3015
+ }
3016
+ ```
3017
+ </details>
3018
+
3019
+ </details>
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+
3026
+
3027
+
3028
+
3029
+ ---
3030
+
3031
+
3032
+ ### sendVerificationLinkToEmail
3033
+ Send verification link to email
3034
+
3035
+
3036
+
3037
+ ```javascript
3038
+ // Promise
3039
+ const promise = user.sendVerificationLinkToEmail({ body : value,
3040
+ platform : value });
3041
+
3042
+ // Async/Await
3043
+ const data = await user.sendVerificationLinkToEmail({ body : value,
3044
+ platform : value });
3045
+ ```
3046
+
3047
+
3048
+
3049
+
3050
+
3051
+ | Argument | Type | Required | Description |
3052
+ | --------- | ----- | -------- | ----------- |
3053
+ | platform | string | no | ID of the application |
3054
+ | body | [EditEmailRequestSchema](#EditEmailRequestSchema) | yes | Request body |
3055
+
3056
+
3057
+ Use this API to send verification link to an email address.
3058
+
3059
+ *Returned Response:*
3060
+
3061
+
3062
+
3063
+
3064
+ [SendEmailVerifyLinkSuccess](#SendEmailVerifyLinkSuccess)
3065
+
3066
+ Request body must contain an email ID. Refer `EditEmailRequestSchema` for more details.
3067
+
3068
+
3069
+
3070
+
3071
+ <details>
3072
+ <summary><i>&nbsp; Example:</i></summary>
3073
+
3074
+ ```json
3075
+
3076
+ ```
3077
+ </details>
3078
+
3079
+
3080
+
3081
+
3082
+
3083
+
3084
+
3085
+
3086
+
3087
+ ---
3088
+
3089
+
3090
+
3091
+ ### Schemas
3092
+
3093
+
3094
+
3095
+ #### [BlockUserRequestSchema](#BlockUserRequestSchema)
3096
+
3097
+ | Properties | Type | Nullable | Description |
3098
+ | ---------- | ---- | -------- | ----------- |
3099
+ | status | boolean | no | |
3100
+ | user_id | [string] | no | |
3101
+ | reason | string | no | |
3102
+
3103
+ ---
3104
+
3105
+
3106
+
3107
+
3108
+ #### [ArchiveUserRequestSchema](#ArchiveUserRequestSchema)
3109
+
3110
+ | Properties | Type | Nullable | Description |
3111
+ | ---------- | ---- | -------- | ----------- |
3112
+ | user_id | string | no | |
3113
+
3114
+ ---
3115
+
3116
+
3117
+
3118
+
3119
+ #### [DeleteApplicationUserRequestSchema](#DeleteApplicationUserRequestSchema)
3120
+
3121
+ | Properties | Type | Nullable | Description |
3122
+ | ---------- | ---- | -------- | ----------- |
3123
+ | user_id | string | no | |
3124
+ | reason | string | no | |
3125
+ | reason_id | string | no | |
3126
+ | request_id | string | no | |
3127
+ | otp | string | no | |
3128
+
3129
+ ---
3130
+
3131
+
3132
+
3133
+
3134
+ #### [UnDeleteUserRequestSchema](#UnDeleteUserRequestSchema)
3135
+
3136
+ | Properties | Type | Nullable | Description |
3137
+ | ---------- | ---- | -------- | ----------- |
3138
+ | user_id | string | no | |
3139
+ | reason | string | no | |
3140
+ | reason_id | string | no | |
3141
+
3142
+ ---
3143
+
3144
+
3145
+
3146
+
3147
+ #### [EditEmailRequestSchema](#EditEmailRequestSchema)
3148
+
3149
+ | Properties | Type | Nullable | Description |
3150
+ | ---------- | ---- | -------- | ----------- |
3151
+ | email | string | no | |
3152
+
3153
+ ---
3154
+
3155
+
3156
+
3157
+
3158
+ #### [SendVerificationLinkMobileRequestSchema](#SendVerificationLinkMobileRequestSchema)
3159
+
3160
+ | Properties | Type | Nullable | Description |
3161
+ | ---------- | ---- | -------- | ----------- |
3162
+ | verified | boolean | no | |
3163
+ | active | boolean | no | |
3164
+ | country_code | string | no | |
3165
+ | phone | string | no | |
3166
+ | primary | boolean | no | |
3167
+
3168
+ ---
3169
+
3170
+
3171
+
3172
+
3173
+ #### [EditMobileRequestSchema](#EditMobileRequestSchema)
3174
+
3175
+ | Properties | Type | Nullable | Description |
3176
+ | ---------- | ---- | -------- | ----------- |
3177
+ | country_code | string | no | |
3178
+ | phone | string | no | |
3179
+
3180
+ ---
3181
+
3182
+
3183
+
3184
+
3185
+ #### [EditProfileRequestSchema](#EditProfileRequestSchema)
3186
+
3187
+ | Properties | Type | Nullable | Description |
3188
+ | ---------- | ---- | -------- | ----------- |
3189
+ | first_name | string | no | |
3190
+ | last_name | string | no | |
3191
+ | mobile | [EditProfileMobileSchema](#EditProfileMobileSchema) | no | |
3192
+ | country_code | string | no | |
3193
+ | email | string | no | |
3194
+ | gender | string | no | |
3195
+ | dob | string | no | |
3196
+ | profile_pic_url | string | no | |
3197
+ | android_hash | string | no | |
3198
+ | sender | string | no | |
3199
+ | register_token | string | no | |
3200
+
3201
+ ---
3202
+
3203
+
3204
+
3205
+
3206
+ #### [EditProfileMobileSchema](#EditProfileMobileSchema)
3207
+
3208
+ | Properties | Type | Nullable | Description |
3209
+ | ---------- | ---- | -------- | ----------- |
3210
+ | phone | string | no | |
3211
+ | country_code | string | no | |
3212
+
3213
+ ---
3214
+
3215
+
3216
+
3217
+
3218
+ #### [SendEmailOtpRequestSchema](#SendEmailOtpRequestSchema)
3219
+
3220
+ | Properties | Type | Nullable | Description |
3221
+ | ---------- | ---- | -------- | ----------- |
3222
+ | email | string | no | |
3223
+ | action | string | no | |
3224
+ | token | string | no | |
3225
+ | register_token | string | no | |
3226
+
3227
+ ---
3228
+
3229
+
3230
+
3231
+
3232
+ #### [VerifyEmailOtpRequestSchema](#VerifyEmailOtpRequestSchema)
3233
+
3234
+ | Properties | Type | Nullable | Description |
3235
+ | ---------- | ---- | -------- | ----------- |
3236
+ | email | string | no | |
3237
+ | action | string | no | |
3238
+ | register_token | string | no | |
3239
+ | otp | string | no | |
3240
+
3241
+ ---
3242
+
3243
+
3244
+
3245
+
3246
+ #### [VerifyOtpRequestSchema](#VerifyOtpRequestSchema)
3247
+
3248
+ | Properties | Type | Nullable | Description |
3249
+ | ---------- | ---- | -------- | ----------- |
3250
+ | request_id | string | no | |
3251
+ | register_token | string | no | |
3252
+ | otp | string | no | |
3253
+
3254
+ ---
3255
+
3256
+
3257
+
3258
+
3259
+ #### [SendMobileOtpRequestSchema](#SendMobileOtpRequestSchema)
3260
+
3261
+ | Properties | Type | Nullable | Description |
3262
+ | ---------- | ---- | -------- | ----------- |
3263
+ | mobile | string | no | |
3264
+ | country_code | string | no | |
3265
+ | action | string | no | |
3266
+ | token | string | no | |
3267
+ | android_hash | string | no | |
3268
+ | force | string | no | |
3269
+ | captcha_code | string | no | |
3270
+
3271
+ ---
3272
+
3273
+
3274
+
3275
+
3276
+ #### [UpdatePasswordRequestSchema](#UpdatePasswordRequestSchema)
3277
+
3278
+ | Properties | Type | Nullable | Description |
3279
+ | ---------- | ---- | -------- | ----------- |
3280
+ | old_password | string | no | |
3281
+ | new_password | string | no | |
3282
+
3283
+ ---
3284
+
3285
+
3286
+
3287
+
3288
+ #### [FormRegisterRequestSchema](#FormRegisterRequestSchema)
3289
+
3290
+ | Properties | Type | Nullable | Description |
3291
+ | ---------- | ---- | -------- | ----------- |
3292
+ | first_name | string | no | |
3293
+ | last_name | string | no | |
3294
+ | gender | string | no | |
3295
+ | email | string | no | |
3296
+ | password | string | no | |
3297
+ | phone | [FormRegisterRequestSchemaPhone](#FormRegisterRequestSchemaPhone) | no | |
3298
+ | register_token | string | no | |
3299
+
3300
+ ---
3301
+
3302
+
3303
+
3304
+
3305
+ #### [TokenRequestBodySchema](#TokenRequestBodySchema)
3306
+
3307
+ | Properties | Type | Nullable | Description |
3308
+ | ---------- | ---- | -------- | ----------- |
3309
+ | token | string | no | |
3310
+
3311
+ ---
3312
+
3313
+
3314
+
3315
+
3316
+ #### [ForgotPasswordRequestSchema](#ForgotPasswordRequestSchema)
3317
+
3318
+ | Properties | Type | Nullable | Description |
3319
+ | ---------- | ---- | -------- | ----------- |
3320
+ | code | string | no | |
3321
+ | password | string | no | |
3322
+
3323
+ ---
3324
+
3325
+
3326
+
3327
+
3328
+ #### [CodeRequestBodySchema](#CodeRequestBodySchema)
3329
+
3330
+ | Properties | Type | Nullable | Description |
3331
+ | ---------- | ---- | -------- | ----------- |
3332
+ | code | string | no | |
3333
+
3334
+ ---
3335
+
3336
+
3337
+
3338
+
3339
+ #### [SendResetPasswordEmailRequestSchema](#SendResetPasswordEmailRequestSchema)
3340
+
3341
+ | Properties | Type | Nullable | Description |
3342
+ | ---------- | ---- | -------- | ----------- |
3343
+ | email | string | no | |
3344
+ | captcha_code | string | no | |
3345
+
3346
+ ---
3347
+
3348
+
3349
+
3350
+
3351
+ #### [SendResetPasswordMobileRequestSchema](#SendResetPasswordMobileRequestSchema)
3352
+
3353
+ | Properties | Type | Nullable | Description |
3354
+ | ---------- | ---- | -------- | ----------- |
3355
+ | country_code | string | no | |
3356
+ | mobile | string | no | |
3357
+ | captcha_code | string | no | |
3358
+
3359
+ ---
3360
+
3361
+
3362
+
3363
+
3364
+ #### [PasswordLoginRequestSchema](#PasswordLoginRequestSchema)
3365
+
3366
+ | Properties | Type | Nullable | Description |
3367
+ | ---------- | ---- | -------- | ----------- |
3368
+ | captcha_code | string | no | |
3369
+ | password | string | no | |
3370
+ | username | string | no | |
3371
+
3372
+ ---
3373
+
3374
+
3375
+
3376
+
3377
+ #### [SendOtpRequestSchema](#SendOtpRequestSchema)
3378
+
3379
+ | Properties | Type | Nullable | Description |
3380
+ | ---------- | ---- | -------- | ----------- |
3381
+ | country_code | string | no | |
3382
+ | captcha_code | string | no | |
3383
+ | mobile | string | no | |
3384
+ | android_hash | string | no | |
3385
+
3386
+ ---
3387
+
3388
+
3389
+
3390
+
3391
+ #### [OAuthRequestSchema](#OAuthRequestSchema)
3392
+
3393
+ | Properties | Type | Nullable | Description |
3394
+ | ---------- | ---- | -------- | ----------- |
3395
+ | is_signed_in | boolean | no | |
3396
+ | oauth2 | [OAuthRequestSchemaOauth2](#OAuthRequestSchemaOauth2) | no | |
3397
+ | profile | [OAuthRequestSchemaProfile](#OAuthRequestSchemaProfile) | no | |
3398
+
3399
+ ---
3400
+
3401
+
3402
+
3403
+
3404
+ #### [OAuthRequestAppleSchema](#OAuthRequestAppleSchema)
3405
+
3406
+ | Properties | Type | Nullable | Description |
3407
+ | ---------- | ---- | -------- | ----------- |
3408
+ | user_identifier | string | no | |
3409
+ | oauth | [OAuthRequestAppleSchemaOauth](#OAuthRequestAppleSchemaOauth) | no | |
3410
+ | profile | [OAuthRequestAppleSchemaProfile](#OAuthRequestAppleSchemaProfile) | no | |
3411
+
3412
+ ---
3413
+
3414
+
3415
+
3416
+
3417
+ #### [UserObjectSchema](#UserObjectSchema)
3418
+
3419
+ | Properties | Type | Nullable | Description |
3420
+ | ---------- | ---- | -------- | ----------- |
3421
+ | user | [UserSchema](#UserSchema) | no | |
3422
+
3423
+ ---
3424
+
3425
+
3426
+
3427
+
3428
+ #### [AuthSuccess](#AuthSuccess)
3429
+
3430
+ | Properties | Type | Nullable | Description |
3431
+ | ---------- | ---- | -------- | ----------- |
3432
+ | register_token | string | no | |
3433
+ | user_exists | boolean | no | |
3434
+ | user | [UserSchema](#UserSchema) | no | |
3435
+
3436
+ ---
3437
+
3438
+
3439
+
3440
+
3441
+ #### [SendOtpResponse](#SendOtpResponse)
3442
+
3443
+ | Properties | Type | Nullable | Description |
3444
+ | ---------- | ---- | -------- | ----------- |
3445
+ | resend_timer | number | no | |
3446
+ | resend_token | string | no | |
3447
+ | success | boolean | no | |
3448
+ | request_id | string | no | |
3449
+ | message | string | no | |
3450
+ | mobile | string | no | |
3451
+ | country_code | string | no | |
3452
+ | email | string | no | |
3453
+ | resend_email_token | string | no | |
3454
+ | register_token | string | no | |
3455
+ | verify_email_otp | boolean | no | |
3456
+ | verify_mobile_otp | boolean | no | |
3457
+ | user_exists | boolean | no | |
3458
+
3459
+ ---
3460
+
3461
+
3462
+
3463
+
3464
+ #### [ProfileEditSuccess](#ProfileEditSuccess)
3465
+
3466
+ | Properties | Type | Nullable | Description |
3467
+ | ---------- | ---- | -------- | ----------- |
3468
+ | user | [UserSchema](#UserSchema) | no | |
3469
+ | register_token | string | no | |
3470
+ | resend_email_token | string | no | |
3471
+ | user_exists | boolean | no | |
3472
+ | verify_email_link | boolean | no | |
3473
+ | verify_email_otp | boolean | no | |
3474
+ | verify_mobile_otp | boolean | no | |
3475
+ | email | string | no | |
3476
+ | request_id | string | no | |
3477
+ | country_code | string | no | |
3478
+ | mobile | string | no | |
3479
+ | success | boolean | no | |
3480
+ | message | string | no | |
3481
+ | resend_timer | number | no | |
3482
+ | resend_token | string | no | |
3483
+
3484
+ ---
3485
+
3486
+
3487
+
3488
+
3489
+ #### [LoginSuccess](#LoginSuccess)
3490
+
3491
+ | Properties | Type | Nullable | Description |
3492
+ | ---------- | ---- | -------- | ----------- |
3493
+ | user | [UserSchema](#UserSchema) | no | |
3494
+ | request_id | string | no | |
3495
+ | register_token | string | no | |
3496
+
3497
+ ---
3498
+
3499
+
3500
+
3501
+
3502
+ #### [VerifyOtpSuccess](#VerifyOtpSuccess)
3503
+
3504
+ | Properties | Type | Nullable | Description |
3505
+ | ---------- | ---- | -------- | ----------- |
3506
+ | user | [UserSchema](#UserSchema) | no | |
3507
+ | user_exists | boolean | no | |
3508
+ | register_token | string | no | |
3509
+
3510
+ ---
3511
+
3512
+
3513
+
3514
+
3515
+ #### [ResetPasswordSuccess](#ResetPasswordSuccess)
3516
+
3517
+ | Properties | Type | Nullable | Description |
3518
+ | ---------- | ---- | -------- | ----------- |
3519
+ | status | string | no | |
3520
+
3521
+ ---
3522
+
3523
+
3524
+
3525
+
3526
+ #### [RegisterFormSuccess](#RegisterFormSuccess)
3527
+
3528
+ | Properties | Type | Nullable | Description |
3529
+ | ---------- | ---- | -------- | ----------- |
3530
+ | email | string | no | |
3531
+ | resend_timer | number | no | |
3532
+ | resend_token | string | no | |
3533
+ | resend_email_token | string | no | |
3534
+ | register_token | string | no | |
3535
+ | success | boolean | no | |
3536
+ | request_id | string | no | |
3537
+ | message | string | no | |
3538
+ | mobile | string | no | |
3539
+ | country_code | string | no | |
3540
+ | verify_email_otp | boolean | no | |
3541
+ | verify_mobile_otp | boolean | no | |
3542
+ | user_exists | boolean | no | |
3543
+
3544
+ ---
3545
+
3546
+
3547
+
3548
+
3549
+ #### [VerifyEmailSuccess](#VerifyEmailSuccess)
3550
+
3551
+ | Properties | Type | Nullable | Description |
3552
+ | ---------- | ---- | -------- | ----------- |
3553
+ | message | string | no | |
3554
+
3555
+ ---
3556
+
3557
+
3558
+
3559
+
3560
+ #### [HasPasswordSuccess](#HasPasswordSuccess)
3561
+
3562
+ | Properties | Type | Nullable | Description |
3563
+ | ---------- | ---- | -------- | ----------- |
3564
+ | result | boolean | no | |
3565
+
3566
+ ---
3567
+
3568
+
3569
+
3570
+
3571
+ #### [LogoutSuccess](#LogoutSuccess)
3572
+
3573
+ | Properties | Type | Nullable | Description |
3574
+ | ---------- | ---- | -------- | ----------- |
3575
+ | logout | boolean | no | |
3576
+
3577
+ ---
3578
+
3579
+
3580
+
3581
+
3582
+ #### [BlockUserSuccess](#BlockUserSuccess)
3583
+
3584
+ | Properties | Type | Nullable | Description |
3585
+ | ---------- | ---- | -------- | ----------- |
3586
+ | success | boolean | no | |
3587
+
3588
+ ---
3589
+
3590
+
3591
+
3592
+
3593
+ #### [ArchiveUserSuccess](#ArchiveUserSuccess)
3594
+
3595
+ | Properties | Type | Nullable | Description |
3596
+ | ---------- | ---- | -------- | ----------- |
3597
+ | success | boolean | no | |
3598
+
3599
+ ---
3600
+
3601
+
3602
+
3603
+
3604
+ #### [DeleteUserSuccess](#DeleteUserSuccess)
3605
+
3606
+ | Properties | Type | Nullable | Description |
3607
+ | ---------- | ---- | -------- | ----------- |
3608
+ | success | boolean | no | |
3609
+
3610
+ ---
3611
+
3612
+
3613
+
3614
+
3615
+ #### [UnDeleteUserSuccess](#UnDeleteUserSuccess)
3616
+
3617
+ | Properties | Type | Nullable | Description |
3618
+ | ---------- | ---- | -------- | ----------- |
3619
+ | success | boolean | no | |
3620
+
3621
+ ---
3622
+
3623
+
3624
+
3625
+
3626
+ #### [OtpSuccess](#OtpSuccess)
3627
+
3628
+ | Properties | Type | Nullable | Description |
3629
+ | ---------- | ---- | -------- | ----------- |
3630
+ | resend_timer | number | no | |
3631
+ | resend_token | string | no | |
3632
+ | register_token | string | no | |
3633
+ | success | boolean | no | |
3634
+ | request_id | string | no | |
3635
+ | message | string | no | |
3636
+ | mobile | string | no | |
3637
+ | country_code | string | no | |
3638
+
3639
+ ---
3640
+
3641
+
3642
+
3643
+
3644
+ #### [EmailOtpSuccess](#EmailOtpSuccess)
3645
+
3646
+ | Properties | Type | Nullable | Description |
3647
+ | ---------- | ---- | -------- | ----------- |
3648
+ | success | boolean | no | |
3649
+
3650
+ ---
3651
+
3652
+
3653
+
3654
+
3655
+ #### [SessionListSuccess](#SessionListSuccess)
3656
+
3657
+ | Properties | Type | Nullable | Description |
3658
+ | ---------- | ---- | -------- | ----------- |
3659
+ | sessions | [string] | no | |
3660
+
3661
+ ---
3662
+
3663
+
3664
+
3665
+
3666
+ #### [VerifyMobileOTPSuccess](#VerifyMobileOTPSuccess)
3667
+
3668
+ | Properties | Type | Nullable | Description |
3669
+ | ---------- | ---- | -------- | ----------- |
3670
+ | user | [UserSchema](#UserSchema) | no | |
3671
+ | verify_mobile_link | boolean | no | |
3672
+
3673
+ ---
3674
+
3675
+
3676
+
3677
+
3678
+ #### [VerifyEmailOTPSuccess](#VerifyEmailOTPSuccess)
3679
+
3680
+ | Properties | Type | Nullable | Description |
3681
+ | ---------- | ---- | -------- | ----------- |
3682
+ | user | [UserSchema](#UserSchema) | no | |
3683
+ | verify_email_link | boolean | no | |
3684
+
3685
+ ---
3686
+
3687
+
3688
+
3689
+
3690
+ #### [SendMobileVerifyLinkSuccess](#SendMobileVerifyLinkSuccess)
3691
+
3692
+ | Properties | Type | Nullable | Description |
3693
+ | ---------- | ---- | -------- | ----------- |
3694
+ | verify_mobile_link | boolean | no | |
3695
+
3696
+ ---
3697
+
3698
+
3699
+
3700
+
3701
+ #### [SendEmailVerifyLinkSuccess](#SendEmailVerifyLinkSuccess)
3702
+
3703
+ | Properties | Type | Nullable | Description |
3704
+ | ---------- | ---- | -------- | ----------- |
3705
+ | verify_email_link | boolean | no | |
3706
+
3707
+ ---
3708
+
3709
+
3710
+
3711
+
3712
+ #### [UserSearchResponseSchema](#UserSearchResponseSchema)
3713
+
3714
+ | Properties | Type | Nullable | Description |
3715
+ | ---------- | ---- | -------- | ----------- |
3716
+ | users | [[UserSchema](#UserSchema)] | no | |
3717
+
3718
+ ---
3719
+
3720
+
3721
+
3722
+
3723
+ #### [CustomerListResponseSchema](#CustomerListResponseSchema)
3724
+
3725
+ | Properties | Type | Nullable | Description |
3726
+ | ---------- | ---- | -------- | ----------- |
3727
+ | items | [[UserSchema](#UserSchema)] | no | |
3728
+ | page | [PaginationSchema](#PaginationSchema) | no | |
3729
+
3730
+ ---
3731
+
3732
+
3733
+
3734
+
3735
+ #### [PaginationSchema](#PaginationSchema)
3736
+
3737
+ | Properties | Type | Nullable | Description |
3738
+ | ---------- | ---- | -------- | ----------- |
3739
+ | size | number | no | |
3740
+ | item_total | number | no | |
3741
+ | has_next | boolean | no | |
3742
+ | type | string | no | |
3743
+ | current | number | no | |
3744
+
3745
+ ---
3746
+
3747
+
3748
+
3749
+
3750
+ #### [SessionListResponseSchema](#SessionListResponseSchema)
3751
+
3752
+ | Properties | Type | Nullable | Description |
3753
+ | ---------- | ---- | -------- | ----------- |
3754
+ | items | [string] | no | |
3755
+
3756
+ ---
3757
+
3758
+
3759
+
3760
+
3761
+ #### [SessionDeleteResponseSchema](#SessionDeleteResponseSchema)
3762
+
3763
+ | Properties | Type | Nullable | Description |
3764
+ | ---------- | ---- | -------- | ----------- |
3765
+ | items | [string] | no | |
3766
+
3767
+ ---
3768
+
3769
+
3770
+
3771
+
3772
+ #### [UnauthorizedSchema](#UnauthorizedSchema)
3773
+
3774
+ | Properties | Type | Nullable | Description |
3775
+ | ---------- | ---- | -------- | ----------- |
3776
+ | message | string | no | |
3777
+
3778
+ ---
3779
+
3780
+
3781
+
3782
+
3783
+ #### [UnauthenticatedSchema](#UnauthenticatedSchema)
3784
+
3785
+ | Properties | Type | Nullable | Description |
3786
+ | ---------- | ---- | -------- | ----------- |
3787
+ | authenticated | boolean | no | |
3788
+
3789
+ ---
3790
+
3791
+
3792
+
3793
+
3794
+ #### [NotFoundSchema](#NotFoundSchema)
3795
+
3796
+ | Properties | Type | Nullable | Description |
3797
+ | ---------- | ---- | -------- | ----------- |
3798
+ | message | string | no | |
3799
+
3800
+ ---
3801
+
3802
+
3803
+
3804
+
3805
+ #### [AuthenticationInternalServerErrorSchema](#AuthenticationInternalServerErrorSchema)
3806
+
3807
+ | Properties | Type | Nullable | Description |
3808
+ | ---------- | ---- | -------- | ----------- |
3809
+ | message | string | no | |
3810
+
3811
+ ---
3812
+
3813
+
3814
+
3815
+
3816
+ #### [AuthenticationApiErrorSchema](#AuthenticationApiErrorSchema)
3817
+
3818
+ | Properties | Type | Nullable | Description |
3819
+ | ---------- | ---- | -------- | ----------- |
3820
+ | message | string | no | |
3821
+
3822
+ ---
3823
+
3824
+
3825
+
3826
+
3827
+ #### [ProfileEditSuccessSchema](#ProfileEditSuccessSchema)
3828
+
3829
+ | Properties | Type | Nullable | Description |
3830
+ | ---------- | ---- | -------- | ----------- |
3831
+ | email | string | no | |
3832
+ | verify_email_otp | boolean | no | |
3833
+ | verify_email_link | boolean | no | |
3834
+ | verify_mobile_otp | boolean | no | |
3835
+ | user | string | no | |
3836
+ | register_token | string | no | |
3837
+ | user_exists | boolean | no | |
3838
+
3839
+ ---
3840
+
3841
+
3842
+
3843
+
3844
+ #### [FormRegisterRequestSchemaPhone](#FormRegisterRequestSchemaPhone)
3845
+
3846
+ | Properties | Type | Nullable | Description |
3847
+ | ---------- | ---- | -------- | ----------- |
3848
+ | country_code | string | no | |
3849
+ | mobile | string | no | |
3850
+
3851
+ ---
3852
+
3853
+
3854
+
3855
+
3856
+ #### [OAuthRequestSchemaOauth2](#OAuthRequestSchemaOauth2)
3857
+
3858
+ | Properties | Type | Nullable | Description |
3859
+ | ---------- | ---- | -------- | ----------- |
3860
+ | access_token | string | no | |
3861
+ | expiry | number | no | |
3862
+ | refresh_token | string | no | |
3863
+
3864
+ ---
3865
+
3866
+
3867
+
3868
+
3869
+ #### [OAuthRequestSchemaProfile](#OAuthRequestSchemaProfile)
3870
+
3871
+ | Properties | Type | Nullable | Description |
3872
+ | ---------- | ---- | -------- | ----------- |
3873
+ | last_name | string | no | |
3874
+ | image | string | no | |
3875
+ | id | string | no | |
3876
+ | email | string | no | |
3877
+ | full_name | string | no | |
3878
+ | first_name | string | no | |
3879
+
3880
+ ---
3881
+
3882
+
3883
+
3884
+
3885
+ #### [OAuthRequestAppleSchemaOauth](#OAuthRequestAppleSchemaOauth)
3886
+
3887
+ | Properties | Type | Nullable | Description |
3888
+ | ---------- | ---- | -------- | ----------- |
3889
+ | identity_token | string | no | |
3890
+
3891
+ ---
3892
+
3893
+
3894
+
3895
+
3896
+ #### [OAuthRequestAppleSchemaProfile](#OAuthRequestAppleSchemaProfile)
3897
+
3898
+ | Properties | Type | Nullable | Description |
3899
+ | ---------- | ---- | -------- | ----------- |
3900
+ | last_name | string | no | |
3901
+ | full_name | string | no | |
3902
+ | first_name | string | no | |
3903
+
3904
+ ---
3905
+
3906
+
3907
+
3908
+
3909
+ #### [AuthSuccessUser](#AuthSuccessUser)
3910
+
3911
+ | Properties | Type | Nullable | Description |
3912
+ | ---------- | ---- | -------- | ----------- |
3913
+ | first_name | string | no | |
3914
+ | last_name | string | no | |
3915
+ | debug | [AuthSuccessUserDebug](#AuthSuccessUserDebug) | no | |
3916
+ | active | boolean | no | |
3917
+ | emails | [AuthSuccessUserEmails](#AuthSuccessUserEmails) | no | |
3918
+
3919
+ ---
3920
+
3921
+
3922
+
3923
+
3924
+ #### [AuthSuccessUserDebug](#AuthSuccessUserDebug)
3925
+
3926
+ | Properties | Type | Nullable | Description |
3927
+ | ---------- | ---- | -------- | ----------- |
3928
+ | platform | string | no | |
3929
+
3930
+ ---
3931
+
3932
+
3933
+
3934
+
3935
+ #### [AuthSuccessUserEmails](#AuthSuccessUserEmails)
3936
+
3937
+ | Properties | Type | Nullable | Description |
3938
+ | ---------- | ---- | -------- | ----------- |
3939
+ | email | string | no | |
3940
+ | verified | boolean | no | |
3941
+ | primary | boolean | no | |
3942
+ | active | boolean | no | |
3943
+
3944
+ ---
3945
+
3946
+
3947
+
3948
+
3949
+ #### [CreateUserRequestSchema](#CreateUserRequestSchema)
3950
+
3951
+ | Properties | Type | Nullable | Description |
3952
+ | ---------- | ---- | -------- | ----------- |
3953
+ | phone_number | string | yes | |
3954
+ | email | string | no | |
3955
+ | first_name | string | no | |
3956
+ | last_name | string | no | |
3957
+ | gender | string | no | |
3958
+ | username | string | yes | |
3959
+ | meta | string | no | |
3960
+
3961
+ ---
3962
+
3963
+
3964
+
3965
+
3966
+ #### [CreateUserResponseSchema](#CreateUserResponseSchema)
3967
+
3968
+ | Properties | Type | Nullable | Description |
3969
+ | ---------- | ---- | -------- | ----------- |
3970
+ | user | [UserSchema](#UserSchema) | no | |
3971
+
3972
+ ---
3973
+
3974
+
3975
+
3976
+
3977
+ #### [CreateUserSessionRequestSchema](#CreateUserSessionRequestSchema)
3978
+
3979
+ | Properties | Type | Nullable | Description |
3980
+ | ---------- | ---- | -------- | ----------- |
3981
+ | domain | string | no | |
3982
+ | max_age | number | no | |
3983
+ | user_id | string | no | |
3984
+
3985
+ ---
3986
+
3987
+
3988
+
3989
+
3990
+ #### [CreateUserSessionResponseSchema](#CreateUserSessionResponseSchema)
3991
+
3992
+ | Properties | Type | Nullable | Description |
3993
+ | ---------- | ---- | -------- | ----------- |
3994
+ | domain | string | no | |
3995
+ | max_age | number | no | |
3996
+ | secure | boolean | no | |
3997
+ | http_only | boolean | no | |
3998
+ | cookie | string | no | |
3999
+
4000
+ ---
4001
+
4002
+
4003
+
4004
+
4005
+ #### [PlatformSchema](#PlatformSchema)
4006
+
4007
+ | Properties | Type | Nullable | Description |
4008
+ | ---------- | ---- | -------- | ----------- |
4009
+ | display | string | no | |
4010
+ | look_and_feel | [LookAndFeel](#LookAndFeel) | no | |
4011
+ | updated_at | string | no | |
4012
+ | active | boolean | no | |
4013
+ | forgot_password | boolean | no | |
4014
+ | login | [Login](#Login) | no | |
4015
+ | skip_captcha | boolean | no | |
4016
+ | name | string | no | |
4017
+ | meta | [MetaSchema](#MetaSchema) | no | |
4018
+ | _id | string | no | |
4019
+ | social | [Social](#Social) | no | |
4020
+ | required_fields | [RequiredFields](#RequiredFields) | no | |
4021
+ | register_required_fields | [RegisterRequiredFields](#RegisterRequiredFields) | no | |
4022
+ | skip_login | boolean | no | |
4023
+ | flash_card | [FlashCard](#FlashCard) | no | |
4024
+ | subtext | string | no | |
4025
+ | social_tokens | [SocialTokens](#SocialTokens) | no | |
4026
+ | created_at | string | no | |
4027
+ | register | boolean | no | |
4028
+ | mobile_image | string | no | |
4029
+ | desktop_image | string | no | |
4030
+ | delete_account_day | number | no | |
4031
+ | delete_account_reasons | [[DeleteAccountReasons](#DeleteAccountReasons)] | no | |
4032
+ | delete_account_consent | string | no | |
4033
+
4034
+ ---
4035
+
4036
+
4037
+
4038
+
4039
+ #### [LookAndFeel](#LookAndFeel)
4040
+
4041
+ | Properties | Type | Nullable | Description |
4042
+ | ---------- | ---- | -------- | ----------- |
4043
+ | card_position | string | no | |
4044
+ | background_color | string | no | |
4045
+
4046
+ ---
4047
+
4048
+
4049
+
4050
+
4051
+ #### [Login](#Login)
4052
+
4053
+ | Properties | Type | Nullable | Description |
4054
+ | ---------- | ---- | -------- | ----------- |
4055
+ | password | boolean | no | |
4056
+ | otp | boolean | no | |
4057
+
4058
+ ---
4059
+
4060
+
4061
+
4062
+
4063
+ #### [MetaSchema](#MetaSchema)
4064
+
4065
+ | Properties | Type | Nullable | Description |
4066
+ | ---------- | ---- | -------- | ----------- |
4067
+ | fynd_default | boolean | no | |
4068
+
4069
+ ---
4070
+
4071
+
4072
+
4073
+
4074
+ #### [Social](#Social)
4075
+
4076
+ | Properties | Type | Nullable | Description |
4077
+ | ---------- | ---- | -------- | ----------- |
4078
+ | account_kit | boolean | no | |
4079
+ | facebook | boolean | no | |
4080
+ | google | boolean | no | |
4081
+ | apple | boolean | no | |
4082
+
4083
+ ---
4084
+
4085
+
4086
+
4087
+
4088
+ #### [RequiredFields](#RequiredFields)
4089
+
4090
+ | Properties | Type | Nullable | Description |
4091
+ | ---------- | ---- | -------- | ----------- |
4092
+ | email | [PlatformEmail](#PlatformEmail) | no | |
4093
+ | mobile | [PlatformMobile](#PlatformMobile) | no | |
4094
+
4095
+ ---
4096
+
4097
+
4098
+
4099
+
4100
+ #### [PlatformEmail](#PlatformEmail)
4101
+
4102
+ | Properties | Type | Nullable | Description |
4103
+ | ---------- | ---- | -------- | ----------- |
4104
+ | is_required | boolean | no | |
4105
+ | level | string | no | |
4106
+
4107
+ ---
4108
+
4109
+
4110
+
4111
+
4112
+ #### [PlatformMobile](#PlatformMobile)
4113
+
4114
+ | Properties | Type | Nullable | Description |
4115
+ | ---------- | ---- | -------- | ----------- |
4116
+ | is_required | boolean | no | |
4117
+ | level | string | no | |
4118
+
4119
+ ---
4120
+
4121
+
4122
+
4123
+
4124
+ #### [RegisterRequiredFields](#RegisterRequiredFields)
4125
+
4126
+ | Properties | Type | Nullable | Description |
4127
+ | ---------- | ---- | -------- | ----------- |
4128
+ | email | [RegisterRequiredFieldsEmail](#RegisterRequiredFieldsEmail) | no | |
4129
+ | mobile | [RegisterRequiredFieldsMobile](#RegisterRequiredFieldsMobile) | no | |
4130
+
4131
+ ---
4132
+
4133
+
4134
+
4135
+
4136
+ #### [RegisterRequiredFieldsEmail](#RegisterRequiredFieldsEmail)
4137
+
4138
+ | Properties | Type | Nullable | Description |
4139
+ | ---------- | ---- | -------- | ----------- |
4140
+ | is_required | boolean | no | |
4141
+ | level | string | no | |
4142
+
4143
+ ---
4144
+
4145
+
4146
+
4147
+
4148
+ #### [RegisterRequiredFieldsMobile](#RegisterRequiredFieldsMobile)
4149
+
4150
+ | Properties | Type | Nullable | Description |
4151
+ | ---------- | ---- | -------- | ----------- |
4152
+ | is_required | boolean | no | |
4153
+ | level | string | no | |
4154
+
4155
+ ---
4156
+
4157
+
4158
+
4159
+
4160
+ #### [FlashCard](#FlashCard)
4161
+
4162
+ | Properties | Type | Nullable | Description |
4163
+ | ---------- | ---- | -------- | ----------- |
4164
+ | text | string | no | |
4165
+ | text_color | string | no | |
4166
+ | background_color | string | no | |
4167
+
4168
+ ---
4169
+
4170
+
4171
+
4172
+
4173
+ #### [SocialTokens](#SocialTokens)
4174
+
4175
+ | Properties | Type | Nullable | Description |
4176
+ | ---------- | ---- | -------- | ----------- |
4177
+ | facebook | [Facebook](#Facebook) | no | |
4178
+ | account_kit | [Accountkit](#Accountkit) | no | |
4179
+ | google | [Google](#Google) | no | |
4180
+
4181
+ ---
4182
+
4183
+
4184
+
4185
+
4186
+ #### [DeleteAccountReasons](#DeleteAccountReasons)
4187
+
4188
+ | Properties | Type | Nullable | Description |
4189
+ | ---------- | ---- | -------- | ----------- |
4190
+ | reason_text | string | no | |
4191
+ | reason_id | string | no | |
4192
+ | show_text_area | boolean | no | |
4193
+
4194
+ ---
4195
+
4196
+
4197
+
4198
+
4199
+ #### [DeleteAccountConsent](#DeleteAccountConsent)
4200
+
4201
+ | Properties | Type | Nullable | Description |
4202
+ | ---------- | ---- | -------- | ----------- |
4203
+ | consent_text | string | no | |
4204
+
4205
+ ---
4206
+
4207
+
4208
+
4209
+
4210
+ #### [Facebook](#Facebook)
4211
+
4212
+ | Properties | Type | Nullable | Description |
4213
+ | ---------- | ---- | -------- | ----------- |
4214
+ | app_id | string | no | |
4215
+
4216
+ ---
4217
+
4218
+
4219
+
4220
+
4221
+ #### [Accountkit](#Accountkit)
4222
+
4223
+ | Properties | Type | Nullable | Description |
4224
+ | ---------- | ---- | -------- | ----------- |
4225
+ | app_id | string | no | |
4226
+
4227
+ ---
4228
+
4229
+
4230
+
4231
+
4232
+ #### [Google](#Google)
4233
+
4234
+ | Properties | Type | Nullable | Description |
4235
+ | ---------- | ---- | -------- | ----------- |
4236
+ | app_id | string | no | |
4237
+
4238
+ ---
4239
+
4240
+
4241
+
4242
+
4243
+ #### [UpdateUserRequestSchema](#UpdateUserRequestSchema)
4244
+
4245
+ | Properties | Type | Nullable | Description |
4246
+ | ---------- | ---- | -------- | ----------- |
4247
+ | first_name | string | no | |
4248
+ | last_name | string | no | |
4249
+ | gender | string | no | |
4250
+ | external_id | string | no | |
4251
+ | meta | string | no | |
4252
+
4253
+ ---
4254
+
4255
+
4256
+
4257
+
4258
+ #### [UserSchema](#UserSchema)
4259
+
4260
+ | Properties | Type | Nullable | Description |
4261
+ | ---------- | ---- | -------- | ----------- |
4262
+ | application_id | string | no | |
4263
+ | user_id | string | no | |
4264
+ | first_name | string | no | |
4265
+ | meta | string | no | |
4266
+ | last_name | string | no | |
4267
+ | phone_numbers | [[PhoneNumber](#PhoneNumber)] | no | |
4268
+ | emails | [[Email](#Email)] | no | |
4269
+ | gender | string | no | |
4270
+ | dob | string | no | |
4271
+ | active | boolean | no | |
4272
+ | profile_pic_url | string | no | |
4273
+ | username | string | no | |
4274
+ | account_type | string | no | |
4275
+ | debug | [Debug](#Debug) | no | |
4276
+ | has_old_password_hash | boolean | no | |
4277
+ | _id | string | no | |
4278
+ | created_at | string | no | |
4279
+ | updated_at | string | no | |
4280
+
4281
+ ---
4282
+
4283
+
4284
+
4285
+
4286
+ #### [PhoneNumber](#PhoneNumber)
4287
+
4288
+ | Properties | Type | Nullable | Description |
4289
+ | ---------- | ---- | -------- | ----------- |
4290
+ | active | boolean | no | |
4291
+ | primary | boolean | no | |
4292
+ | verified | boolean | no | |
4293
+ | phone | string | no | |
4294
+ | country_code | number | no | |
4295
+
4296
+ ---
4297
+
4298
+
4299
+
4300
+
4301
+ #### [Email](#Email)
4302
+
4303
+ | Properties | Type | Nullable | Description |
4304
+ | ---------- | ---- | -------- | ----------- |
4305
+ | primary | boolean | no | |
4306
+ | verified | boolean | no | |
4307
+ | email | string | no | |
4308
+ | active | boolean | no | |
4309
+
4310
+ ---
4311
+
4312
+
4313
+
4314
+
4315
+ #### [Debug](#Debug)
4316
+
4317
+ | Properties | Type | Nullable | Description |
4318
+ | ---------- | ---- | -------- | ----------- |
4319
+ | source | string | no | |
4320
+ | platform | string | no | |
4321
+
4322
+ ---
4323
+
4324
+
4325
+
4326
+