X-Cart-Token header for guest carts. Authenticated customers should also include their Authorization: Bearer token.
GET /cart
Get the current cart contents.Authentication
Optional. UseX-Cart-Token for guest carts or Authorization: Bearer for authenticated customers.
Headers
Example Request
Response
Success (200)
POST /cart/add
Add a product to the cart.Authentication
Optional. UseX-Cart-Token for guest carts.
Headers
Body Parameters
Example Request
Response
Success (200)
Returns the full cart contents (same format asGET /cart).
Error Responses
PATCH /cart/items/
Update the quantity of a cart item.Authentication
Optional. UseX-Cart-Token for guest carts.
Path Parameters
Headers
Body Parameters
Example Request
Response
Success (200)
Returns the full cart contents.Error Responses
DELETE /cart/items/
Remove a specific item from the cart.Path Parameters
Example Request
Response
Success (200)
DELETE /cart/clear
Remove all items from the cart.Example Request
Response
Success (200)
GET /cart/count
Get the number of items in the cart.Example Request
Response
Success (200)
GET /cart/validate
Validate the cart before proceeding to checkout. Checks stock availability, product status, and other constraints.Example Request
Response
Valid Cart (200)
Invalid Cart (400)
GET /cart/summary
Get a cart summary including available payment methods and shipping information. Use this before displaying the checkout page.Example Request
Response
Success (200)
RMZ is a digital products platform. Shipping is always
required: false with cost: 0.
