Expenses
Expense creation does NOT count against the usage meter (free) but, being a write, requires an active API package. If you pass an Estonian chart-of-accounts (Scheme 1) accountCode the category is derived automatically; if you pass taxRate, net amount and VAT are computed automatically.
Endpoints
POST
/expensesScope: write:expensesCreates an expense (status APPROVED).
Example request
curl -X POST -H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
https://corpenza.com/api/external/accounting/expenses -d '{
"description": "GitHub subscription",
"amount": 48.80,
"taxRate": 24,
"vatIncluded": true,
"accountCode": "40644",
"vendor": "GitHub",
"vendorCountry": "US"
}'Example response
{
"id": "exp_...",
"accountCode": "40644",
"netAmount": 39.35,
"taxAmount": 9.45,
"status": "APPROVED"
}GET
/expensesScope: read:expensesExpense list (category, status, from, to filters).