Client invoices
Invoices to clients. Only drafts can be modified; DELETE deletes a draft and cancels an issued invoice.
Module: Cashier (invoices).
Endpoints
Section titled “Endpoints”GET /api/v1/invoices- List with filters, sorting and pagination (scopeinvoices:read)GET /api/v1/invoices/{id}- A record by id (scopeinvoices:read)POST /api/v1/invoices- Create a record (scopeinvoices:write)PATCH /api/v1/invoices/{id}- Modify the submitted fields (scopeinvoices:write)DELETE /api/v1/invoices/{id}- Delete or deactivate (scopeinvoices:write)POST /api/v1/invoices/{id}/issue- Issues the invoice from the draft, according to the company’s invoicing setting: in the app, with e-Factura, or in SmartBill. It cannot easily be withdrawn. (scopeinvoices:write)POST /api/v1/invoices/{id}/mark_issued- Marks as issued an invoice numbered elsewhere. It sends nothing to ANAF. (scopeinvoices:write)POST /api/v1/invoices/{id}/credit- Full reversal draft for an issued invoice, without payments. (scopeinvoices:write)POST /api/v1/invoices/{id}/add_payment- Records a payment on the issued invoice. (scopeinvoices:write)POST /api/v1/invoices/{id}/delete_payment- Deletes an invoice payment. (scopeinvoices:write)POST /api/v1/invoices/{id}/send_email- Sends the issued invoice to the client’s email, from the company’s SMTP. (scopeinvoices:write)POST /api/v1/invoices/{id}/use_points- Pune punctele clientului ca reducere pe o ciornă de factură, împărțită pe cotele de TVA. (scopeinvoices:write)POST /api/v1/invoices/{id}/remove_points- Scoate reducerea din puncte de pe o ciornă; punctele se întorc clientului. (scopeinvoices:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).party_id(string, uuid; write, required)status(string; read)issue_date(string, date; write)due_date(string, date; write)currency(string; write): Currency (ISO code, e.g. RON).note(string; write)series(string; read)number(string; read)provider(string; read)external_url(string; 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).credit_for(string, uuid; read)reversed_by(string, uuid; read)proforma_id(string, uuid; read)intra_eu(boolean; write)reverse_charge(boolean; write)exchange_rate(number; write)legal_entity_id(string; write)is_advance(boolean; read)rate_date(string, date; write)warehouse_id(string, uuid; write)stock_document_id(string, uuid; read)series_choice(string; write)lines(array; write, required)
Events
Section titled “Events”invoices.createdinvoices.updatedinvoices.deleted