Get Cart
This API is used to retrieve the details of the cart.
Query Parameters
- cartId required
The unique id of the cart.
Responses
- 200
- 404
Success response
- application/json
- Example
{
"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
}
}
Cart not found error response
- application/json
- Example
{
"statusCode": 404,
"message": "cart not found",
"error": "Not Found"
}
GET /ecommerce/v1/carts
Authorization
type: oauth2flow: clientCredentialsscopes: cart:read,cart:write
Request
Request
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
curl -L -X GET 'https://posbytz.github.io/ecommerce/v1/carts' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'