Storefront API · Cart
Remove a line
DELETEhttps://{store}/api/v1/cart/lines/{line}
Removes a line from the cart.
Cart token from
POST /carts: X-Cart-Token: {token}.
Path parameters
lineintegerrequiredLine id.
Responses
204Removed; no body.
404No such line in this cart.
{
"message": "Not Found"
} 401No X-Cart-Token, an expired token, or a cart that is already ordered.
{
"message": "A valid X-Cart-Token header is required.",
"errors": {
"cart_token": [
"Кошик не знайдено, строк доступу минув або його вже оформлено."
]
}
} 429Too many requests (cart creation 20/min per IP, cart calls 120/min, checkout 10/min).
{
"message": "Too Many Attempts."
}