Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sr No.API EndpointDescriptionTasksStatusPhase
1POST /customers/{customerPartyId}/wishlistTo Create a wishlist.
Planning
1PUT /customers/{customerPartyId}/wishlist/{wishlistId}To add a product to the wishlist.
PlanningI
2DELETE /customers/{customerPartyId}/wishlist/{wishlistId}/{productId}To remove a product from the wishlist.
PlanningI
3GET /customers/{customerPartyId}/wishlist/{wishlistId}To get the wishlist.
PlanningI

...


Checkout

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 EndpointDescriptionTasksStatusPhase
1POST /
cartsTo create a cart.PlanningI2PUT /carts/{cartReference}To update the cart.PlanningI3GET /carts/{cartReference}To get the complete cart.PlanningI4POST /carts/{cartReference}/deleteTo remove items from the cart.
ordersTo Create an order with all the necessary detail (items, shipping address, payment information, etc.)
PlanningI
5
2
POST
PATCH /
carts
orders/{
cartReference
orderId}/
promotionsTo apply the promo code on the cart.PlanningI6DELETE /carts/{cartReference}/promotionsTo remove an applied promotion
statuses/CANCELTo cancel an order.
PlanningI
7
3
POST
PATCH /
carts
orders/{
cartReference
orderId}/
shipping-informationTo add shipping informationPlanningI8POST /carts/{cartReference}/shipping-methodsTo add shipping methods
items/statuses/CANCELTo Cancel order items.
PlanningI
9GET /carts/{cartReference}/payment-methodsTo get the available payment methodsPlanningI10GET carts/{cartReference}/totalsTo get the cart total.PlanningI11POST /orderTo place the order.