Cart

Handles shopping carts, including adding, removing, and updating items, as well as calculating totals.

Cart

The cart provides detailed information about selected items, including their name, quantity, price breakup, applied discounts, and any relevant attributes like size, product image, or tags. It also displays availability status, estimated shipping time, and seller information. This helps customers track their products throughout the order journey.

Operations
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart/serviceability
# Check cart serviceability
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/serviceability/cod
# Check COD serviceability and charges for cart
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/carts
# Get abandoned carts
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/cart/detail
# Get abandoned cart details
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/carts/{cart_id}
# Add items to cart
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/carts/{cart_id}
# Update cart items
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/share-cart
# Share cart link
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/share-cart/{token}
# List shared cart items
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/share-cart/{token}/{action}
# Update shared cart items
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart-list
# List of carts
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/update-user
# Update user of a cart
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
# Get a cart
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
# Add items to cart
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
# Update cart items
PATCH
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
# Update cart breakup values
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_archive
# Delete a cart
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/basic
# Get a cart items count
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/meta
# Update cart metadata
POST

Check cart serviceability

Verify the serviceability of items in the cart at a specific pin code and ensure accurate delivery promises. System checks each item's availability and delivery feasibility, providing real-time information on serviceability and estimated delivery times.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
Headers
x-ordering-source
string
Ordering source header, to be used to identify source of order creation.
x-ordering-source-type
string
Ordering source type header, to be used to identify source type of order creation.
Request body
cart_items
array of object (CartItem)
Required
List of items in open api cart response
Show
shipping_address
object (ShippingAddress)
Required
Show
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart/serviceability
Loading...
Response
200
Cart details with pincode validity information at item level
Hide
Cart serviciability API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment common config, coupon, coupon text, gstin etc.
is_valid
boolean
Cart validity flag determines the if the response is valid or not
items
array of object (CartProductInfo)
Items data list in user cart that includes item id, item size, store id, available sizes and rest of the item related data
Show
delivery_promise
object (ShipmentPromise)
Show
message
string
Message of the cart detail API response
breakup_values
object (CartBreakup)
Show
Examples
Parameters
Parameters are not required.
Response
Loading...
POST

Check COD serviceability and charges for cart

Check whether Cash on Delivery (COD) is available for the given cart items at a specific pin code, and return the applicable COD charges. Performs a pincode-level serviceability check via the logistics layer and computes COD fee based on cart value and payment configuration.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
Request body
cart_items
array of object (CartItem)
Required
List of items in the cart
Show
shipping_address
object (ShippingAddress)
Required
Show
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/serviceability/cod
Loading...
Response
200
Cart details with COD availability and charges at pincode level
Hide
Cart COD serviceability API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment common config, coupon, coupon text, gstin etc along with COD availability and charges.
is_valid
boolean
Cart validity flag determines the if the response is valid or not
items
array of object (CartProductInfo)
Items data list in user cart that includes item id, item size, store id, available sizes and rest of the item related data
Show
delivery_promise
object (ShipmentPromise)
Show
message
string
Message of the cart detail API response
breakup_values
object (CartBreakup)
Show
is_cod_available
boolean
Indicates whether Cash on Delivery is available for the given cart items at the requested pincode, based on logistics serviceability and payment configuration
Examples
Parameters
Parameters are not required.
Response
Loading...
GET

Get abandoned carts

Retrieve the list of abandoned carts that have been active for the specified period of time and have not yet been archived for the specific sales channel.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
page_noquery
integer
current page no as per pagination
Default Value : 0
page_sizequery
integer
Cart max records fetched in single request
Default Value : 10
from_datequery
string
| date-time
Cart which are created on or after from_date
to_datequery
string
| date-time
Cart which are created on or before to_date
anonymous_cartquery
boolean
Filter by `anonymous_cart`
last_idquery
string
pagination is done based on the last_object_id
sort_onquery
string
on which column to sort on i.e created_on or last_modified
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/carts
Loading...
Response
200
Abandoned Cart List for sent page_size and page_no
Hide
Abandon cart api response schema hich includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment, common config, coupon, coupon text, gstin etc.
items
array of object (AbandonedCart)
List of items in abandon cart
Show
result
object
Define the list of items with updated status
page
object (Page)
Show
success
boolean
The request success is defined
message
string
message of the response
Examples
Parameters
Parameters are not required.
Response
Loading...
GET

Get abandoned cart details

Retrieves abandoned cart details linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
The unique identifier of the cart
iquery
boolean
This is a boolean value. Select `true` to retrieve all the items added in the cart.
bquery
boolean
This is a boolean value. Select `true` to retrieve the price breakup of cart items.
cquery
boolean
This is a boolean value. Select `true` to retrieve the cod charges in breakup of cart items.
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/cart/detail
Loading...
Response
200
Success. Returns a Cart object. Check the example shown below or refer `CartDetailResult` for more details.
Hide
Cart API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment, common config, coupon, coupon text, gstin etc.
cart_id
integer
| int32
Unique identifier of the user cart
uid
string
Unique identifier of the user cart
coupon_text
string
Coupon text of coupon applied on cart
id
string
Unique identifier of the user cart
pan_config
object
Pan card config states at what condition user should enter the pan card
delivery_promise
object (ShipmentPromise)
Show
comment
string
Comment message to be added in user cart
items
array of object (CartProductInfo)
Items data list in user cart that includes item id, item size, store id, available sizes and rest of the item related data
Show
payment_selection_lock
object (PaymentSelectionLock)
Show
delivery_charge_info
string
Delivery charge in information message on shipment
common_config
object (CartCommonConfig)
Show
coupon
object (CartDetailCoupon)
Show
restrict_checkout
boolean
Restrict checkout flag to restrict the checkout process
message
string
Message of the cart detail API response
notification
object
Notification object which denotes notification data for user cart
staff_user_id
string
Staff employee user id if cart is created by staff employee for the customer
success
boolean
Success flag of get cart detail API response
breakup_values
object (CartBreakup)
Show
is_valid
boolean
Cart validity flag determines the if the response is valid or not
currency
object (CartCurrency)
Show
checkout_mode
string
Checkout mode of user cart
last_modified
string
| date
Last modified timestamp of cart
buy_now
boolean
Buy now flag for the cart which denotes user is doing fast checkout for the cart using buy now
gstin
string
GSTIN added in user cart
ship_to_gst_details
object (ShipToGstDetails)
Nullable
Show
applied_promo_details
array of object (AppliedPromotion)
List of applied promotions data to cart which includes promotion id, promotion name, offer text, description, buy rules, discount rules and promotion type
Show
pan_no
string
Permanent Account Number of the user
custom_cart_meta
object
Custom meta details added cart checkout API payload
loyalty_meta
object
Nullable
Free-form metadata stored against the loyalty redemption for this cart. Contains fields passed via the applyLoyaltyPoints meta input (e.g. points, redeem_rule_id) and is forwarded to the loyalty engine on each cart calculation.
alternate_pickup_person
object (PlatformAlternatePickupPerson)
Show
free_gift_selection_available
boolean
Determines if the cart has available promotion free gift items to choose on its added items
Examples
Parameters
company_id:
"value"
application_id:
"value"
id:
"value"
i:
false
b:
false
c:
false
Response
Loading...
POST

Add items to cart

Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
cart_idpath
string
Required
Current Cart id of user cart
bquery
boolean
This is a boolean value. Select `true` to retrieve the price breakup of cart items.
Request body
new_cart
boolean
Field to create to new cart whille user adds item to cart
items
array of object (AddProductCart)
List of items detail which need to be added to cart like item id, item size, and item quantity
Show
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/carts/{cart_id}
Loading...
Response
200
Success. Returns a cart object as shown below. Refer `AddCartDetailResult` for more details.
Hide
Update cart detail response schema denotes cart data and message of the add product into cart
success
boolean
True if all items are added successfully. False if partially added or not added.
cart
object (CartDetailResult)
Show
partial
boolean
When adding multiple items check if all added. True if only few are added.
message
string
Message of add cart API response
result
object
Add to cart result data
items
array of object (CartItemInfo)
List of items that needs to be added in cart.
Show
Examples
Parameters
Parameters are not required.
Response
Loading...
PUT

Update cart items

Customers can modify added product attributes such as quantity and size, as well as remove items from the cart.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
cart_idpath
string
Required
Current Cart id of user cart
bquery
boolean
This is a boolean value. Select `true` to retrieve the price breakup of cart items.
Request body
items
array of object (UpdateProductCart)
Show
free_gift_items
array of object (FreeGiftItemCreation)
List of free gift items with updated sizes.
Show
operation
string
Required
Cart opertaion type
Enum
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/abandoned/carts/{cart_id}
Loading...
Response
200
Success. Updates and returns a cart object as shown below. Refer `UpdateCartDetailResult` for more details.
Hide
Update cart detail response schema denotes cart data and message of the update cart API response
success
boolean
True if all items are added successfully. False if partially added or not added.
cart
object (CartDetailResult)
Show
result
object
Contains article related result info
items
array of object (CartItemInfo)
List of items that needs to be updated in cart.
Show
message
string
Message of update cart API response
Response
Loading...
GET

List shared cart items

Retrieve the cart items from the shared cart link based on unique token.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
tokenpath
string
Required
Token of the shared short link
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/share-cart/{token}
Loading...
Response
200
404
Success. Returns a Cart object as per the valid token. Refer `SharedCartResult` for more details.
Hide
Shared cart response schema which included error or cart data
cart
object (SharedCart)
Show
error
string
Error details if any error occurs which includes type of error, error code and error message
Examples
Parameters
company_id:
"value"
application_id:
"value"
token:
"value"
Response
Loading...
POST

Update shared cart items

Customer can either merge or replace shared cart items with existing cart.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
tokenpath
string
Required
Token of the shared short link
actionpath
string
Required
Operation to perform on the existing cart merge or replace.
Enum
cart_idquery
string
The unique identifier of the cart
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/share-cart/{token}/{action}
Loading...
Response
200
Success. Returns a merged or replaced cart as per the valid token. Refer `SharedCartResult` for more details.
Hide
Shared cart response schema which included error or cart data
cart
object (SharedCart)
Show
error
string
Error details if any error occurs which includes type of error, error code and error message
Examples
Parameters
Parameters are not required.
Response
Loading...
GET

List of carts

Retrieve the list of active carts associated with a specific customer.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
from_datequery
string
| date-time
Cart which are created on or after from_date. Supports ISO date format.
to_datequery
string
| date-time
Cart which are created on or before to_date. Supports ISO date format.
filter_onquery
string
on which column to sort on i.e created_on or last_modified
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart-list
Loading...
Response
200
Platform user cart list
Hide
Get list of active cart which is associated with user
success
boolean
True if get list of cart successfully.
data
array of object (CartList)
List of active carts and their item's count
Show
Examples
Parameters
Parameters are not required.
Response
Loading...
PUT

Update user of a cart

Modify the cart user to a new valid customer for the provided customer ID.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
Cart id of user cart
Request body
user_id
string
Nullable
Customer user ID to associate with the cart. Send null to remove existing mapping of customer from cart.
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/update-user
Loading...
Response
200
Hide
Cart API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment common config, coupon, coupon text, gstin etc.
coupon_text
string
Coupon text of coupon applied on cart
user
object (UserInfo)
Show
id
string
Unique identifier of the user cart
pan_config
object
Pan card config states at what condition user should enter the pan card
delivery_promise
object (ShipmentPromise)
Show
comment
string
Comment message to be added in user cart
items
array of object (CartProductInfo)
Items data list in user cart that includes item id, item size, store id, available sizes and rest of the item related data
Show
payment_selection_lock
object (PaymentSelectionLock)
Show
delivery_charge_info
string
Delivery charge in information message on shipment
restrict_checkout
boolean
Restrict checkout flag to restrict the checkout process
message
string
Message of the get cart detail API response
breakup_values
object (CartBreakup)
Show
is_valid
boolean
Cart validity flag determines the if the response is valid or not
currency
object (CartCurrency)
Show
checkout_mode
string
Checkout mode of user cart
last_modified
string
| date
Last modified timestamp of cart
buy_now
boolean
Buy now flag for the cart which denotes user is doing fast checkout for the cart using buy now
gstin
string
GSTIN added in user cart
ship_to_gst_details
object (ShipToGstDetails)
Nullable
Show
custom_cart_meta
object
Custom meta details added cart checkout API payload
applied_promo_details
array of object (AppliedPromotion)
List of applied promotions data to cart which includes promotion id, promotion name, offer text, description, buy rules, discount rules and promotion type
Show
pan_no
string
Permanent Account Number of the user
Examples
Parameters
Parameters are not required.
Response
Loading...
GET

Get a cart

Retrieve details of a cart linked to a specific customer using either the customer's ID or a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
The unique identifier of the cart
user_idquery
string
Option to fetch cart for the provided user_id.
order_typequery
string
The order type of shipment HomeDelivery - If the customer wants the order home-delivered PickAtStore - If the customer wants the handover of an order at the store itself.
iquery
boolean
This is a boolean value. Select `true` to retrieve all the items added in the cart.
bquery
boolean
This is a boolean value. Select `true` to retrieve the price breakup of cart items.
assign_card_idquery
integer
Token of user's debit or credit card
buy_nowquery
boolean
This is a boolen value. Select `true` to set/initialize buy now cart
Headers
x-ordering-source
string
Ordering source header, to be used to identify source of order creation.
x-ordering-source-type
string
Ordering source type header, to be used to identify source type of order creation.
x-anonymous-cart
string
Anonymous cart header used to perform operations on cross-platform anonymous cart. When enabled, the system fetches the cart only based on cart_id instead of user_id.
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
Loading...
Response
200
400
Success. Returns a Cart object. Check the example shown below or refer `CartDetailResult` for more details.
Hide
Cart API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment, common config, coupon, coupon text, gstin etc.
cart_id
integer
| int32
Unique identifier of the user cart
uid
string
Unique identifier of the user cart
coupon_text
string
Coupon text of coupon applied on cart
id
string
Unique identifier of the user cart
pan_config
object
Pan card config states at what condition user should enter the pan card
delivery_promise
object (ShipmentPromise)
Show
comment
string
Comment message to be added in user cart
items
array of object (CartProductInfo)
Items data list in user cart that includes item id, item size, store id, available sizes and rest of the item related data
Show
payment_selection_lock
object (PaymentSelectionLock)
Show
delivery_charge_info
string
Delivery charge in information message on shipment
common_config
object (CartCommonConfig)
Show
coupon
object (CartDetailCoupon)
Show
restrict_checkout
boolean
Restrict checkout flag to restrict the checkout process
message
string
Message of the cart detail API response
notification
object
Notification object which denotes notification data for user cart
staff_user_id
string
Staff employee user id if cart is created by staff employee for the customer
success
boolean
Success flag of get cart detail API response
breakup_values
object (CartBreakup)
Show
is_valid
boolean
Cart validity flag determines the if the response is valid or not
currency
object (CartCurrency)
Show
checkout_mode
string
Checkout mode of user cart
last_modified
string
| date
Last modified timestamp of cart
buy_now
boolean
Buy now flag for the cart which denotes user is doing fast checkout for the cart using buy now
gstin
string
GSTIN added in user cart
ship_to_gst_details
object (ShipToGstDetails)
Nullable
Show
applied_promo_details
array of object (AppliedPromotion)
List of applied promotions data to cart which includes promotion id, promotion name, offer text, description, buy rules, discount rules and promotion type
Show
pan_no
string
Permanent Account Number of the user
custom_cart_meta
object
Custom meta details added cart checkout API payload
loyalty_meta
object
Nullable
Free-form metadata stored against the loyalty redemption for this cart. Contains fields passed via the applyLoyaltyPoints meta input (e.g. points, redeem_rule_id) and is forwarded to the loyalty engine on each cart calculation.
alternate_pickup_person
object (PlatformAlternatePickupPerson)
Show
free_gift_selection_available
boolean
Determines if the cart has available promotion free gift items to choose on its added items
Examples
Parameters
company_id:
"value"
application_id:
"value"
id:
"value"
user_id:
"value"
order_type:
"value"
i:
false
b:
false
assign_card_id:
1
buy_now:
false
x-ordering-source:
"value"
x-ordering-source-type:
"value"
x-anonymous-cart:
"value"
Response
Loading...
POST

Add items to cart

Adds product items to a customer's shopping cart. If the customer does not have an existing cart, a new one is created automatically. - The `new_cart` flag forces creation of a new cart even if one already exists. - The `default_cart` flag determines whether the item is added to the user's default storefront-visible cart. If `true`, the item is added to the user's default cart that is accessible via the storefront. If `false`, an existing active cart is fetched if available; otherwise, a new hidden cart is created.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
iquery
boolean
This is a boolean value. Select `true` to retrieve all the items added in the cart.
bquery
boolean
This is a boolean value. Select `true` to retrieve the price breakup of cart items.
include_cart_calculationquery
boolean
Set to `false` to skip recalculating and fetching the updated cart after the edit. Defaults to `true`.
buy_nowquery
boolean
This is a boolen value. Select `true` to set/initialize buy now cart
order_typequery
string
The order type of shipment HomeDelivery - If the customer wants the order home-delivered PickAtStore - If the customer wants the handover of an order at the store itself.
idquery
string
The unique identifier of the cart
Headers
x-ordering-source
string
Ordering source header, to be used to identify source of order creation.
x-ordering-source-type
string
Ordering source type header, to be used to identify source type of order creation.
x-anonymous-cart
string
Anonymous cart header used to perform operations on cross-platform anonymous cart. When enabled, the system fetches the cart only based on cart_id instead of user_id.
Request body
user_id
string
The unique identifier of the user for whom items are being added to the cart
new_cart
boolean
Indicates whether a new cart should be created. If `true`, a new cart is created even if one already exists.
default_cart
boolean
Determines whether the item is added to the user's default visible cart on the storefront. If `true`, the item is added to the user's default cart that is accessible via the storefront. If `false`, an existing active cart is fetched if available; otherwise, a new hidden cart is created. Defaults to `true`.
items
array of object (AddProductCart)
List of items detail which need to be added to cart like item id, item size, and item quantity
Show
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
Loading...
Response
200
Success. Returns a cart object as shown below. Refer `AddCartDetailResult` for more details.
Hide
Update cart detail response schema denotes cart data and message of the add product into cart
success
boolean
True if all items are added successfully. False if partially added or not added.
cart
object (CartDetailResult)
Show
partial
boolean
When adding multiple items check if all added. True if only few are added.
message
string
Message of add cart API response
result
object
Add to cart result data
items
array of object (CartItemInfo)
List of items that needs to be added in cart.
Show
Examples
Parameters
Parameters are not required.
Response
Loading...
PUT

Update cart items

Customers can modify added product attributes such as quantity and size, as well as remove items from the cart.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
The unique identifier of the cart
iquery
boolean
This is a boolean value. Select `true` to retrieve all the items added in the cart.
order_typequery
string
The order type of shipment HomeDelivery - If the customer wants the order home-delivered PickAtStore - If the customer wants the handover of an order at the store itself.
bquery
boolean
This is a boolean value. Select `true` to retrieve the price breakup of cart items.
include_cart_calculationquery
boolean
Set to `false` to skip recalculating and fetching the updated cart after the edit. Defaults to `true`.
buy_nowquery
boolean
This is a boolen value. Select `true` to set/initialize buy now cart
Headers
x-ordering-source
string
Ordering source header, to be used to identify source of order creation.
x-ordering-source-type
string
Ordering source type header, to be used to identify source type of order creation.
x-anonymous-cart
string
Anonymous cart header used to perform operations on cross-platform anonymous cart. When enabled, the system fetches the cart only based on cart_id instead of user_id.
Request body
user_id
string
The user id of user, for which we need to update the cart
items
array of object (UpdateProductCart)
List items data that needs to be updated in cart
Show
free_gift_items
array of object (FreeGiftItemCreation)
List of free gift items with updated sizes.
Show
operation
string
Required
Field to determine if item to be removed from cart or it needs to be updated
Enum
free_gift_items_operation
string
Field to determine if free gift item to be removed from cart or it needs to be added.
Enum
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
Loading...
Response
200
Success. Updates and returns a cart object as shown below. Refer `UpdateCartDetailResult` for more details.
Hide
Update cart detail response schema denotes cart data and message of the update cart API response
success
boolean
True if all items are added successfully. False if partially added or not added.
cart
object (CartDetailResult)
Show
result
object
Contains article related result info
items
array of object (CartItemInfo)
List of items that needs to be updated in cart.
Show
message
string
Message of update cart API response
Response
Loading...
PATCH

Update cart breakup values

Updates the cart breakup based on the enabled features and user preferences. This endpoint allows customers to modify how their cart totals are calculated — including options such as applying store credits, loyalty points, discounts, and other promotional benefits. The API recalculates and returns the updated breakup reflecting the selected configurations in real-time.
Parameters
company_idpath
string
Required
Unique identifier of the company associated with the current cart.
application_idpath
string
Required
Unique identifier of the sales channel (e.g., website, app) for which the cart belongs.
idquery
string
Unique identifier of the cart for which the breakup needs to be updated.
iquery
boolean
Set to `true` to include all items currently added to the cart in the response.
bquery
boolean
Set to `true` to include the detailed price breakup of each cart item in the response.
include_cart_calculationquery
boolean
Set to `false` to skip recalculating and fetching the updated cart after the edit. Defaults to `true`.
buy_nowquery
boolean
Set to `true` to initialize a "Buy Now" cart flow, enabling direct checkout for a single item.
Headers
x-ordering-source
string
Identifier for the ordering source (e.g., web, mobile app, POS). Used to determine the origin of the order request and apply source-specific rules.
x-ordering-source-type
string
Identifier for the ordering source type (e.g., storefront, store_os_pos, kiosk). Used to determine the source type for order governance and validations.
x-anonymous-cart
string
Anonymous cart header used to perform operations on cross-platform anonymous cart. When enabled, the system fetches the cart only based on cart_id instead of user_id.
Request body
store_credit
boolean
Select `true` to include store credit in cart breakup
PATCH
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/detail
Loading...
Response
200
400
Success. Updates and returns a cart object as shown below. Refer `CartDetailResult` for more details.
Hide
Cart API response schema which includes applied promo details, breakup values, buy_now, cart id, checkout mode, comment, common config, coupon, coupon text, gstin etc.
cart_id
integer
| int32
Unique identifier of the user cart
uid
string
Unique identifier of the user cart
coupon_text
string
Coupon text of coupon applied on cart
id
string
Unique identifier of the user cart
pan_config
object
Pan card config states at what condition user should enter the pan card
delivery_promise
object (ShipmentPromise)
Show
comment
string
Comment message to be added in user cart
items
array of object (CartProductInfo)
Items data list in user cart that includes item id, item size, store id, available sizes and rest of the item related data
Show
payment_selection_lock
object (PaymentSelectionLock)
Show
delivery_charge_info
string
Delivery charge in information message on shipment
common_config
object (CartCommonConfig)
Show
coupon
object (CartDetailCoupon)
Show
restrict_checkout
boolean
Restrict checkout flag to restrict the checkout process
message
string
Message of the cart detail API response
notification
object
Notification object which denotes notification data for user cart
staff_user_id
string
Staff employee user id if cart is created by staff employee for the customer
success
boolean
Success flag of get cart detail API response
breakup_values
object (CartBreakup)
Show
is_valid
boolean
Cart validity flag determines the if the response is valid or not
currency
object (CartCurrency)
Show
checkout_mode
string
Checkout mode of user cart
last_modified
string
| date
Last modified timestamp of cart
buy_now
boolean
Buy now flag for the cart which denotes user is doing fast checkout for the cart using buy now
gstin
string
GSTIN added in user cart
ship_to_gst_details
object (ShipToGstDetails)
Nullable
Show
applied_promo_details
array of object (AppliedPromotion)
List of applied promotions data to cart which includes promotion id, promotion name, offer text, description, buy rules, discount rules and promotion type
Show
pan_no
string
Permanent Account Number of the user
custom_cart_meta
object
Custom meta details added cart checkout API payload
loyalty_meta
object
Nullable
Free-form metadata stored against the loyalty redemption for this cart. Contains fields passed via the applyLoyaltyPoints meta input (e.g. points, redeem_rule_id) and is forwarded to the loyalty engine on each cart calculation.
alternate_pickup_person
object (PlatformAlternatePickupPerson)
Show
free_gift_selection_available
boolean
Determines if the cart has available promotion free gift items to choose on its added items
Examples
Parameters
company_id:
"value"
application_id:
"value"
id:
"value"
i:
false
b:
false
include_cart_calculation:
false
buy_now:
false
body:
body
x-ordering-source:
"value"
x-ordering-source-type:
"value"
x-anonymous-cart:
"value"
Response
Loading...
PUT

Delete a cart

Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
The unique identifier of the cart.
Request body
cart_id_list
array of string
List of all cart ids, which need to delete
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_archive
Loading...
Response
200
Success. Returns whether the cart has been deleted or not.
Hide
Delete cart response which includes message and success flag
success
boolean
True if cart is archived successfully. False if not archived.
message
string
Message for delete cart response
Examples
Parameters
company_id:
"value"
application_id:
"value"
id:
"value"
body:
body
Response
Loading...
GET

Get a cart items count

Retrieve the total count of items currently present in the customer's cart.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
The unique identifier of the cart.
buy_nowquery
boolean
Boolean value to get buy_now cart.
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/basic
Loading...
Response
200
Success. Returns the total count of items in a user's cart.
Hide
Request schema to return the total number of items in cart
user_cart_items_count
integer
| int32
Item count present in cart
Examples
Parameters
company_id:
"value"
application_id:
"value"
id:
"value"
buy_now:
false
Response
Loading...
PUT

Update cart metadata

Add or modify metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
idquery
string
The unique identifier of the cart
buy_nowquery
boolean
this is boolean to get buy_now cart
Request body
gstin
string
GSTIN number to be added in user cart
ship_to_gst_details
object (ShipToGstDetails)
Nullable
Show
pick_up_customer_details
object
Customer contact details for customer pickup at store
alternate_pickup_person
object (PlatformAlternatePickupPerson)
Show
checkout_mode
string
Checkout mode of user cart
gift_details
object
Nullable
Gift details is open json which can include gift message
pan_no
string
Permanent Account Number of the user
comment
string
Comment message to be added in user cart
staff_user_id
string
Nullable
staff user id
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/meta
Loading...
Response
200
400
Returns a message indicating the success of cart meta updation as shown below.
Hide
Cart meta response schema
is_valid
boolean
Whether added meta was vaild
message
string
Detailed message that used to display
Examples
Parameters
company_id:
"value"
application_id:
"value"
id:
"value"
buy_now:
false
body:
body
Response
Loading...

Cart meta

Cart meta includes configuration settings for customizing and optimizing the cart experience, such as adjusting item limits, configuring discounts, and managing delivery charges, to meet the needs of sales channels effectively.

Operations
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_configuration/{cart_meta_id}
# Update cart meta
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_configuration
# Get cart meta
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_configuration
# Create a new cart meta
PUT

Update cart meta

Modify the configuration settings for cart metadata associated with a specific sales channel. Cart meta includes configuration settings such as allowed maximum cart value, allowed minimum cart value, maximum allowed cart items, delivery charges, etc.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
cart_meta_idpath
string
Required
CartMeta id for fetching single cart meta data for editing
Request body
min_cart_value
integer
| int32
Minimum order value to checkout
max_cart_value
integer
| int32
Maximum order value to checkout
bulk_coupons
boolean
Indicates bulk coupon applicable for cart
max_cart_items
integer
| int32
Maximum cart items to checkout
gift_display_text
string
Free gift charges text to show
delivery_charges
object (DeliveryCharges)
Show
revenue_engine_coupon
boolean
It define credit coupon applicable for cart
gift_pricing
number
| float
Free gift charges per product
enabled
boolean
Enabled flag for cart configuration
PUT
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_configuration/{cart_meta_id}
Loading...
Response
200
400
Cart Meta Config updated successfully
Hide
Update meta information related to cart
min_cart_value
integer
| int32
Minimum order value to checkout
max_cart_value
integer
| int32
Maximum order value to checkout
bulk_coupons
boolean
Indicates bulk coupon applicable for cart
max_cart_items
integer
| int32
Maximum cart items to checkout
gift_display_text
string
Free gift charges text to show
delivery_charges
object (DeliveryCharges)
Show
revenue_engine_coupon
boolean
It define credit coupon applicable for cart
gift_pricing
number
| float
Free gift charges per product
enabled
boolean
Enabled flag for cart configuration
Examples
Parameters
company_id:
"value"
application_id:
"value"
cart_meta_id:
"value"
body:
body
Response
Loading...
GET

Get cart meta

Retrieve meta configuration settings tailored for customizing the cart experience within a specific sales channel. Cart meta includes configuration settings such as allowed maximum cart value, allowed minimum cart value, maximum allowed cart items, delivery charges, etc.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
GET
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_configuration
Loading...
Response
200
400
Cart Meta Config Fetched successfully
Hide
Add meta information related to cart
min_cart_value
integer
| int32
Minimum order value to checkout
max_cart_value
integer
| int32
Maximum order value to checkout
bulk_coupons
boolean
Indicates bulk coupon applicable for cart
max_cart_items
integer
| int32
Maximum cart items to checkout
gift_display_text
string
Free gift charges text to show
delivery_charges
object (DeliveryCharges)
Show
revenue_engine_coupon
boolean
It define credit coupon applicable for cart
gift_pricing
number
| float
Free gift charges per product
enabled
boolean
Enabled flag for cart configuration
Examples
Parameters
company_id:
"value"
application_id:
"value"
Response
Loading...
POST

Create a new cart meta

Create custom meta configurations for carts associated with a specific sales channel. By specifying the company ID and application ID, seller can define unique cart settings, including preferences, rules, and constraints, tailored to their business needs.
Parameters
company_idpath
string
Required
Current company id
application_idpath
string
Required
Current Application id of sales channel
Request body
min_cart_value
integer
| int32
Minimum order value to checkout
max_cart_value
integer
| int32
Maximum order value to checkout
bulk_coupons
boolean
Indicates bulk coupon applicable for cart
max_cart_items
integer
| int32
Maximum cart items to checkout
gift_display_text
string
Free gift charges text to show
delivery_charges
object (DeliveryCharges)
Show
revenue_engine_coupon
boolean
It define credit coupon applicable for cart
gift_pricing
number
| float
Free gift charges per product
enabled
boolean
Enabled flag for cart configuration
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart_configuration
Loading...
Response
201
400
Cart Meta Config Created successfully
Hide
Add meta information related to cart
min_cart_value
integer
| int32
Minimum order value to checkout
max_cart_value
integer
| int32
Maximum order value to checkout
bulk_coupons
boolean
Indicates bulk coupon applicable for cart
max_cart_items
integer
| int32
Maximum cart items to checkout
gift_display_text
string
Free gift charges text to show
delivery_charges
object (DeliveryCharges)
Show
revenue_engine_coupon
boolean
It define credit coupon applicable for cart
gift_pricing
number
| float
Free gift charges per product
enabled
boolean
Enabled flag for cart configuration
Examples
Parameters
company_id:
"value"
application_id:
"value"
body:
body
Response
Loading...

Checkout

Checkout refers to the final stage of the purchasing process where the customer completes their transaction by paying for the selected items and providing necessary shipping and payment information. During checkout, users review their cart contents, enter billing and shipping addresses, choose payment methods, and confirm their order. It's the pivotal moment when the transaction is finalized, and the goods are prepared for delivery to the customer's designated address.

Operations
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart/validate
# Get and validate cart items
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart/checkout
# Headless Checkout
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/checkout/over-ride
# Update cart checkout
POST
/service/platform/cart/v2.0/company/{company_id}/application/{application_id}/checkout
# Checkout cart
POST

Get and validate cart items

Retrieve cart details for a provided list of cart items and validate its contents. This ensures accuracy and completeness in cart information, including item quantities, prices, discounts, and applicable taxes.
Parameters
company_idpath
string
Required
Unique identifier of the company
application_idpath
string
Required
Unique identifier of the sales channel application
Headers
x-ordering-source
string
Ordering source header, to be used to identify source of order creation.
x-ordering-source-type
string
Ordering source type header, to be used to identify source type of order creation.
x-location-detail
string
Location details for the cart checkout
x-currency-code
string
Currency code for transactions.
Default Value : INR
Request body
cart_items
array of object (CartItem)
Required
List of products in cart
Show
POST
/service/platform/cart/v1.0/company/{company_id}/application/{application_id}/cart/validate
Loading...
Response
200
400
Cart details with breakup
Hide
Open Api cart detail response
is_valid
boolean
Cart validity flag determines the if the response is valid or not
message
string
Message of the cart Open API cart detail response
breakup_values
object (CartBreakup)
Show
items
array of object (CartProductInfo)
Items details in cart
Show