curl --request DELETE \
--url https://api.example.com/api/pedidos/{id}curl --request DELETE \
--url https://api.example.com/api/pedidos/{id}Authorization: Bearer YOUR_ADMIN_JWT_TOKEN
| Parameter | Type | Required | Description |
|---|---|---|---|
id | Long | Yes | Order ID to delete |
curl -X DELETE "https://api.iquea.com/api/pedidos/42" \
-H "Authorization: Bearer YOUR_ADMIN_JWT_TOKEN" \
-H "Content-Type: application/json"
| Code | Description |
|---|---|
| 204 | No Content - Order successfully deleted |
| 401 | Unauthorized - Invalid or missing token |
| 403 | Forbidden - User does not have admin privileges |
| 404 | Order not found |
| 500 | Internal server error |