receipts_update
Updates an existing draft or issued receipt and replaces all line items with the provided array.
Instructions
Update an existing receipt. Receipts in draft or issued status can be updated. Replaces all line items with the provided array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID of the receipt to update | |
| lines | Yes | Array of line items (replaces all existing lines) | |
| notes | No | Public notes on the receipt | |
| clientId | No | UUID of the client (optional for receipts) | |
| currency | Yes | Currency code (e.g., RON, EUR, USD) | |
| issuerId | No | UUID of the issuer user | |
| mentions | No | Additional mentions or instructions | |
| seriesId | No | UUID of the receipt series | |
| companyId | No | Company UUID (overrides configured default) | |
| issueDate | Yes | Date of issue (YYYY-MM-DD) | |
| issuerName | No | Name of person issuing the receipt | |
| salesAgent | No | Sales agent name | |
| cardPayment | No | Amount paid by card (for mixed payments) | |
| cashPayment | No | Amount paid in cash (for mixed payments) | |
| customerCif | No | Customer tax ID / CIF (when no clientId is provided) | |
| customerName | No | Customer name (when no clientId is provided) | |
| exchangeRate | No | Exchange rate to base currency | |
| fiscalNumber | No | Fiscal receipt number assigned by the cash register | |
| internalNote | No | Internal note (not visible to customer) | |
| otherPayment | No | Amount paid by other method, e.g. meal ticket (for mixed payments) | |
| paymentMethod | No | Payment method used for the transaction | |
| cashRegisterName | No | Name or identifier of the cash register / fiscal printer | |
| documentSeriesId | No | UUID of the document series to use (alternative to seriesId) | |
| projectReference | No | Related project or order reference |