Cart Listing
This API uses two API one for listing cart items and other for editing cart items.
Cart Listing API
The Cart Listing API allows users to view the contents of their shopping cart on the e-commerce platform. It provides customers with a detailed list of products currently added to their cart, along with their respective quantities and variations (if applicable).

Endpoint
{{baseurl}}/api/v1/customer/cart
Method
GET
Request Parameters:
lang_code (optional): The language code used to retrieve product names and details in a specific language. If not provided, the default language will be used.
page (optional): The page number for paginated results. If not specified, the first page of cart items will be returned.
address_id (Optional): The unique identifier of the shipping address the customer wants to use for the order. If not provided, the default shipping address is used.
coupon_id (optional): The unique identifier of the coupon applied by the customer, if available.
Response Format: The API responds with a JSON object containing the following information:
Features:
The Cart Listing API provides users with a comprehensive view of the products currently in their shopping cart.
Users can check the individual quantities and variations of each product added to the cart.
The API supports pagination to help users navigate through large cart listings effectively.
Usage:
The Cart Listing API is primarily used to display the contents of the shopping cart to the customers. It allows users to review and manage the products they have added before proceeding to the checkout process.
Cart Update API
The Cart Update API enables users to modify the contents of their shopping cart on the e-commerce platform. Customers can adjust the quantity of a specific product or update the selected product variation, if applicable.
Endpoint
{{baseurl}}/api/v1/customer/update-cart
Method
POST
Request Body
The API expects a JSON object containing the following parameters:
cart_id: The unique identifier of the cart item to be updated.
product_variation_id: The updated product variation ID (if applicable).
quantity: The updated quantity of the product in the cart.
Response Format:
The API responds with a JSON object indicating the status of the cart update request. It provides information about the updated cart item and the revised total price.
Features:
The Cart Update API allows users to modify the contents of their shopping cart in real-time.
Customers can change the quantity or variation of a product before proceeding to checkout.
The API ensures that the cart update adheres to product availability and stock constraints.
Usage:
The Cart Update API is used when customers want to make changes to their cart before finalizing their purchase. It enables users to easily adjust product quantities or switch between available variations while reviewing their cart items.
Last updated