Add Item in User Cart (13/01)

Add another item in user cart by firing this api.

This endpoint allows you to add items in cart

GET https://castleindia.in/emart/public /api/addtocart /api/addtocart

Headers

NameTypeDescription

String

application/json

String

Bearer { bearer_token } goes here.

Request Body

NameTypeDescription

variantid*

Integer

Id of product if adding variant or simple product in cart

Send type

type*

String

v = Variant product s = Simple Product

quantity*

integer

Item quantity in cart.

currency*

String

Currency code eg : INR

{
    "msg": "Item added to cart successfully !",
    "status": "success"
}

IF response fail

{
    "msg": "quantity is required",
    "status": "fail"
}

Last updated