Remove all items from cart
Description
This service removes all items from the cart for a given mileage activity, effectively clearing the cart.
Request
Restrictions
This service requires an authenticated user and can only be called after a successful consumer login.
Endpoint
DELETE https://<server-url>/api/v4/mileage/{activity_code}/cart/itemsPath Parameters
activity_code
String
The unique code for the mileage activity whose cart will be cleared.
Parameters
touchpoint
Query / Header
The identifier for the touchpoint. Use Thalamus-Touchpoint for the header.
token
Query / Header
The authentication token for the API session. Use Thalamus-Token for the header.
Full URL Example
Request Body
This request does not have a body.
Response
✅ Successful Response: 200 OK
200 OKAll items were successfully removed from the cart. The response returns the updated session context, reflecting the empty cart in the personStatus object.
JSON
❌ Unsuccessful Response: 404 Not Found
404 Not FoundReturned if the specified activity_code does not exist.
JSON
Last updated
Was this helpful?
