Record a received expense
superfaktura_create_expenseDestructive
WRITE: records a received document (expense) with ONE total amount and VAT rate, e.g. a supplier invoice or a bill. It is created unpaid: no payment is recorded and nothing is sent. No attachments. Not idempotent: calling twice records two expenses. POST /expenses/add.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due | No | Due date (default today). | |
| vat | No | VAT rate in percent (default 0). | |
| name | Yes | Expense name / what it is for. | |
| type | No | Expense type (default invoice = received invoice). | |
| amount | Yes | Amount WITHOUT VAT. | |
| comment | No | Comment. | |
| created | No | Issue date (default today). | |
| currency | No | 3-letter currency code, e.g. EUR, CZK. | |
| delivery | No | Delivery date (default today). | |
| variable | No | Variable symbol. | |
| client_id | No | Supplier (client) id from superfaktura_list_clients. | |
| category_id | No | Expense category id from superfaktura_list_expense_categories. | |
| document_number | No | The supplier's document number. |