get_supplier_document
Get a single supplier document by ID, including its line items (positions) and payments. Use this to read a supplier invoice's positions before copying them to another document type (e.g. converting a supplier invoice to a supplier fiscal receipt). Valid document_type values: supplier_invoice (default), supplier_order, supplier_proforma_invoice, supplier_fiscal_receipt, simplified_supplier_invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Supplier document ID | |
| document_type | No | Document type (default: supplier_invoice) |