create_sales_receipt_line
Settle a sales document against a receipt by linking them and recording the applied amount to mark the document paid.
Instructions
Settle a sales document against a receipt (settlement line).
Links an existing receipt to a receivable so the document is marked paid. Field values (how much settles what) are the caller's responsibility — this tool only builds the documented payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_total | No | Net total of the receivable line. | |
| receipt_id | Yes | Parent sales receipt id (from create_sales_receipt). | |
| gross_total | No | Gross total of the receivable line. | |
| receivable_id | Yes | Id of the receivable being settled — the sales document id. | |
| received_value | Yes | Amount of this receipt applied to the receivable. | |
| receivable_type | No | Receivable kind. `Document` for a sales document. | Document |
| retention_total | No | Withholding/retention amount. | |
| cashed_vat_amount | No | Cashed-VAT amount, if applicable. | |
| settlement_amount | No | Early-settlement discount amount. | |
| settlement_percentage | No | Early-settlement discount percentage. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||