@@ -66,6 +66,7 @@ curl -H "X-API-KEY: 4974328ce522a3eb86ecf73a193490314cf98c74" http://shoop.dev/a
66
66
"hubmeup_link" : " http://www.hubmeup.com/tes-102/" ,
67
67
"from_app" : null ,
68
68
"id_supercat" : " 1" ,
69
+ "id_buyercat" : " 1" ,
69
70
"id_superloc" : " 11" ,
70
71
"discount" : " 0" ,
71
72
"view_count" : " 0" ,
@@ -78,6 +79,10 @@ curl -H "X-API-KEY: 4974328ce522a3eb86ecf73a193490314cf98c74" http://shoop.dev/a
78
79
"idsc" : " 1" ,
79
80
"name" : " Perlengkapan Olahraga"
80
81
},
82
+ "buyercat" : {
83
+ "idbc" : " 15" ,
84
+ "name" : " Alat & Perlengkapan Olahraga"
85
+ },
81
86
"superloc" : {
82
87
"idsl" : " 11" ,
83
88
"name" : " Jawa Tengah"
@@ -152,8 +157,9 @@ Get product by user
152
157
+ ` limit ` _ ` optional ` _ Limit for browse. Default <code >6</code >
153
158
+ ` offset ` _ ` optional ` _ Limit for browse. Default <code >1</code >
154
159
+ ` keyword ` _ ` optional ` _ Search key
155
- + ` id_supercat ` _ ` optional ` _ Location ID
156
- + ` id_superloc ` _ ` optional ` _ Category ID
160
+ + ` id_supercat ` _ ` optional ` _ Category ID
161
+ + ` id_buyercat ` _ ` optional ` _ Buyer Category ID
162
+ + ` id_superloc ` _ ` optional ` _ Location ID
157
163
+ ` tag ` _ ` optional ` _ Tag filter
158
164
+ ` filter ` _ ` optional ` _ filter for browse, enum <code >all</all > or <code >own</code >. Default <code >all</code >
159
165
+ ` since_time ` _ ` optional ` _ Browse product from since_time
@@ -263,7 +269,8 @@ Get product by category
263
269
/api/v2/product/get_product_user
264
270
265
271
##### <a name =" get-product-cat-param " ></a > Parameters
266
- + ` id_supercat ` ___ ` required ` __ _ Category ID
272
+ + ` id_supercat ` Category ID
273
+ + ` id_buyercat ` Buyer Category ID (One of id_supercat & id_buyercat is required)
267
274
+ ` limit ` _ ` optional ` _ Limit for browse. Default <code >6</code >
268
275
+ ` offset ` _ ` optional ` _ Limit for browse. Default <code >1</code >
269
276
+ ` keyword ` _ ` optional ` _ Search key
@@ -300,6 +307,7 @@ Add Product
300
307
+ ` prod_tag ` ___ ` required ` __ _ pisah dengan <code >,</code >
301
308
+ ` prod_desc ` ___ ` required ` __ _
302
309
+ ` id_supercat ` ___ ` required ` __ _
310
+ + ` id_buyercat ` ___ ` required ` __ _
303
311
+ ` id_superloc ` ___ ` required ` __ _
304
312
+ ` condition ` _ ` optional ` _
305
313
+ ` is_nego ` _ ` optional ` _
@@ -349,6 +357,10 @@ curl -X POST --data "prod_title=Baju&prod_price=15000&prod_curr=IDR&prod_desc=ju
349
357
"idsc" : " 1" ,
350
358
"name" : " Perlengkapan Olahraga"
351
359
},
360
+ "buyercat" : {
361
+ "idsc" : " 15" ,
362
+ "name" : " Alat & Perlengkapan Olahraga"
363
+ },
352
364
"superloc" : {
353
365
"idsl" : " 1" ,
354
366
"name" : " Jawa Timur"
0 commit comments