Sari la conținut

Oferte

Ofertele și devizele trimise clienților. Se pot modifica și șterge doar cât sunt ciorne.

Modul: Devize & oferte (quotes).

  • GET /api/v1/quotes - Listare cu filtre, sortare și paginare (scope quotes:read)
  • GET /api/v1/quotes/{id} - O înregistrare după id (scope quotes:read)
  • POST /api/v1/quotes - Creează o înregistrare (scope quotes:write)
  • PATCH /api/v1/quotes/{id} - Modifică câmpurile trimise (scope quotes:write)
  • DELETE /api/v1/quotes/{id} - Șterge sau dezactivează (scope quotes:write)
  • POST /api/v1/quotes/{id}/send - Marchează oferta ca trimisă. Cu email=true o trimite și clientului, cu linkul de acceptare. (scope quotes:write)
  • POST /api/v1/quotes/{id}/decide - Consemnează răspunsul clientului. (scope quotes:write)
  • POST /api/v1/quotes/{id}/duplicate - Face o ciornă nouă din ofertă. (scope quotes:write)
  • POST /api/v1/quotes/{id}/to_invoice - Ciornă de factură din oferta acceptată. (scope quotes:write, invoices:write)
  • POST /api/v1/quotes/{id}/to_project - Proiect cu etape din oferta acceptată. (scope quotes:write, projects:write)
  • id (string, uuid; citire): Identificator unic (UUID).
  • number (string; citire)
  • party_id (string, uuid; scriere, obligatoriu)
  • title (string; scriere, obligatoriu)
  • status (string; citire)
  • issue_date (string, date; scriere)
  • valid_until (string, date; scriere)
  • currency (string; citire): Moneda (cod ISO, ex. RON).
  • intro (string; scriere)
  • terms (string; scriere)
  • project_id (string, uuid; citire)
  • invoice_id (string, uuid; citire)
  • sent_at (string, date-time; citire)
  • decided_at (string, date-time; citire)
  • decided_via (string; citire)
  • decided_by (string; citire)
  • decided_note (string; citire)
  • created_by (string; citire)
  • created_at (string, date-time; citire): Data creării (ISO 8601).
  • updated_at (string, date-time; citire): Data ultimei modificări (ISO 8601).
  • lines (array; scriere, obligatoriu)
  • quotes.created
  • quotes.updated
  • quotes.deleted