At the time the user selects "Proceed to Pay," a separate screen is initialized on the ENS end. This initialization requires specific parameters to determine the source of the purchase (Cart or Buy Now) and prepare for RazorPay integration.
This scenario is used when the user is checking out items previously added to their cart.
userIdaddressIdproductId (Must be null or missing)userId=xxxx&addressId=yyyy&orderId=null
This scenario is used when the user bypasses the cart and initiates a direct purchase of a single item.
userIdaddressIdorderId (Must be provided, e.g., a temporary order ID)orderId.userId=xxxx&addressId=yyyy&orderId=zzzz
| API | Purpose | Example Endpoint |
|---|---|---|
| Cart API | Fetches product and payment details from the user's active shopping cart. | https://ht.myindiabazar.com/clientApis/v2/cart/1000104201 |
| Address API | Retrieves the user's saved delivery addresses. | https://ht.myindiabazar.com/clientApis/v1/delivery_address?userId=1000104201 |
| Item Details API | Fetches specific details for a single product item. | /protocol/item-details?id=1000104201 |