Proformas
Proforma invoices to clients. Only drafts can be modified; DELETE deletes a draft and cancels an issued proforma.
Module: Cashier (invoices).
Endpoints
Section titled “Endpoints”GET /api/v1/proformas- List with filters, sorting and pagination (scopeinvoices:read)GET /api/v1/proformas/{id}- A record by id (scopeinvoices:read)POST /api/v1/proformas- Create a record (scopeinvoices:write)PATCH /api/v1/proformas/{id}- Modify the submitted fields (scopeinvoices:write)DELETE /api/v1/proformas/{id}- Delete or deactivate (scopeinvoices:write)POST /api/v1/proformas/{id}/issue- Issues the proforma and gives it its number. (scopeinvoices:write)POST /api/v1/proformas/{id}/to_invoice- Draft invoice from the proforma. (scopeinvoices:write)POST /api/v1/proformas/{id}/advance_invoice- Draft advance invoice for the uninvoiced payments. (scopeinvoices:write)POST /api/v1/proformas/{id}/add_payment- Records an advance received. (scopeinvoices:write)POST /api/v1/proformas/{id}/delete_payment- Deletes an advance. (scopeinvoices:write)POST /api/v1/proformas/{id}/send_email- Sends the issued proforma to the client’s email. (scopeinvoices: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. (scopeinvoices:write)POST /api/v1/proformas/{id}/remove_points- Removes the points discount from the payment note; the points go back to the client. (scopeinvoices:write)
Fields
Section titled “Fields”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)
Events
Section titled “Events”proformas.createdproformas.updatedproformas.deleted