Skip to main content

Get Cart

This API is used to retrieve the details of the cart.

Query Parameters
  • cartId required

    The unique id of the cart.

Responses

Success response


{
"statusCode": 200,
"data": {
"_id": "632488c1d491729ad937ac7d",
"locationId": 1364,
"bill": {
"subtotal": 200,
"tax": 0,
"taxes": [],
"discount": 0,
"discounts": [],
"charge": 0,
"charges": [],
"roundOff": 0,
"total": 200
},
"items": [],
"__v": 0
}
}
GET /ecommerce/v1/carts

Authorization

type: oauth2flow: clientCredentialsscopes: cart:read,cart:write

Request

Bearer Token
cartId — query required
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'