THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Note: The below API endpoints are written considering the Object-Oriented implementation of Shopping Cart. We need to identify the best way to store the shopping cart object as the user session won't be in the picture here. One way to introduce a new table to keep the cart object with a unique cart ID. For better performance cache can also be used efficiently. The cart object should have the last updated timestamp so that a clear policy to remove the abandoned cart can be imposed.
Sr No. | API Endpoint | Description | Tasks | Status | Phase |
---|---|---|---|---|---|
1 | POST /carts | Planning | I | ||
2 | GET /carts/{cartReference} | Planning | I | ||
3 | DELETE /carts/{cartReference} | Planning | I | ||
4 | POST /carts/{cartReference}/items | For adding products and other order adjustments like shipping charges, tax, etc. | Planning | I | |
5 | GET /carts/{cartReference}/items | Planning | I | ||
6 | PUT /carts/{cartReference}/items/{itemSeqId} | Planning | I | ||
7 | DELETE /carts/{cartReference}/items/{itemSeqId} | Planning | I | ||
8 | POST /carts/{cartReference}/promotions | To apply the promo code on the cart. | Planning | I | |
9 | DELETE /carts/{cartReference}/promotions/{itemSeqId} | To remove an applied promotion. | Planning | I | |
10 | POST /carts/{cartReference}/items/shopping-list/{shoppingListId} | This will add all the items of a given shopping list to the cart. | Planning | I | |
11 | POST /carts/{cartReference}/items/order/{orderId} | This will add all the items of a given past order to the cart. | Planning | I | |
12 | POST /carts/{cartReference}/ship-groups | To create a new ship group in case of split shipment. | Planning | I | |
13 | GET /carts/{cartReference}/ship-groups | To get the ship groups with items. | Planning | I | |
14 | POST /carts/{cartReference}/ship-groups/{shipGroupSeqId}/shipping-address | To add the shipping address. | Planning | I | |
15 | POST /carts/{cartReference}/ship-groups/{shipGroupSeqId}/items | To move items from one ship group to another in case of split shipment. | Planning | I | |
16 | POST /carts/{cartReference}/ship-groups/{shipGroupSeqId}/shipping-instructions | To add special instructions, gift message in case of a gift, split preferences(ship all items together or ship items when available) | Planning | I | |
17 | PUT /carts/{cartReference}/ship-groups/{shipGroupSeqId}/shipping-instructions | To update special instructions, gift message in case of a gift, split preferences(ship all items together or ship items when available) | Planning | I | |
18 | GET /shipping-methods} | To get the shipping methods. | Planning | I | |
19 | POST /carts/{cartReference}/ship-groups/{shipGroupSeqId}/shipping-method | To add/update the shipping method. | Planning | I | |
20 | GET /payment-options | To get the list of supported payment options. | Planning | I | |
21 | POST /carts/{cartReference}/payment-methods | To add a payment method. The combination of the gift card and other payment methods are supported as of now. | Planning | I | |
22 | POST /checkout | To place the order. | Planning | I | |
Anonymous Checkout | |||||
1 | POST /anonymous-user/personal-information | Planning | I | ||
2 | POST /anonymous-user/shipping-address | Planning | I | ||
3 | POST /anonymous-user/payment-informaion | Planning | I | ||
4 | POST /anonymous-user/shippingAddress | Planning | I | ||