Skip to main content
DELETE
/
extra
/
delete
curl -X DELETE https://api.example.com/extra/delete \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN" \
  -d '{
    "v_id_extra": 3
  }'
{
  "message": "Eliminacion Exitosa"
}
This endpoint allows you to delete an existing extra item (such as chairs, tables, tablecloths, etc.) from the system. The user must be authenticated with a valid JWT token stored in the access_token cookie.

Request Body

v_id_extra
number
required
ID of the extra item to delete. Must be a positive integer.Example: 3

Response

message
string
Success message confirming the extra was deletedExample: "Eliminacion Exitosa"

Status Codes

200
Success
Extra deleted successfully
400
Bad Request
Validation error in the submitted data
401
Unauthorized
Token not sent or invalid (cookie missing or expired)
404
Not Found
No extra exists with the provided ID
500
Internal Server Error
Internal server error
curl -X DELETE https://api.example.com/extra/delete \
  -H "Content-Type: application/json" \
  -b "access_token=YOUR_JWT_TOKEN" \
  -d '{
    "v_id_extra": 3
  }'
{
  "message": "Eliminacion Exitosa"
}
Deleting an extra is a permanent action. Make sure the extra is not currently associated with any active bookings before deletion.

Build docs developers (and LLMs) love