Remove A Product From Favorites
Remove a product from existing favorites
HTTP Request
Remove Product from Favorites
DELETE/api/shop/customers/me/favorites/:product_id
Authorization
Authorization
- Required: Yes
- Permission: Authenticated Customer
- Authentication: Token-based (`Authorization: Token <your_api_key>`)
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| product_id | integer | No | ID of the product to remove from favorites (passed as a URL parameter) |
Example Requests
- 🐍 Python
- 🌐 Curl
1import requests
2
3# Remove product from favorites
4response = requests.delete('http://www.example.com/api/shop/customers/me/favorites/456',
5 headers={'Authorization': 'Token <your_api_key>'}
6)
7print(response.status_code) # Should be 2041# Remove product from favorites
2curl -X DELETE "http://www.example.com/api/shop/customers/me/favorites/456" -H "Authorization: Token <your_api_key>"Response Fields
| Field | Type | Description |
|---|---|---|
| None | None | No response body returned |