Skip to main content

Remove Product from Cart

API operation: Open the endpoint in Scalar

Use POST /carts/remove_product to remove a product selection from a cart. The current public operation is Cart.remove_product.

This operation requires authentication and accepts the cart product representation as JSON. Send the product identity as stored in the cart: its code distinguishes otherwise similar selections that have different options. The controller applies user and business-manager access checks before removal.

See Cart model for product structures.

OpenAPI reference​

Operation: POST /carts/remove_product

Header parameters

NameTypeRequiredDescription
X-SOCKET-ID-XstringNo—

Request body fields

NameTypeRequired
business_idanyNo
platform_productstringNo
productstringNo
user_idanyNo
uuidanyNo

Responses

CodeDescription
200OK
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference