Skip to content

Proformas

Proforma invoices to clients. Only drafts can be modified; DELETE deletes a draft and cancels an issued proforma.

Module: Cashier (invoices).

  • GET /api/v1/proformas - List with filters, sorting and pagination (scope invoices:read)
  • GET /api/v1/proformas/{id} - A record by id (scope invoices:read)
  • POST /api/v1/proformas - Create a record (scope invoices:write)
  • PATCH /api/v1/proformas/{id} - Modify the submitted fields (scope invoices:write)
  • DELETE /api/v1/proformas/{id} - Delete or deactivate (scope invoices:write)
  • POST /api/v1/proformas/{id}/issue - Issues the proforma and gives it its number. (scope invoices:write)
  • POST /api/v1/proformas/{id}/to_invoice - Draft invoice from the proforma. (scope invoices:write)
  • POST /api/v1/proformas/{id}/advance_invoice - Draft advance invoice for the uninvoiced payments. (scope invoices:write)
  • POST /api/v1/proformas/{id}/add_payment - Records an advance received. (scope invoices:write)
  • POST /api/v1/proformas/{id}/delete_payment - Deletes an advance. (scope invoices:write)
  • POST /api/v1/proformas/{id}/send_email - Sends the issued proforma to the client’s email. (scope invoices:write)
  • POST /api/v1/proformas/{id}/use_points - Applies the client’s points as a discount on an uninvoiced payment note; on an issued one, at most the amount still due. (scope invoices:write)
  • POST /api/v1/proformas/{id}/remove_points - Removes the points discount from the payment note; the points go back to the client. (scope invoices:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • party_id (string, uuid; write, required)
  • status (string; read)
  • number (string; read)
  • issue_date (string, date; write)
  • valid_until (string, date; write)
  • currency (string; write): Currency (ISO code, e.g. RON).
  • note (string; write)
  • invoice_id (string, uuid; read)
  • issued_at (string, date-time; read)
  • cancelled_at (string, date-time; read)
  • created_by (string; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • legal_entity_id (string; write)
  • exchange_rate (number; write)
  • rate_date (string, date; write)
  • kind (string; write)
  • lines (array; write, required)
  • proformas.created
  • proformas.updated
  • proformas.deleted