payments_receipt_issue
Issues a cash receipt for an existing cash payment on an invoice, assigning a receipt series and date without duplicating the payment or altering balances.
Instructions
Issue the chitanță (cash receipt) for a cash payment already recorded on an issued invoice: a number from the receipt series (the company default, or seriesId) and a date (default: the payment date). The receipt documents the existing payment and never records a second one — the invoice balance and the cash register keep the same single payment. Idempotent: a payment that already has a receipt keeps it. 422 for non-cash payments, received invoices, or when no receipt series exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Receipt date YYYY-MM-DD (default: the payment date) | |
| seriesId | No | Receipt series UUID (type receipt); default: the company default receipt series | |
| companyId | No | Company UUID override (uses active company if not set) | |
| invoiceId | Yes | Invoice UUID | |
| paymentId | Yes | Payment UUID (from payments_list; paymentMethod must be cash) |