Create voucher
Book a voucher with rows of account, debit and credit in a voucher series.
POST https://cotlet.dev/api/v1/fortnox/vouchers
Books one voucher with a transaction date, a description, a voucher series and rows. Each row has an account and either a debit or a credit amount; debits must equal credits. The date must fall inside an existing financial year and every account must exist and be active, or Fortnox rejects the voucher. Returns the series and voucher number. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| voucher_series string required | string | Voucher series code, e.g. A. |
| transaction_date date required | date | Booking date, inside an existing financial year. |
| description string required | string | Voucher description. |
| rows array required | array | Objects with account and either debit or credit. |
Request
curl -X POST https://cotlet.dev/api/v1/fortnox/vouchers \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]}' result = client.call("fortnox", "create_voucher", {"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]}) const result = await cotlet.call('fortnox', 'create_voucher', {"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]}); cotlet call fortnox create_voucher --data '{"voucher_series":"A","transaction_date":"2026-10-31","description":"Accrued rent, October","rows":[{"account":"5010","debit":8000},{"account":"2990","credit":8000}]}' Example response
{
"voucher_series": "A",
"voucher_number": 142,
"transaction_date": "2026-10-31",
"description": "Accrued rent, October",
"rows": [
{
"account": "5010",
"debit": 8000,
"credit": 0
},
{
"account": "2990",
"debit": 0,
"credit": 8000
}
]
}