Record a payment against invoices
smartbill_record_invoice_paymentDestructive
Record a collection (incasare) against one or more issued invoices; client and amount are taken from the invoices. With value (single invoice only) a partial payment is recorded. type Chitanta issues a numbered RECEIPT on receipt_series (cannot be undone from this server); the other types (Card, Ordin plata, ...) record the payment without a document. It changes the invoice's paid status in the books: confirm with the user. Fiscal receipts (Bon) are not supported. POST /payment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Description of the payment. | |
| type | Yes | Payment type. Chitanta = a numbered receipt (needs receipt_series); the others create no document. | |
| value | No | Partial amount, for a single invoice only; omit to collect the invoice's full amount. | |
| is_cash | No | Mark the collection as cash (typically for Chitanta). | |
| invoices | Yes | 1-20 invoices the payment is for. | |
| issue_date | No | Payment date yyyy-mm-dd (default today). | |
| receipt_series | No | Receipt series; required for type Chitanta (smartbill_list_series with type c). |