Automated Cart Endpoints

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Automated Cart Endpoints

Dev Base : https://api-dev-3.kitabeli.id/api/v1/user/


No URL Deprecated URL Description

1 {userId}/order-item/product reminder/{userId} Get categories and products Item users have already bought from the last 6
Optional pagination params: months.
?page=0&size=2
1. Returns totalPages, totalItems, bannerImages, productCategories,
products.
2. If page two or categoryId is not null then set bannerImages and
productCategories to null.
3. bannerImages contains:
a. User-reminder-banner1.png
b. user-reminder-banner-2.png
c. user-reminder-banner-3.png
d. user-reminder-banner-4.png
4. By default fetch bought items from 6 months ago, if you want to
replace this behavior please add following parameter
?monthsAgo=x (x is passed months)
5. Response payload sample: https://pastebin.com/Q3J5myHU

2 {userId}/order-item/variant reminder/{userId}/variant Get user varian A or B (will be created first if not available yet).
1. The user variant created on the fly based on orders count
a. classification 0
- No order yet
b. classification 1
- 1 order
c. classification 2
- 2 orders
d. classification 3
- 3 orders
e. classification 4
- 4 - 5 orders
f. classification 5
- 6 - 10 orders
g. classification6
- > 10 orders (11 or more)

2. Response payload sample: https://pastebin.com/juYVrSvG

3 {userId}/order-item/favourit reminder/{userId}/fav-ite Get favorite items by user ID.


e m 1. If user has fav items, response: https://pastebin.com/cv7uY5dQ
2. If user has no fav items, res: https://pastebin.com/HNE3FnNa

You might also like