@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,2141 @@
1
+
2
+
3
+
4
+
5
+ ##### [Back to Platform docs](./README.md)
6
+
7
+ ## CompanyProfile Methods
8
+
9
+ * [cbsOnboardGet](#cbsonboardget)
10
+ * [updateCompany](#updatecompany)
11
+ * [getCompanyMetrics](#getcompanymetrics)
12
+ * [getBrand](#getbrand)
13
+ * [editBrand](#editbrand)
14
+ * [createBrand](#createbrand)
15
+ * [getBrands](#getbrands)
16
+ * [createCompanyBrandMapping](#createcompanybrandmapping)
17
+ * [getLocations](#getlocations)
18
+ * [createLocation](#createlocation)
19
+ * [getLocationDetail](#getlocationdetail)
20
+ * [updateLocation](#updatelocation)
21
+ * [createLocationBulk](#createlocationbulk)
22
+ * [getOptimalLocations](#getoptimallocations)
23
+
24
+
25
+
26
+ ## Methods with example and description
27
+
28
+
29
+ ### cbsOnboardGet
30
+ Get company profile
31
+
32
+
33
+
34
+ ```javascript
35
+ // Promise
36
+ const promise = client.companyProfile.cbsOnboardGet();
37
+
38
+ // Async/Await
39
+ const data = await client.companyProfile.cbsOnboardGet();
40
+ ```
41
+
42
+
43
+
44
+
45
+
46
+
47
+ This API allows to view the company profile of the seller account.
48
+
49
+ *Returned Response:*
50
+
51
+
52
+
53
+
54
+ [GetCompanyProfileSerializerResponse](#GetCompanyProfileSerializerResponse)
55
+
56
+ Company profile object. See example below or refer `GetCompanyProfileSerializerResponse` for details
57
+
58
+
59
+
60
+
61
+ <details>
62
+ <summary><i>&nbsp; Example:</i></summary>
63
+
64
+ ```json
65
+ {
66
+ "documents": [
67
+ {
68
+ "verified": true,
69
+ "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED",
70
+ "value": "AALCA0442L",
71
+ "type": "pan"
72
+ }
73
+ ],
74
+ "created_by": {
75
+ "user_id": "123",
76
+ "username": "917827311650_22960"
77
+ },
78
+ "business_info": "I sell",
79
+ "franchise_enabled": true,
80
+ "company_type": "mbo",
81
+ "warnings": {},
82
+ "business_details": {
83
+ "website": {
84
+ "url": "https://www.google.com"
85
+ }
86
+ },
87
+ "addresses": [
88
+ {
89
+ "country": "India",
90
+ "longitude": 72.8231511,
91
+ "state": "Maharashtra",
92
+ "address1": "A/204, Sai Vandan, Tulinj Road. Nallasopara East, ",
93
+ "country_code": "IN",
94
+ "latitude": 19.4232024,
95
+ "pincode": 401209,
96
+ "address_type": "office",
97
+ "city": "Mumbai"
98
+ },
99
+ {
100
+ "country": "India",
101
+ "longitude": 72.8231511,
102
+ "state": "Maharashtra",
103
+ "address1": "A/204, Sai Vandan, Tulinj Road. Nallasopara East, ",
104
+ "country_code": "IN",
105
+ "latitude": 19.4232024,
106
+ "pincode": 401209,
107
+ "address_type": "registered",
108
+ "city": "Mumbai"
109
+ }
110
+ ],
111
+ "modified_by": {
112
+ "user_id": "123",
113
+ "username": "917827311650_22960"
114
+ },
115
+ "notification_emails": [
116
+ "gaurangpatel@gofynd.com"
117
+ ],
118
+ "business_type": "huf",
119
+ "name": "Cache Company",
120
+ "stage": "verified",
121
+ "uid": 1,
122
+ "business_country_info": {
123
+ "country": "India",
124
+ "country_code": "IN"
125
+ }
126
+ }
127
+ ```
128
+ </details>
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ ---
139
+
140
+
141
+ ### updateCompany
142
+ Edit company profile
143
+
144
+
145
+
146
+ ```javascript
147
+ // Promise
148
+ const promise = client.companyProfile.updateCompany({ body : value });
149
+
150
+ // Async/Await
151
+ const data = await client.companyProfile.updateCompany({ body : value });
152
+ ```
153
+
154
+
155
+
156
+
157
+
158
+ | Argument | Type | Required | Description |
159
+ | --------- | ----- | -------- | ----------- |
160
+ | body | [UpdateCompany](#UpdateCompany) | yes | Request body |
161
+
162
+
163
+ This API allows to edit the company profile of the seller account.
164
+
165
+ *Returned Response:*
166
+
167
+
168
+
169
+
170
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
171
+
172
+ Returns a success message
173
+
174
+
175
+
176
+
177
+ <details>
178
+ <summary><i>&nbsp; Example:</i></summary>
179
+
180
+ ```json
181
+ {
182
+ "uid": 1,
183
+ "success": true
184
+ }
185
+ ```
186
+ </details>
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+ ---
197
+
198
+
199
+ ### getCompanyMetrics
200
+ Get company metrics
201
+
202
+
203
+
204
+ ```javascript
205
+ // Promise
206
+ const promise = client.companyProfile.getCompanyMetrics();
207
+
208
+ // Async/Await
209
+ const data = await client.companyProfile.getCompanyMetrics();
210
+ ```
211
+
212
+
213
+
214
+
215
+
216
+
217
+ This API allows to view the company metrics, i.e. the status of its brand and stores. Also its allows to view the number of products, company documents & store documents which are verified and unverified.
218
+
219
+ *Returned Response:*
220
+
221
+
222
+
223
+
224
+ [MetricsSerializer](#MetricsSerializer)
225
+
226
+ Metrics response object. See example below or refer `MetricsSerializer` for details
227
+
228
+
229
+
230
+
231
+ <details>
232
+ <summary><i>&nbsp; Example:</i></summary>
233
+
234
+ ```json
235
+ {
236
+ "uid": 1,
237
+ "stage": "complete",
238
+ "store": {
239
+ "verified": 1,
240
+ "pending": 1
241
+ },
242
+ "brand": {
243
+ "verified": 1,
244
+ "pending": 1
245
+ },
246
+ "product": {
247
+ "verified": 0,
248
+ "pending": 0
249
+ },
250
+ "company_documents": {
251
+ "verified": 1,
252
+ "pending": 0
253
+ },
254
+ "store_documents": {
255
+ "verified": 0,
256
+ "pending": 2
257
+ }
258
+ }
259
+ ```
260
+ </details>
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+ ---
271
+
272
+
273
+ ### getBrand
274
+ Get a single brand.
275
+
276
+
277
+
278
+ ```javascript
279
+ // Promise
280
+ const promise = client.companyProfile.getBrand({ brandId : value });
281
+
282
+ // Async/Await
283
+ const data = await client.companyProfile.getBrand({ brandId : value });
284
+ ```
285
+
286
+
287
+
288
+
289
+
290
+ | Argument | Type | Required | Description |
291
+ | --------- | ----- | -------- | ----------- |
292
+ | brandId | string | yes | Id of the brand to be viewed. |
293
+
294
+
295
+
296
+ This API helps to get data associated to a particular brand.
297
+
298
+ *Returned Response:*
299
+
300
+
301
+
302
+
303
+ [GetBrandResponseSerializer](#GetBrandResponseSerializer)
304
+
305
+ Brand object. See example below or refer `GetBrandResponseSerializer` for details
306
+
307
+
308
+
309
+
310
+ <details>
311
+ <summary><i>&nbsp; Example:</i></summary>
312
+
313
+ ```json
314
+ {
315
+ "stage": "verified",
316
+ "_custom_json": {},
317
+ "uid": 1,
318
+ "logo": "http://cdn4.gofynd.com/media/logo/brand/original/4597_40d1ce44d61940d4829a3c54951bd9ee.jpg",
319
+ "warnings": {},
320
+ "_locale_language": {},
321
+ "name": "edited brand",
322
+ "slug_key": "brand-2",
323
+ "banner": {
324
+ "portrait": "http://cdn4.gofynd.com/media/banner_portrait/brand/original/7021_16fc50205c40477daf419b64ec64c64c.jpg",
325
+ "landscape": "http://cdn4.gofynd.com/media/banner/brand/original/7020_f9e91f7d501c4f2985c09bd196ed304d.jpg"
326
+ },
327
+ "created_by": {
328
+ "username": "silverbolt",
329
+ "user_id": "0"
330
+ },
331
+ "modified_by": {
332
+ "username": "917827311650_22960",
333
+ "user_id": "123"
334
+ },
335
+ "verified_by": {
336
+ "username": "917827311650_22960",
337
+ "user_id": "123"
338
+ },
339
+ "synonyms": [
340
+ "xyz"
341
+ ]
342
+ }
343
+ ```
344
+ </details>
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+ ---
355
+
356
+
357
+ ### editBrand
358
+ Edit a brand.
359
+
360
+
361
+
362
+ ```javascript
363
+ // Promise
364
+ const promise = client.companyProfile.editBrand({ brandId : value,
365
+ body : value });
366
+
367
+ // Async/Await
368
+ const data = await client.companyProfile.editBrand({ brandId : value,
369
+ body : value });
370
+ ```
371
+
372
+
373
+
374
+
375
+
376
+ | Argument | Type | Required | Description |
377
+ | --------- | ----- | -------- | ----------- |
378
+ | brandId | string | yes | Id of the brand to be viewed. |
379
+ | body | [CreateUpdateBrandRequestSerializer](#CreateUpdateBrandRequestSerializer) | yes | Request body |
380
+
381
+
382
+ This API allows to edit meta of a brand.
383
+
384
+ *Returned Response:*
385
+
386
+
387
+
388
+
389
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
390
+
391
+ Returns a success response
392
+
393
+
394
+
395
+
396
+ <details>
397
+ <summary><i>&nbsp; Example:</i></summary>
398
+
399
+ ```json
400
+ {
401
+ "uid": 1,
402
+ "success": true
403
+ }
404
+ ```
405
+ </details>
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+ ---
416
+
417
+
418
+ ### createBrand
419
+ Create a Brand.
420
+
421
+
422
+
423
+ ```javascript
424
+ // Promise
425
+ const promise = client.companyProfile.createBrand({ body : value });
426
+
427
+ // Async/Await
428
+ const data = await client.companyProfile.createBrand({ body : value });
429
+ ```
430
+
431
+
432
+
433
+
434
+
435
+ | Argument | Type | Required | Description |
436
+ | --------- | ----- | -------- | ----------- |
437
+ | body | [CreateUpdateBrandRequestSerializer](#CreateUpdateBrandRequestSerializer) | yes | Request body |
438
+
439
+
440
+ This API allows to create a brand associated to a company.
441
+
442
+ *Returned Response:*
443
+
444
+
445
+
446
+
447
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
448
+
449
+ Returns a success response
450
+
451
+
452
+
453
+
454
+ <details>
455
+ <summary><i>&nbsp; Example:</i></summary>
456
+
457
+ ```json
458
+ {
459
+ "uid": 1,
460
+ "success": true
461
+ }
462
+ ```
463
+ </details>
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+ ---
474
+
475
+
476
+ ### getBrands
477
+ Get brands associated to a company
478
+
479
+
480
+
481
+ ```javascript
482
+ // Promise
483
+ const promise = client.companyProfile.getBrands({ pageNo : value,
484
+ pageSize : value,
485
+ q : value });
486
+
487
+ // Async/Await
488
+ const data = await client.companyProfile.getBrands({ pageNo : value,
489
+ pageSize : value,
490
+ q : value });
491
+ ```
492
+
493
+
494
+
495
+
496
+
497
+ | Argument | Type | Required | Description |
498
+ | --------- | ----- | -------- | ----------- |
499
+ | pageNo | number | no | The page number to navigate through the given set of results |
500
+ | pageSize | number | no | Number of items to retrieve in each page. Default is 10. |
501
+ | q | string | no | Search term for name. |
502
+
503
+
504
+
505
+ This API helps to get view brands associated to a particular company.
506
+
507
+ *Returned Response:*
508
+
509
+
510
+
511
+
512
+ [CompanyBrandListSerializer](#CompanyBrandListSerializer)
513
+
514
+ Brand object. See example below or refer `CompanyBrandListSerializer` for details
515
+
516
+
517
+
518
+
519
+ <details>
520
+ <summary><i>&nbsp; Example:</i></summary>
521
+
522
+ ```json
523
+ {
524
+ "items": [
525
+ {
526
+ "brand": {
527
+ "stage": "complete",
528
+ "uid": 2,
529
+ "banner": {
530
+ "portrait": "http://cdn4.gofynd.com/media/banner_portrait/brand/original/7021_16fc50205c40477daf419b64ec64c64c.jpg",
531
+ "landscape": "http://cdn4.gofynd.com/media/banner/brand/original/7020_f9e91f7d501c4f2985c09bd196ed304d.jpg"
532
+ },
533
+ "modified_by": {
534
+ "user_id": "123",
535
+ "username": "917827311650_22960"
536
+ },
537
+ "slug_key": "test-post",
538
+ "synonyms": [
539
+ "xyz"
540
+ ],
541
+ "created_on": "2021-02-25T15:21:57.666000+00:00",
542
+ "created_by": {
543
+ "user_id": "123",
544
+ "username": "917827311650_22960"
545
+ },
546
+ "modified_on": "2021-02-25T15:21:57.666000+00:00",
547
+ "name": "test_post",
548
+ "logo": "http://cdn4.gofynd.com/media/logo/brand/original/4597_40d1ce44d61940d4829a3c54951bd9ee.jpg"
549
+ },
550
+ "stage": "complete",
551
+ "uid": 2,
552
+ "modified_by": {
553
+ "user_id": "123",
554
+ "username": "917827311650_22960"
555
+ },
556
+ "company": {
557
+ "business_type": "huf",
558
+ "stage": "complete",
559
+ "uid": 1,
560
+ "addresses": [
561
+ {
562
+ "city": "Mumbai Suburban",
563
+ "latitude": 19.058461,
564
+ "longitude": 72.871395,
565
+ "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
566
+ "country_code": "IN",
567
+ "state": "Maharashtra",
568
+ "country": "India",
569
+ "pincode": 400070,
570
+ "address_type": "office"
571
+ },
572
+ {
573
+ "city": "Mumbai Suburban",
574
+ "latitude": 19.058461,
575
+ "longitude": 72.871395,
576
+ "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
577
+ "country_code": "IN",
578
+ "state": "Maharashtra",
579
+ "country": "India",
580
+ "pincode": 400070,
581
+ "address_type": "registered"
582
+ }
583
+ ],
584
+ "modified_by": {
585
+ "user_id": "-1",
586
+ "username": "silverbolt"
587
+ },
588
+ "company_type": "mbo",
589
+ "created_on": "2021-02-25T15:21:51.526000+00:00",
590
+ "created_by": {
591
+ "user_id": "123",
592
+ "username": "917827311650_22960"
593
+ },
594
+ "modified_on": "2021-02-25T17:44:55.722000+00:00",
595
+ "name": "Cache Company"
596
+ },
597
+ "created_by": {
598
+ "user_id": "123",
599
+ "username": "917827311650_22960"
600
+ }
601
+ }
602
+ ],
603
+ "page": {
604
+ "current": 1,
605
+ "size": 1,
606
+ "has_previous": false,
607
+ "has_next": false,
608
+ "item_count": 1
609
+ }
610
+ }
611
+ ```
612
+ </details>
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+ ---
623
+
624
+
625
+ ### createCompanyBrandMapping
626
+ Create a company brand mapping.
627
+
628
+
629
+
630
+ ```javascript
631
+ // Promise
632
+ const promise = client.companyProfile.createCompanyBrandMapping({ body : value });
633
+
634
+ // Async/Await
635
+ const data = await client.companyProfile.createCompanyBrandMapping({ body : value });
636
+ ```
637
+
638
+
639
+
640
+
641
+
642
+ | Argument | Type | Required | Description |
643
+ | --------- | ----- | -------- | ----------- |
644
+ | body | [CompanyBrandPostRequestSerializer](#CompanyBrandPostRequestSerializer) | yes | Request body |
645
+
646
+
647
+ This API allows to create a company brand mapping, for a already existing brand in the system.
648
+
649
+ *Returned Response:*
650
+
651
+
652
+
653
+
654
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
655
+
656
+ Returns a success response
657
+
658
+
659
+
660
+
661
+ <details>
662
+ <summary><i>&nbsp; Example:</i></summary>
663
+
664
+ ```json
665
+ {
666
+ "success": true
667
+ }
668
+ ```
669
+ </details>
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+ ---
680
+
681
+
682
+ ### getLocations
683
+ Get list of locations
684
+
685
+
686
+
687
+ ```javascript
688
+ // Promise
689
+ const promise = client.companyProfile.getLocations({ storeType : value,
690
+ q : value,
691
+ stage : value,
692
+ pageNo : value,
693
+ pageSize : value,
694
+ locationIds : value });
695
+
696
+ // Async/Await
697
+ const data = await client.companyProfile.getLocations({ storeType : value,
698
+ q : value,
699
+ stage : value,
700
+ pageNo : value,
701
+ pageSize : value,
702
+ locationIds : value });
703
+ ```
704
+
705
+
706
+
707
+
708
+
709
+ | Argument | Type | Required | Description |
710
+ | --------- | ----- | -------- | ----------- |
711
+ | storeType | string | no | Helps to sort the location list on the basis of location type. |
712
+ | q | string | no | Query that is to be searched. |
713
+ | stage | string | no | to filter companies on basis of verified or unverified companies. |
714
+ | pageNo | number | no | The page number to navigate through the given set of results |
715
+ | pageSize | number | no | Number of items to retrieve in each page. Default is 10. |
716
+ | locationIds | Array<number> | no | Helps to filter stores on the basis of uids. |
717
+
718
+
719
+
720
+ This API allows to view all the locations associated to a company.
721
+
722
+ *Returned Response:*
723
+
724
+
725
+
726
+
727
+ [LocationListSerializer](#LocationListSerializer)
728
+
729
+ Company profile object. See example below or refer `LocationListSerializer` for details
730
+
731
+
732
+
733
+
734
+ <details>
735
+ <summary><i>&nbsp; Example:</i></summary>
736
+
737
+ ```json
738
+ {
739
+ "items": [
740
+ {
741
+ "company": {
742
+ "business_type": "huf",
743
+ "stage": "complete",
744
+ "uid": 1,
745
+ "addresses": [
746
+ {
747
+ "city": "Mumbai Suburban",
748
+ "latitude": 19.058461,
749
+ "longitude": 72.871395,
750
+ "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
751
+ "country_code": "IN",
752
+ "state": "Maharashtra",
753
+ "country": "India",
754
+ "pincode": 400070,
755
+ "address_type": "office"
756
+ },
757
+ {
758
+ "city": "Mumbai Suburban",
759
+ "latitude": 19.058461,
760
+ "longitude": 72.871395,
761
+ "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
762
+ "country_code": "IN",
763
+ "state": "Maharashtra",
764
+ "country": "India",
765
+ "pincode": 400070,
766
+ "address_type": "registered"
767
+ }
768
+ ],
769
+ "modified_by": {
770
+ "user_id": "-1",
771
+ "username": "silverbolt"
772
+ },
773
+ "company_type": "mbo",
774
+ "created_on": "2021-02-25T15:21:51.526000+00:00",
775
+ "created_by": {
776
+ "user_id": "123",
777
+ "username": "917827311650_22960"
778
+ },
779
+ "modified_on": "2021-02-25T17:44:55.722000+00:00",
780
+ "name": "Cache Company"
781
+ },
782
+ "address": {
783
+ "city": "MUMBAI",
784
+ "latitude": 19.4232024,
785
+ "longitude": 72.8231511,
786
+ "address1": "A/204, SAI VANDAN, NARAYAN NAGAR, TULINJ ROAD",
787
+ "state": "MAHARASHTRA",
788
+ "country": "INDIA",
789
+ "pincode": 401209
790
+ },
791
+ "timing": [
792
+ {
793
+ "closing": {
794
+ "minute": 0,
795
+ "hour": 22
796
+ },
797
+ "opening": {
798
+ "minute": 0,
799
+ "hour": 11
800
+ },
801
+ "open": true,
802
+ "weekday": "monday"
803
+ },
804
+ {
805
+ "closing": {
806
+ "minute": 0,
807
+ "hour": 22
808
+ },
809
+ "opening": {
810
+ "minute": 0,
811
+ "hour": 11
812
+ },
813
+ "open": true,
814
+ "weekday": "tuesday"
815
+ },
816
+ {
817
+ "closing": {
818
+ "minute": 0,
819
+ "hour": 22
820
+ },
821
+ "opening": {
822
+ "minute": 0,
823
+ "hour": 11
824
+ },
825
+ "open": true,
826
+ "weekday": "wednesday"
827
+ },
828
+ {
829
+ "closing": {
830
+ "minute": 0,
831
+ "hour": 22
832
+ },
833
+ "opening": {
834
+ "minute": 0,
835
+ "hour": 11
836
+ },
837
+ "open": true,
838
+ "weekday": "thursday"
839
+ },
840
+ {
841
+ "closing": {
842
+ "minute": 0,
843
+ "hour": 22
844
+ },
845
+ "opening": {
846
+ "minute": 0,
847
+ "hour": 11
848
+ },
849
+ "open": true,
850
+ "weekday": "friday"
851
+ },
852
+ {
853
+ "closing": {
854
+ "minute": 0,
855
+ "hour": 22
856
+ },
857
+ "opening": {
858
+ "minute": 0,
859
+ "hour": 11
860
+ },
861
+ "open": true,
862
+ "weekday": "saturday"
863
+ },
864
+ {
865
+ "closing": {
866
+ "minute": 0,
867
+ "hour": 22
868
+ },
869
+ "opening": {
870
+ "minute": 0,
871
+ "hour": 11
872
+ },
873
+ "open": true,
874
+ "weekday": "sunday"
875
+ }
876
+ ],
877
+ "documents": [],
878
+ "display_name": "new store",
879
+ "manager": {
880
+ "name": "Yrf",
881
+ "mobile_no": {
882
+ "country_code": 91,
883
+ "number": "83456774567"
884
+ },
885
+ "email": "gbp@jkl.com"
886
+ },
887
+ "code": "code2",
888
+ "product_return_config": {
889
+ "on_same_store": true
890
+ },
891
+ "created_on": "2021-02-25T15:22:04.913000+00:00",
892
+ "created_by": {
893
+ "user_id": "123",
894
+ "username": "917827311650_22960"
895
+ },
896
+ "name": "location2",
897
+ "gst_credentials": {
898
+ "e_invoice": {
899
+ "enabled": false
900
+ }
901
+ },
902
+ "store_type": "high_street",
903
+ "contact_numbers": [
904
+ {
905
+ "country_code": 91,
906
+ "number": "7208229698"
907
+ }
908
+ ],
909
+ "stage": "complete",
910
+ "uid": 2,
911
+ "notification_emails": []
912
+ }
913
+ ],
914
+ "page": {
915
+ "current": 1,
916
+ "size": 1,
917
+ "has_previous": false,
918
+ "has_next": false,
919
+ "item_count": 1
920
+ }
921
+ }
922
+ ```
923
+ </details>
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+ ---
934
+
935
+
936
+ ### createLocation
937
+ Create a location associated to a company.
938
+
939
+
940
+
941
+ ```javascript
942
+ // Promise
943
+ const promise = client.companyProfile.createLocation({ body : value });
944
+
945
+ // Async/Await
946
+ const data = await client.companyProfile.createLocation({ body : value });
947
+ ```
948
+
949
+
950
+
951
+
952
+
953
+ | Argument | Type | Required | Description |
954
+ | --------- | ----- | -------- | ----------- |
955
+ | body | [LocationSerializer](#LocationSerializer) | yes | Request body |
956
+
957
+
958
+ This API allows to edit a location associated to a company.
959
+
960
+ *Returned Response:*
961
+
962
+
963
+
964
+
965
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
966
+
967
+ Returns a success response
968
+
969
+
970
+
971
+
972
+ <details>
973
+ <summary><i>&nbsp; Example:</i></summary>
974
+
975
+ ```json
976
+ {
977
+ "uid": 1,
978
+ "success": true
979
+ }
980
+ ```
981
+ </details>
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+ ---
992
+
993
+
994
+ ### getLocationDetail
995
+ Get details of a specific location.
996
+
997
+
998
+
999
+ ```javascript
1000
+ // Promise
1001
+ const promise = client.companyProfile.getLocationDetail({ locationId : value });
1002
+
1003
+ // Async/Await
1004
+ const data = await client.companyProfile.getLocationDetail({ locationId : value });
1005
+ ```
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+ | Argument | Type | Required | Description |
1012
+ | --------- | ----- | -------- | ----------- |
1013
+ | locationId | string | yes | Id of the location which you want to view. |
1014
+
1015
+
1016
+
1017
+ This API helps to get data associated to a specific location.
1018
+
1019
+ *Returned Response:*
1020
+
1021
+
1022
+
1023
+
1024
+ [GetLocationSerializer](#GetLocationSerializer)
1025
+
1026
+ Brand object. See example below or refer `GetLocationSerializer` for details
1027
+
1028
+
1029
+
1030
+
1031
+ <details>
1032
+ <summary><i>&nbsp; Example:</i></summary>
1033
+
1034
+ ```json
1035
+ {
1036
+ "verified_on": "2021-02-25T15:22:07.140000+00:00",
1037
+ "company": {
1038
+ "business_type": "huf",
1039
+ "stage": "complete",
1040
+ "uid": 1,
1041
+ "addresses": [
1042
+ {
1043
+ "city": "Mumbai Suburban",
1044
+ "latitude": 19.058461,
1045
+ "longitude": 72.871395,
1046
+ "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
1047
+ "country_code": "IN",
1048
+ "state": "Maharashtra",
1049
+ "country": "India",
1050
+ "pincode": 400070,
1051
+ "address_type": "office"
1052
+ },
1053
+ {
1054
+ "city": "Mumbai Suburban",
1055
+ "latitude": 19.058461,
1056
+ "longitude": 72.871395,
1057
+ "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
1058
+ "country_code": "IN",
1059
+ "state": "Maharashtra",
1060
+ "country": "India",
1061
+ "pincode": 400070,
1062
+ "address_type": "registered"
1063
+ }
1064
+ ],
1065
+ "modified_by": {
1066
+ "user_id": "-1",
1067
+ "username": "silverbolt"
1068
+ },
1069
+ "company_type": "mbo",
1070
+ "created_by": {
1071
+ "user_id": "123",
1072
+ "username": "917827311650_22960"
1073
+ },
1074
+ "name": "Cache Company"
1075
+ },
1076
+ "address": {
1077
+ "city": "MUMBAI",
1078
+ "landmark": "",
1079
+ "latitude": 19.4232024,
1080
+ "longitude": 72.8231511,
1081
+ "address2": "",
1082
+ "address1": "A/204, SAI VANDAN, NARAYAN NAGAR, TULINJ ROAD",
1083
+ "state": "MAHARASHTRA",
1084
+ "country": "INDIA",
1085
+ "pincode": 401209
1086
+ },
1087
+ "timing": [
1088
+ {
1089
+ "closing": {
1090
+ "minute": 0,
1091
+ "hour": 22
1092
+ },
1093
+ "opening": {
1094
+ "minute": 0,
1095
+ "hour": 11
1096
+ },
1097
+ "open": true,
1098
+ "weekday": "monday"
1099
+ },
1100
+ {
1101
+ "closing": {
1102
+ "minute": 0,
1103
+ "hour": 22
1104
+ },
1105
+ "opening": {
1106
+ "minute": 0,
1107
+ "hour": 11
1108
+ },
1109
+ "open": true,
1110
+ "weekday": "tuesday"
1111
+ },
1112
+ {
1113
+ "closing": {
1114
+ "minute": 0,
1115
+ "hour": 22
1116
+ },
1117
+ "opening": {
1118
+ "minute": 0,
1119
+ "hour": 11
1120
+ },
1121
+ "open": true,
1122
+ "weekday": "wednesday"
1123
+ },
1124
+ {
1125
+ "closing": {
1126
+ "minute": 0,
1127
+ "hour": 22
1128
+ },
1129
+ "opening": {
1130
+ "minute": 0,
1131
+ "hour": 11
1132
+ },
1133
+ "open": true,
1134
+ "weekday": "thursday"
1135
+ },
1136
+ {
1137
+ "closing": {
1138
+ "minute": 0,
1139
+ "hour": 22
1140
+ },
1141
+ "opening": {
1142
+ "minute": 0,
1143
+ "hour": 11
1144
+ },
1145
+ "open": true,
1146
+ "weekday": "friday"
1147
+ },
1148
+ {
1149
+ "closing": {
1150
+ "minute": 0,
1151
+ "hour": 22
1152
+ },
1153
+ "opening": {
1154
+ "minute": 0,
1155
+ "hour": 11
1156
+ },
1157
+ "open": true,
1158
+ "weekday": "saturday"
1159
+ },
1160
+ {
1161
+ "closing": {
1162
+ "minute": 0,
1163
+ "hour": 22
1164
+ },
1165
+ "opening": {
1166
+ "minute": 0,
1167
+ "hour": 11
1168
+ },
1169
+ "open": true,
1170
+ "weekday": "sunday"
1171
+ }
1172
+ ],
1173
+ "documents": [],
1174
+ "warnings": {},
1175
+ "display_name": "new store",
1176
+ "manager": {
1177
+ "name": "Yrf",
1178
+ "mobile_no": {
1179
+ "country_code": 91,
1180
+ "number": "83456774567"
1181
+ },
1182
+ "email": "gbp@jkl.com"
1183
+ },
1184
+ "code": "store1",
1185
+ "product_return_config": {
1186
+ "on_same_store": true
1187
+ },
1188
+ "modified_by": {
1189
+ "user_id": "-1",
1190
+ "username": "silverbolt"
1191
+ },
1192
+ "created_by": {
1193
+ "user_id": "123",
1194
+ "username": "917827311650_22960"
1195
+ },
1196
+ "name": "edited_store",
1197
+ "gst_credentials": {
1198
+ "e_invoice": {
1199
+ "enabled": false
1200
+ }
1201
+ },
1202
+ "verified_by": {
1203
+ "user_id": "-1",
1204
+ "username": "silverbolt"
1205
+ },
1206
+ "store_type": "high_street",
1207
+ "contact_numbers": [
1208
+ {
1209
+ "country_code": 91,
1210
+ "number": "7208229698"
1211
+ }
1212
+ ],
1213
+ "stage": "verified",
1214
+ "uid": 1,
1215
+ "notification_emails": []
1216
+ }
1217
+ ```
1218
+ </details>
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+ ---
1229
+
1230
+
1231
+ ### updateLocation
1232
+ Edit a location asscoiated to a company.
1233
+
1234
+
1235
+
1236
+ ```javascript
1237
+ // Promise
1238
+ const promise = client.companyProfile.updateLocation({ locationId : value,
1239
+ body : value });
1240
+
1241
+ // Async/Await
1242
+ const data = await client.companyProfile.updateLocation({ locationId : value,
1243
+ body : value });
1244
+ ```
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+ | Argument | Type | Required | Description |
1251
+ | --------- | ----- | -------- | ----------- |
1252
+ | locationId | string | yes | Id of the location which you want to edit. |
1253
+ | body | [LocationSerializer](#LocationSerializer) | yes | Request body |
1254
+
1255
+
1256
+ This API allows to edit a location associated to a company.
1257
+
1258
+ *Returned Response:*
1259
+
1260
+
1261
+
1262
+
1263
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
1264
+
1265
+ Returns a success response
1266
+
1267
+
1268
+
1269
+
1270
+ <details>
1271
+ <summary><i>&nbsp; Example:</i></summary>
1272
+
1273
+ ```json
1274
+ {
1275
+ "uid": 1,
1276
+ "success": true
1277
+ }
1278
+ ```
1279
+ </details>
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+ ---
1290
+
1291
+
1292
+ ### createLocationBulk
1293
+ Create a location asscoiated to a company in bulk.
1294
+
1295
+
1296
+
1297
+ ```javascript
1298
+ // Promise
1299
+ const promise = client.companyProfile.createLocationBulk({ body : value });
1300
+
1301
+ // Async/Await
1302
+ const data = await client.companyProfile.createLocationBulk({ body : value });
1303
+ ```
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+ | Argument | Type | Required | Description |
1310
+ | --------- | ----- | -------- | ----------- |
1311
+ | body | [BulkLocationSerializer](#BulkLocationSerializer) | yes | Request body |
1312
+
1313
+
1314
+ This API allows to create a location associated to a company.
1315
+
1316
+ *Returned Response:*
1317
+
1318
+
1319
+
1320
+
1321
+ [ProfileSuccessResponse](#ProfileSuccessResponse)
1322
+
1323
+ Returns a success response
1324
+
1325
+
1326
+
1327
+
1328
+ <details>
1329
+ <summary><i>&nbsp; Example:</i></summary>
1330
+
1331
+ ```json
1332
+ {
1333
+ "message": "10 stores inserted",
1334
+ "success": true
1335
+ }
1336
+ ```
1337
+ </details>
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+ ---
1348
+
1349
+
1350
+ ### getOptimalLocations
1351
+ Location Reassignment
1352
+
1353
+
1354
+
1355
+ ```javascript
1356
+ // Promise
1357
+ const promise = client.companyProfile.getOptimalLocations({ body : value });
1358
+
1359
+ // Async/Await
1360
+ const data = await client.companyProfile.getOptimalLocations({ body : value });
1361
+ ```
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ | Argument | Type | Required | Description |
1368
+ | --------- | ----- | -------- | ----------- |
1369
+ | body | [AssignStoreRequestValidator](#AssignStoreRequestValidator) | yes | Request body |
1370
+
1371
+
1372
+
1373
+
1374
+ *Returned Response:*
1375
+
1376
+
1377
+
1378
+
1379
+ [AssignStoreResponseSerializer](#AssignStoreResponseSerializer)
1380
+
1381
+ Returns a success response
1382
+
1383
+
1384
+
1385
+
1386
+ <details>
1387
+ <summary><i>&nbsp; Example:</i></summary>
1388
+
1389
+ ```json
1390
+ {
1391
+ "items": [
1392
+ {
1393
+ "meta": {},
1394
+ "store_id": 11550,
1395
+ "size": "OS",
1396
+ "_id": "61161830f1061e7c7f81d8ed",
1397
+ "store_pincode": 201303,
1398
+ "company_id": 783,
1399
+ "s_city": "NOIDA",
1400
+ "quantity": 1,
1401
+ "price_effective": 995,
1402
+ "status": true,
1403
+ "price_marked": 995,
1404
+ "uid": "11550_000000410234883001",
1405
+ "article_assignment": {
1406
+ "strategy": "app-config",
1407
+ "level": "multi-company"
1408
+ },
1409
+ "item_id": 75252658,
1410
+ "strategy_wise_listing": [],
1411
+ "index": 0
1412
+ }
1413
+ ]
1414
+ }
1415
+ ```
1416
+ </details>
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+ ---
1427
+
1428
+
1429
+
1430
+ ### Schemas
1431
+
1432
+
1433
+
1434
+ #### [GetAddressSerializer](#GetAddressSerializer)
1435
+
1436
+ | Properties | Type | Nullable | Description |
1437
+ | ---------- | ---- | -------- | ----------- |
1438
+ | address1 | string | no | |
1439
+ | longitude | number | no | |
1440
+ | state | string | no | |
1441
+ | latitude | number | no | |
1442
+ | country | string | no | |
1443
+ | address_type | string | no | |
1444
+ | city | string | no | |
1445
+ | country_code | string | no | |
1446
+ | landmark | string | no | |
1447
+ | pincode | number | no | |
1448
+ | address2 | string | no | |
1449
+
1450
+ ---
1451
+
1452
+
1453
+
1454
+
1455
+ #### [BusinessCountryInfo](#BusinessCountryInfo)
1456
+
1457
+ | Properties | Type | Nullable | Description |
1458
+ | ---------- | ---- | -------- | ----------- |
1459
+ | country_code | string | no | |
1460
+ | country | string | no | |
1461
+
1462
+ ---
1463
+
1464
+
1465
+
1466
+
1467
+ #### [UserSerializer](#UserSerializer)
1468
+
1469
+ | Properties | Type | Nullable | Description |
1470
+ | ---------- | ---- | -------- | ----------- |
1471
+ | user_id | string | no | |
1472
+ | username | string | no | |
1473
+ | contact | string | no | |
1474
+
1475
+ ---
1476
+
1477
+
1478
+
1479
+
1480
+ #### [CompanyTaxesSerializer](#CompanyTaxesSerializer)
1481
+
1482
+ | Properties | Type | Nullable | Description |
1483
+ | ---------- | ---- | -------- | ----------- |
1484
+ | rate | number | no | |
1485
+ | effective_date | string | no | |
1486
+ | enable | boolean | no | |
1487
+
1488
+ ---
1489
+
1490
+
1491
+
1492
+
1493
+ #### [Website](#Website)
1494
+
1495
+ | Properties | Type | Nullable | Description |
1496
+ | ---------- | ---- | -------- | ----------- |
1497
+ | url | string | no | |
1498
+
1499
+ ---
1500
+
1501
+
1502
+
1503
+
1504
+ #### [BusinessDetails](#BusinessDetails)
1505
+
1506
+ | Properties | Type | Nullable | Description |
1507
+ | ---------- | ---- | -------- | ----------- |
1508
+ | website | [Website](#Website) | no | |
1509
+
1510
+ ---
1511
+
1512
+
1513
+
1514
+
1515
+ #### [SellerPhoneNumber](#SellerPhoneNumber)
1516
+
1517
+ | Properties | Type | Nullable | Description |
1518
+ | ---------- | ---- | -------- | ----------- |
1519
+ | country_code | number | yes | |
1520
+ | number | string | yes | |
1521
+
1522
+ ---
1523
+
1524
+
1525
+
1526
+
1527
+ #### [ContactDetails](#ContactDetails)
1528
+
1529
+ | Properties | Type | Nullable | Description |
1530
+ | ---------- | ---- | -------- | ----------- |
1531
+ | phone | [[SellerPhoneNumber](#SellerPhoneNumber)] | no | |
1532
+ | emails | [string] | no | |
1533
+
1534
+ ---
1535
+
1536
+
1537
+
1538
+
1539
+ #### [Document](#Document)
1540
+
1541
+ | Properties | Type | Nullable | Description |
1542
+ | ---------- | ---- | -------- | ----------- |
1543
+ | type | string | yes | |
1544
+ | url | string | no | |
1545
+ | verified | boolean | no | |
1546
+ | value | string | yes | |
1547
+ | legal_name | string | no | |
1548
+
1549
+ ---
1550
+
1551
+
1552
+
1553
+
1554
+ #### [GetCompanyProfileSerializerResponse](#GetCompanyProfileSerializerResponse)
1555
+
1556
+ | Properties | Type | Nullable | Description |
1557
+ | ---------- | ---- | -------- | ----------- |
1558
+ | uid | number | yes | |
1559
+ | business_type | string | yes | |
1560
+ | franchise_enabled | boolean | no | |
1561
+ | warnings | string | no | |
1562
+ | mode | string | no | |
1563
+ | addresses | [[GetAddressSerializer](#GetAddressSerializer)] | no | |
1564
+ | name | string | no | |
1565
+ | business_country_info | [BusinessCountryInfo](#BusinessCountryInfo) | no | |
1566
+ | stage | string | no | |
1567
+ | created_by | [UserSerializer](#UserSerializer) | no | |
1568
+ | taxes | [[CompanyTaxesSerializer](#CompanyTaxesSerializer)] | no | |
1569
+ | business_details | [BusinessDetails](#BusinessDetails) | no | |
1570
+ | business_info | string | no | |
1571
+ | verified_by | [UserSerializer](#UserSerializer) | no | |
1572
+ | modified_on | string | no | |
1573
+ | company_type | string | yes | |
1574
+ | contact_details | [ContactDetails](#ContactDetails) | no | |
1575
+ | created_on | string | no | |
1576
+ | documents | [[Document](#Document)] | no | |
1577
+ | notification_emails | [string] | no | |
1578
+ | _custom_json | string | no | |
1579
+ | modified_by | [UserSerializer](#UserSerializer) | no | |
1580
+ | verified_on | string | no | |
1581
+
1582
+ ---
1583
+
1584
+
1585
+
1586
+
1587
+ #### [ErrorResponse](#ErrorResponse)
1588
+
1589
+ | Properties | Type | Nullable | Description |
1590
+ | ---------- | ---- | -------- | ----------- |
1591
+ | message | string | no | |
1592
+ | meta | string | no | |
1593
+ | status | number | no | |
1594
+ | code | string | no | |
1595
+
1596
+ ---
1597
+
1598
+
1599
+
1600
+
1601
+ #### [CompanyTaxesSerializer1](#CompanyTaxesSerializer1)
1602
+
1603
+ | Properties | Type | Nullable | Description |
1604
+ | ---------- | ---- | -------- | ----------- |
1605
+ | rate | number | no | |
1606
+ | effective_date | string | no | |
1607
+ | enable | boolean | no | |
1608
+
1609
+ ---
1610
+
1611
+
1612
+
1613
+
1614
+ #### [CreateUpdateAddressSerializer](#CreateUpdateAddressSerializer)
1615
+
1616
+ | Properties | Type | Nullable | Description |
1617
+ | ---------- | ---- | -------- | ----------- |
1618
+ | address1 | string | yes | |
1619
+ | longitude | number | yes | |
1620
+ | state | string | yes | |
1621
+ | latitude | number | yes | |
1622
+ | country | string | yes | |
1623
+ | country_code | string | no | |
1624
+ | city | string | yes | |
1625
+ | address_type | string | yes | |
1626
+ | landmark | string | no | |
1627
+ | pincode | number | yes | |
1628
+ | address2 | string | no | |
1629
+
1630
+ ---
1631
+
1632
+
1633
+
1634
+
1635
+ #### [UpdateCompany](#UpdateCompany)
1636
+
1637
+ | Properties | Type | Nullable | Description |
1638
+ | ---------- | ---- | -------- | ----------- |
1639
+ | name | string | no | |
1640
+ | business_info | string | no | |
1641
+ | business_type | string | no | |
1642
+ | franchise_enabled | boolean | no | |
1643
+ | documents | [[Document](#Document)] | no | |
1644
+ | notification_emails | [string] | no | |
1645
+ | _custom_json | string | no | |
1646
+ | taxes | [[CompanyTaxesSerializer1](#CompanyTaxesSerializer1)] | no | |
1647
+ | warnings | string | no | |
1648
+ | business_details | [BusinessDetails](#BusinessDetails) | no | |
1649
+ | company_type | string | no | |
1650
+ | contact_details | [ContactDetails](#ContactDetails) | no | |
1651
+ | reject_reason | string | no | |
1652
+ | addresses | [[CreateUpdateAddressSerializer](#CreateUpdateAddressSerializer)] | no | |
1653
+
1654
+ ---
1655
+
1656
+
1657
+
1658
+
1659
+ #### [ProfileSuccessResponse](#ProfileSuccessResponse)
1660
+
1661
+ | Properties | Type | Nullable | Description |
1662
+ | ---------- | ---- | -------- | ----------- |
1663
+ | success | boolean | no | |
1664
+ | uid | number | no | |
1665
+
1666
+ ---
1667
+
1668
+
1669
+
1670
+
1671
+ #### [DocumentsObj](#DocumentsObj)
1672
+
1673
+ | Properties | Type | Nullable | Description |
1674
+ | ---------- | ---- | -------- | ----------- |
1675
+ | verified | number | no | |
1676
+ | pending | number | no | |
1677
+
1678
+ ---
1679
+
1680
+
1681
+
1682
+
1683
+ #### [MetricsSerializer](#MetricsSerializer)
1684
+
1685
+ | Properties | Type | Nullable | Description |
1686
+ | ---------- | ---- | -------- | ----------- |
1687
+ | uid | number | no | |
1688
+ | stage | string | no | |
1689
+ | store_documents | [DocumentsObj](#DocumentsObj) | no | |
1690
+ | brand | [DocumentsObj](#DocumentsObj) | no | |
1691
+ | company_documents | [DocumentsObj](#DocumentsObj) | no | |
1692
+ | store | [DocumentsObj](#DocumentsObj) | no | |
1693
+ | product | [DocumentsObj](#DocumentsObj) | no | |
1694
+
1695
+ ---
1696
+
1697
+
1698
+
1699
+
1700
+ #### [BrandBannerSerializer](#BrandBannerSerializer)
1701
+
1702
+ | Properties | Type | Nullable | Description |
1703
+ | ---------- | ---- | -------- | ----------- |
1704
+ | landscape | string | no | |
1705
+ | portrait | string | no | |
1706
+
1707
+ ---
1708
+
1709
+
1710
+
1711
+
1712
+ #### [GetBrandResponseSerializer](#GetBrandResponseSerializer)
1713
+
1714
+ | Properties | Type | Nullable | Description |
1715
+ | ---------- | ---- | -------- | ----------- |
1716
+ | uid | number | no | |
1717
+ | warnings | string | no | |
1718
+ | mode | string | no | |
1719
+ | reject_reason | string | no | |
1720
+ | name | string | yes | |
1721
+ | stage | string | no | |
1722
+ | created_by | [UserSerializer](#UserSerializer) | no | |
1723
+ | synonyms | [string] | no | |
1724
+ | verified_by | [UserSerializer](#UserSerializer) | no | |
1725
+ | modified_on | string | no | |
1726
+ | description | string | no | |
1727
+ | _locale_language | string | no | |
1728
+ | slug_key | string | no | |
1729
+ | logo | string | no | |
1730
+ | banner | [BrandBannerSerializer](#BrandBannerSerializer) | no | |
1731
+ | created_on | string | no | |
1732
+ | _custom_json | string | no | |
1733
+ | modified_by | [UserSerializer](#UserSerializer) | no | |
1734
+ | verified_on | string | no | |
1735
+
1736
+ ---
1737
+
1738
+
1739
+
1740
+
1741
+ #### [CreateUpdateBrandRequestSerializer](#CreateUpdateBrandRequestSerializer)
1742
+
1743
+ | Properties | Type | Nullable | Description |
1744
+ | ---------- | ---- | -------- | ----------- |
1745
+ | uid | number | no | |
1746
+ | name | string | yes | |
1747
+ | company_id | number | no | |
1748
+ | synonyms | [string] | no | |
1749
+ | _custom_json | string | no | |
1750
+ | description | string | no | |
1751
+ | _locale_language | string | no | |
1752
+ | brand_tier | string | no | |
1753
+ | logo | string | yes | |
1754
+ | banner | [BrandBannerSerializer](#BrandBannerSerializer) | no | |
1755
+
1756
+ ---
1757
+
1758
+
1759
+
1760
+
1761
+ #### [Page](#Page)
1762
+
1763
+ | Properties | Type | Nullable | Description |
1764
+ | ---------- | ---- | -------- | ----------- |
1765
+ | size | number | no | |
1766
+ | next_id | string | no | |
1767
+ | has_previous | boolean | no | |
1768
+ | current | number | no | |
1769
+ | type | string | yes | |
1770
+ | has_next | boolean | no | |
1771
+ | item_total | number | no | |
1772
+
1773
+ ---
1774
+
1775
+
1776
+
1777
+
1778
+ #### [CompanySocialAccounts](#CompanySocialAccounts)
1779
+
1780
+ | Properties | Type | Nullable | Description |
1781
+ | ---------- | ---- | -------- | ----------- |
1782
+ | url | string | yes | |
1783
+ | name | string | yes | |
1784
+
1785
+ ---
1786
+
1787
+
1788
+
1789
+
1790
+ #### [CompanyDetails](#CompanyDetails)
1791
+
1792
+ | Properties | Type | Nullable | Description |
1793
+ | ---------- | ---- | -------- | ----------- |
1794
+ | socials | [[CompanySocialAccounts](#CompanySocialAccounts)] | no | |
1795
+ | website_url | string | no | |
1796
+
1797
+ ---
1798
+
1799
+
1800
+
1801
+
1802
+ #### [CompanySerializer](#CompanySerializer)
1803
+
1804
+ | Properties | Type | Nullable | Description |
1805
+ | ---------- | ---- | -------- | ----------- |
1806
+ | uid | number | no | |
1807
+ | name | string | no | |
1808
+ | verified_by | [UserSerializer](#UserSerializer) | no | |
1809
+ | business_type | string | yes | |
1810
+ | created_by | [UserSerializer](#UserSerializer) | no | |
1811
+ | stage | string | no | |
1812
+ | business_country_info | [BusinessCountryInfo](#BusinessCountryInfo) | no | |
1813
+ | modified_on | string | no | |
1814
+ | details | [CompanyDetails](#CompanyDetails) | no | |
1815
+ | notification_emails | [string] | no | |
1816
+ | _custom_json | string | no | |
1817
+ | created_on | string | no | |
1818
+ | market_channels | [string] | no | |
1819
+ | modified_by | [UserSerializer](#UserSerializer) | no | |
1820
+ | company_type | string | yes | |
1821
+ | reject_reason | string | no | |
1822
+ | verified_on | string | no | |
1823
+ | addresses | [[GetAddressSerializer](#GetAddressSerializer)] | no | |
1824
+
1825
+ ---
1826
+
1827
+
1828
+
1829
+
1830
+ #### [CompanyBrandSerializer](#CompanyBrandSerializer)
1831
+
1832
+ | Properties | Type | Nullable | Description |
1833
+ | ---------- | ---- | -------- | ----------- |
1834
+ | uid | number | no | |
1835
+ | stage | string | no | |
1836
+ | verified_by | [UserSerializer](#UserSerializer) | no | |
1837
+ | company | [CompanySerializer](#CompanySerializer) | no | |
1838
+ | created_by | [UserSerializer](#UserSerializer) | no | |
1839
+ | modified_on | string | no | |
1840
+ | warnings | string | no | |
1841
+ | created_on | string | no | |
1842
+ | brand | [GetBrandResponseSerializer](#GetBrandResponseSerializer) | no | |
1843
+ | modified_by | [UserSerializer](#UserSerializer) | no | |
1844
+ | reject_reason | string | no | |
1845
+ | verified_on | string | no | |
1846
+
1847
+ ---
1848
+
1849
+
1850
+
1851
+
1852
+ #### [CompanyBrandListSerializer](#CompanyBrandListSerializer)
1853
+
1854
+ | Properties | Type | Nullable | Description |
1855
+ | ---------- | ---- | -------- | ----------- |
1856
+ | page | [Page](#Page) | no | |
1857
+ | items | [[CompanyBrandSerializer](#CompanyBrandSerializer)] | no | |
1858
+
1859
+ ---
1860
+
1861
+
1862
+
1863
+
1864
+ #### [CompanyBrandPostRequestSerializer](#CompanyBrandPostRequestSerializer)
1865
+
1866
+ | Properties | Type | Nullable | Description |
1867
+ | ---------- | ---- | -------- | ----------- |
1868
+ | uid | number | no | |
1869
+ | company | number | yes | |
1870
+ | brands | [number] | yes | |
1871
+
1872
+ ---
1873
+
1874
+
1875
+
1876
+
1877
+ #### [GetCompanySerializer](#GetCompanySerializer)
1878
+
1879
+ | Properties | Type | Nullable | Description |
1880
+ | ---------- | ---- | -------- | ----------- |
1881
+ | uid | number | no | |
1882
+ | name | string | no | |
1883
+ | verified_by | [UserSerializer](#UserSerializer) | no | |
1884
+ | business_type | string | no | |
1885
+ | created_by | [UserSerializer](#UserSerializer) | no | |
1886
+ | stage | string | no | |
1887
+ | modified_on | string | no | |
1888
+ | created_on | string | no | |
1889
+ | modified_by | [UserSerializer](#UserSerializer) | no | |
1890
+ | company_type | string | no | |
1891
+ | reject_reason | string | no | |
1892
+ | verified_on | string | no | |
1893
+ | addresses | [[GetAddressSerializer](#GetAddressSerializer)] | no | |
1894
+
1895
+ ---
1896
+
1897
+
1898
+
1899
+
1900
+ #### [InvoiceCredSerializer](#InvoiceCredSerializer)
1901
+
1902
+ | Properties | Type | Nullable | Description |
1903
+ | ---------- | ---- | -------- | ----------- |
1904
+ | password | string | no | |
1905
+ | username | string | no | |
1906
+ | enabled | boolean | no | |
1907
+
1908
+ ---
1909
+
1910
+
1911
+
1912
+
1913
+ #### [InvoiceDetailsSerializer](#InvoiceDetailsSerializer)
1914
+
1915
+ | Properties | Type | Nullable | Description |
1916
+ | ---------- | ---- | -------- | ----------- |
1917
+ | e_waybill | [InvoiceCredSerializer](#InvoiceCredSerializer) | no | |
1918
+ | e_invoice | [InvoiceCredSerializer](#InvoiceCredSerializer) | no | |
1919
+
1920
+ ---
1921
+
1922
+
1923
+
1924
+
1925
+ #### [ProductReturnConfigSerializer](#ProductReturnConfigSerializer)
1926
+
1927
+ | Properties | Type | Nullable | Description |
1928
+ | ---------- | ---- | -------- | ----------- |
1929
+ | on_same_store | boolean | no | |
1930
+ | store_uid | number | no | |
1931
+
1932
+ ---
1933
+
1934
+
1935
+
1936
+
1937
+ #### [LocationManagerSerializer](#LocationManagerSerializer)
1938
+
1939
+ | Properties | Type | Nullable | Description |
1940
+ | ---------- | ---- | -------- | ----------- |
1941
+ | name | string | no | |
1942
+ | mobile_no | [SellerPhoneNumber](#SellerPhoneNumber) | yes | |
1943
+ | email | string | no | |
1944
+
1945
+ ---
1946
+
1947
+
1948
+
1949
+
1950
+ #### [LocationTimingSerializer](#LocationTimingSerializer)
1951
+
1952
+ | Properties | Type | Nullable | Description |
1953
+ | ---------- | ---- | -------- | ----------- |
1954
+ | minute | number | yes | |
1955
+ | hour | number | yes | |
1956
+
1957
+ ---
1958
+
1959
+
1960
+
1961
+
1962
+ #### [LocationDayWiseSerializer](#LocationDayWiseSerializer)
1963
+
1964
+ | Properties | Type | Nullable | Description |
1965
+ | ---------- | ---- | -------- | ----------- |
1966
+ | closing | [LocationTimingSerializer](#LocationTimingSerializer) | no | |
1967
+ | weekday | string | yes | |
1968
+ | opening | [LocationTimingSerializer](#LocationTimingSerializer) | no | |
1969
+ | open | boolean | yes | |
1970
+
1971
+ ---
1972
+
1973
+
1974
+
1975
+
1976
+ #### [GetLocationSerializer](#GetLocationSerializer)
1977
+
1978
+ | Properties | Type | Nullable | Description |
1979
+ | ---------- | ---- | -------- | ----------- |
1980
+ | uid | number | no | |
1981
+ | address | [GetAddressSerializer](#GetAddressSerializer) | yes | |
1982
+ | warnings | string | no | |
1983
+ | name | string | yes | |
1984
+ | stage | string | no | |
1985
+ | company | [GetCompanySerializer](#GetCompanySerializer) | no | |
1986
+ | created_by | [UserSerializer](#UserSerializer) | no | |
1987
+ | store_type | string | no | |
1988
+ | contact_numbers | [[SellerPhoneNumber](#SellerPhoneNumber)] | no | |
1989
+ | gst_credentials | [InvoiceDetailsSerializer](#InvoiceDetailsSerializer) | no | |
1990
+ | code | string | yes | |
1991
+ | verified_by | [UserSerializer](#UserSerializer) | no | |
1992
+ | product_return_config | [ProductReturnConfigSerializer](#ProductReturnConfigSerializer) | no | |
1993
+ | modified_on | string | no | |
1994
+ | manager | [LocationManagerSerializer](#LocationManagerSerializer) | no | |
1995
+ | display_name | string | yes | |
1996
+ | created_on | string | no | |
1997
+ | documents | [[Document](#Document)] | no | |
1998
+ | notification_emails | [string] | no | |
1999
+ | _custom_json | string | no | |
2000
+ | modified_by | [UserSerializer](#UserSerializer) | no | |
2001
+ | phone_number | string | yes | |
2002
+ | verified_on | string | no | |
2003
+ | timing | [[LocationDayWiseSerializer](#LocationDayWiseSerializer)] | no | |
2004
+
2005
+ ---
2006
+
2007
+
2008
+
2009
+
2010
+ #### [LocationListSerializer](#LocationListSerializer)
2011
+
2012
+ | Properties | Type | Nullable | Description |
2013
+ | ---------- | ---- | -------- | ----------- |
2014
+ | page | [Page](#Page) | no | |
2015
+ | items | [[GetLocationSerializer](#GetLocationSerializer)] | no | |
2016
+
2017
+ ---
2018
+
2019
+
2020
+
2021
+
2022
+ #### [LocationSerializer](#LocationSerializer)
2023
+
2024
+ | Properties | Type | Nullable | Description |
2025
+ | ---------- | ---- | -------- | ----------- |
2026
+ | uid | number | no | |
2027
+ | name | string | yes | |
2028
+ | company | number | yes | |
2029
+ | stage | string | no | |
2030
+ | documents | [[Document](#Document)] | no | |
2031
+ | address | [GetAddressSerializer](#GetAddressSerializer) | yes | |
2032
+ | notification_emails | [string] | no | |
2033
+ | store_type | string | no | |
2034
+ | _custom_json | string | no | |
2035
+ | product_return_config | [ProductReturnConfigSerializer](#ProductReturnConfigSerializer) | no | |
2036
+ | contact_numbers | [[SellerPhoneNumber](#SellerPhoneNumber)] | no | |
2037
+ | warnings | string | no | |
2038
+ | manager | [LocationManagerSerializer](#LocationManagerSerializer) | no | |
2039
+ | timing | [[LocationDayWiseSerializer](#LocationDayWiseSerializer)] | no | |
2040
+ | display_name | string | yes | |
2041
+ | gst_credentials | [InvoiceDetailsSerializer](#InvoiceDetailsSerializer) | no | |
2042
+ | code | string | yes | |
2043
+
2044
+ ---
2045
+
2046
+
2047
+
2048
+
2049
+ #### [BulkLocationSerializer](#BulkLocationSerializer)
2050
+
2051
+ | Properties | Type | Nullable | Description |
2052
+ | ---------- | ---- | -------- | ----------- |
2053
+ | data | [[LocationSerializer](#LocationSerializer)] | no | |
2054
+
2055
+ ---
2056
+
2057
+
2058
+
2059
+
2060
+ #### [_ArticleQuery](#_ArticleQuery)
2061
+
2062
+ | Properties | Type | Nullable | Description |
2063
+ | ---------- | ---- | -------- | ----------- |
2064
+ | ignored_stores | [number] | no | |
2065
+ | item_id | number | no | |
2066
+ | size | string | no | |
2067
+
2068
+ ---
2069
+
2070
+
2071
+
2072
+
2073
+ #### [_ArticleAssignment](#_ArticleAssignment)
2074
+
2075
+ | Properties | Type | Nullable | Description |
2076
+ | ---------- | ---- | -------- | ----------- |
2077
+ | level | string | no | |
2078
+ | strategy | string | no | |
2079
+
2080
+ ---
2081
+
2082
+
2083
+
2084
+
2085
+ #### [_AssignStoreArticle](#_AssignStoreArticle)
2086
+
2087
+ | Properties | Type | Nullable | Description |
2088
+ | ---------- | ---- | -------- | ----------- |
2089
+ | query | [_ArticleQuery](#_ArticleQuery) | no | |
2090
+ | article_assignment | [_ArticleAssignment](#_ArticleAssignment) | no | |
2091
+ | quantity | number | no | |
2092
+ | meta | string | no | |
2093
+ | group_id | string | no | |
2094
+
2095
+ ---
2096
+
2097
+
2098
+
2099
+
2100
+ #### [AssignStoreRequestValidator](#AssignStoreRequestValidator)
2101
+
2102
+ | Properties | Type | Nullable | Description |
2103
+ | ---------- | ---- | -------- | ----------- |
2104
+ | store_ids | [number] | no | |
2105
+ | company_id | number | no | |
2106
+ | channel_identifier | string | no | |
2107
+ | app_id | string | no | |
2108
+ | articles | [[_AssignStoreArticle](#_AssignStoreArticle)] | no | |
2109
+ | channel_type | string | no | |
2110
+ | pincode | string | no | |
2111
+
2112
+ ---
2113
+
2114
+
2115
+
2116
+
2117
+ #### [AssignStoreResponseSerializer](#AssignStoreResponseSerializer)
2118
+
2119
+ | Properties | Type | Nullable | Description |
2120
+ | ---------- | ---- | -------- | ----------- |
2121
+ | price_marked | number | no | |
2122
+ | uid | string | no | |
2123
+ | article_assignment | [_ArticleAssignment](#_ArticleAssignment) | no | |
2124
+ | size | string | no | |
2125
+ | company_id | number | no | |
2126
+ | _id | string | no | |
2127
+ | store_pincode | string | no | |
2128
+ | preice_effective | number | no | |
2129
+ | quantity | number | no | |
2130
+ | meta | string | no | |
2131
+ | item_id | number | no | |
2132
+ | s_city | string | no | |
2133
+ | store_id | number | no | |
2134
+ | status | boolean | no | |
2135
+ | index | number | no | |
2136
+
2137
+ ---
2138
+
2139
+
2140
+
2141
+