Get a cart
GET /cart
This endpoint lets you to retrieve an existing cart.
Headers
Header
Type
Description
Authorization
string
Bearer token.
customuserid
string
This is a unique object id identifier that you create for each of your users.
Response
{
"user": "ObjectId",
"items": [
{
"product": "ObjectId",
"quantity": 1,
"variantId": "String",
"variantName": "String",
"productPrice": "String"
}
],
"totalAmount": 100,
"shippingCost": 5,
"taxFee": 2,
"tipAmount": 3,
"offsetAmount": 1,
"membershipDiscount": 2,
"credits": 0,
"isGuest": false
}
Last updated
Was this helpful?