Collect Payment
collect_paymentRecord a payment for an existing invoice by specifying the invoice series and number, along with the payment method and document details.
Instructions
Records a payment (incasare) against an existing invoice via PUT /api/docs/invoice/collect. Identifies the invoice by seriesName + number. The collect object specifies payment method (type), document number, optional value (defaults to full invoice total), and optional issueDate. Available payment types: Chitanta, Bon fiscal, Bon fiscal card, Alta incasare numerar, Ordin de plata, Mandat postal, Card, CEC, Bilet ordin, Alta incasare banca, Ramburs. Returns: documentType, seriesName, number, link, and collects array with all payments on the invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seriesName | Yes | Invoice series name (e.g. FCT) | |
| number | Yes | Invoice number | |
| collect | Yes | Payment details |