Remove from cart
curl --request POST \
--url https://api.mannco.store/cart/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cartId": 42
}'import requests
url = "https://api.mannco.store/cart/remove"
payload = { "cartId": 42 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cartId: 42})
};
fetch('https://api.mannco.store/cart/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"success": true,
"content": {
"cart": []
}
}{
"err": true,
"success": false,
"content": "Error message"
}{
"err": true,
"success": false,
"content": "forbidden"
}{
"err": true,
"success": false,
"content": "Internal server error"
}Cart
Remove from cart
Removes one cart row (and all its asset IDs) from the cart.
Permission: Connected + API.
POST
/
cart
/
remove
Remove from cart
curl --request POST \
--url https://api.mannco.store/cart/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"cartId": 42
}'import requests
url = "https://api.mannco.store/cart/remove"
payload = { "cartId": 42 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cartId: 42})
};
fetch('https://api.mannco.store/cart/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"success": true,
"content": {
"cart": []
}
}{
"err": true,
"success": false,
"content": "Error message"
}{
"err": true,
"success": false,
"content": "forbidden"
}{
"err": true,
"success": false,
"content": "Internal server error"
}Authorizations
JWT obtained from POST /user/login
Body
application/json
Cart row ID (from get cart response)
Response
Removed
Standard Mannco.store response envelope. err and success flag the outcome; the payload (or error message) is always under content.