Create a new expense record with minimal required fields and smart defaults for optional fields
1 - Cash2 - Bank transfer3 - Card4 - Check5 - Promissory note6 - Other7 - Compensationwith_vat is true: The amount includes VAT, and VAT is extracted from the totalwith_vat is false: The amount excludes VAT, and VAT is added to get the totalwith_currency_exchange is enabled:
Use your API key (sk_live_xxx or sk_test_xxx)
Supplier CzUid (required)
Amount (required, positive number)
x >= 0.01VAT percentage (required - accepts: 0, 5, 9, 11, 19, 21)
0, 5, 9, 11, 19, 21 Expense date (required, Y-m-d format)
Currency code (optional, defaults to RON)
Due date (optional, defaults to 30 days from today)
Payment date (optional, defaults to today if is_paid=true)
Payment type ID 1-7 (optional, defaults to 1 if is_paid=true): 1 = Cash 2 = Bank transfer 3 = Card 4 = Check 5 = Promissory note 6 = Other 7 = Compensation
1 <= x <= 7Category ID (optional, defaults to 0)
Reference number (optional)
Description (optional)
Whether amount includes VAT (optional, defaults to false)
Whether expense is paid (optional, defaults to false)
Whether to apply currency exchange (optional)
Target currency (if with_currency_exchange)
Exchange rate (if with_currency_exchange)