Skip to main content
DELETE
/
api
/
cotizaciones
/
:id
curl -X DELETE 'https://your-domain.com/api/cotizaciones/15' \
  -H 'Cookie: session=your-session-token'
{
  "ok": true
}
Deletes a quotation permanently.

Authorization

Requires active session. Non-admin users can only delete quotations they created.

Path Parameters

id
number
required
Quotation ID to delete

Response

ok
boolean
Always true on successful deletion
curl -X DELETE 'https://your-domain.com/api/cotizaciones/15' \
  -H 'Cookie: session=your-session-token'
{
  "ok": true
}

Error Responses

StatusCondition
401No active session
403Non-admin user attempting to delete another user’s quotation
404Quotation ID does not exist

Notes

  • Permanent deletion: This operation cannot be undone
  • Role-based access: Admin users can delete any quotation. Non-admin users can only delete quotations where vendedor_id matches their user ID.
  • The quotation number will not be reused after deletion (sequence continues)

Build docs developers (and LLMs) love