cart-shoppingCart

This page contains the documentation for the cart endpoints.

The cart endpoints allow you to add items in your cart and look at what you currently have in there. You can also modify the number of items and remove items in the cart.

Add Items to Cart

post
/cart/add

This endpoint allows you add items to your cart.

Authorizations
AuthorizationstringRequired

Provide your API key.

Body
productIdstringRequired

The ID of the product. You can use the GET Product list endpoint to view available products and it's ID.

quantityintegerRequired

The quantity of items to add.

Responses
chevron-right
200

Successful response. Returns the result of the operation.

text/plain
stringOptional

Successful operation.

Example: POST REQUEST SUCCESS
post
/cart/add

Get Cart Items

get
/cart/items

This endpoint allows you get the current items in your cart.

Authorizations
AuthorizationstringRequired

Provide your API key.

Responses
chevron-right
200

Successful response. Returns the list of items in your cart.

application/json
_idstringOptional

Unique identifier for the order

__vintegerOptional

The version of the cart. The version increases whenever the cart is modified.

get
/cart/items

Edit Cart Items

put
/cart/edit

This endpoint allows you to update the quantity of a product in the cart.

Authorizations
AuthorizationstringRequired

Provide your API key.

Body
productIdstringRequired

Unique identifier of the product to update.

quantityintegerRequired

New quantity of the product.

Responses
chevron-right
200

Successful response. Returns the items in the cart.

application/json
_idstringOptional

Unique identifier for the cart.

userstringOptional

Unique identifier for the user who owns the cart.

__vintegerOptional

The version of the cart. The version increases whenever the cart is modified.

put
/cart/edit

Remove Items from Cart

delete
/cart/delete

This endpoint allows you to delete specified items from the user's cart.

Authorizations
AuthorizationstringRequired

Provide your API key.

Body
itemsstring[]Optional

List of product IDs to remove from the cart.

Responses
chevron-right
200

Successful response. Returns the updated cart after deletion.

application/json
_idstringOptional

Unique identifier for the cart.

userstringOptional

Unique identifier for the user who owns the cart.

__vintegerOptional

The version of the cart. The version increases whenever the cart is modified.

delete
/cart/delete

Last updated