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
Responsestring

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
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
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
delete
/cart/delete

Last updated