Professional Documents
Culture Documents
Automated Cart Endpoints
Automated Cart Endpoints
Automated Cart Endpoints
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)