Skip to navigation

Remove one or more lines from a cart

Removes one or more existing lines from the cart by their line id and returns the updated cart with recalculated totals. Any capacity a removed timed ticket or package was holding is released back into availability.

Headers

x-entriastringRequired

Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

Request

This endpoint expects an object.
cartIdstringRequired
Id of the cart to remove lines from.
lineIdslist of stringsRequired
Ids of the lines to remove, as returned in the cart's items.

Response

The cart after the given lines were removed, with recalculated totals.
cartobject

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error
503
Service Unavailable Error