To delete all items from your cart, make a POST request to the Delete All Items from Cart API with the following requirements:
POST https://api.farnell.com/cart/clear
Request Headers
Name | Description |
api_key required * |
your_generated_api_key To generate your API key, follow the instructions on the Order API Registration page. |
authorization required * |
your_jwt_token To get your JWT token for authorization, use the Generate JWT Authentication Token API. |
Response
Code 204
{ “orderId”: “<Cart ID>”}