Remove All Items from Basket

Service URL: DELETE /baskets/{basketReference}/items

Tokens:

basketReference – The basket reference of the basket to remove all items from a basket.

Remarks:

Removes all items from a basket.

Scenarios

ScenarioOutcomeExpected behaviourStatus CodeResponse
1Delete all items for a valid primary basket reference.SuccessAll items should be deleted for the requested basket. 200200 Success Ok
2Delete all items for a valid wishlist basket reference.SuccessAll items should be deleted for the requested basket. 200200 Success Ok
3Delete all items for an invalid basket reference.NotFoundA bad request error should be raised.400ErrorMessage :Bad request. Could not delete items for basket reference <basketReference>

Example Request:

DELETE: http://localhost:8080/WebRestApi/rest/baskets/MUCFJAIBTVDK3HHNC444ZALMV4/items

Example Response:

Status: 200 OK

Go to Top