| name | register_supplier_invoice |
| tier | 2 |
| task | T11 |
| description | This skill should be used when the task asks to "register a supplier invoice", "erfassen Sie die Lieferantenrechnung", "registrer leverandørfaktura", "registrer ein leverandørfaktura", "enregistrer une facture fournisseur", "registrar fatura de fornecedor", "received an invoice from supplier", or involves recording an incoming invoice from a supplier with VAT/input tax handling. |
Register Supplier Invoice
Call 1: GET /supplier + GET /ledger/account (parallel)
GET /supplier?organizationNumber=<org_nr>&fields=id,name&count=10
GET /ledger/account?number=<expense_acct>,2400&fields=id,number,name
Where <expense_acct> is the account from the prompt (e.g. 6300, 6500, 7100, 7300).
Call 2: POST /supplierInvoice?sendToLedger=true
Use 2-line auto-VAT postings. The system auto-generates the VAT posting on account 2710 and auto-assigns voucherType "Leverandørfaktura".
POST /supplierInvoice?sendToLedger=true
{
"invoiceNumber": "<invoice_number>",
"invoiceDate": "2026-03-21",
"invoiceDueDate": "2026-04-04",
"supplier": {"id": <supplier_id>},
"amountCurrency": -<amount_incl_vat>,
"currency": {"id": 1},
"voucher": {
"date": "2026-03-21",
"description": "<service_description>",
"postings": [
{
"date": "2026-03-21",
"account": {"id": <expense_account_id>},
"vatType": {"id": 1},
"amountGross": <amount_incl_vat>,
"amountGrossCurrency": <amount_incl_vat>,
"description": "<service_description>",
"row": 1,
"supplier": {"id": <supplier_id>}
},
{
"date": "2026-03-21",
"account": {"id": <account_2400_id>},
"amountGross": -<amount_incl_vat>,
"amountGrossCurrency": -<amount_incl_vat>,
"description": "<service_description>",
"row": 2,
"supplier": {"id": <supplier_id>}
}
]
}
}
Extract the voucher ID from the response: response.value.voucher.id.
Call 3: PUT /ledger/voucher/{voucherId}/:sendToLedger
PUT /ledger/voucher/<voucher_id>/:sendToLedger
No body needed. This finalizes the voucher so postings are visible in the ledger.
3 calls, 0 errors.
Key details
amountCurrency MUST be negative (e.g. -50000)
- 2-line auto-VAT: expense GROSS with vatType:1 + AP GROSS credit. System auto-generates VAT posting on 2710.
- vatType id=1 = "Deductible input VAT, high rate" (25%) — correct for supplier invoices
- No need to look up voucherType — system auto-assigns "Leverandørfaktura"
- No need to look up account 2710 — system auto-creates the VAT posting
- Account 2400 = supplier liability (AP)
- The PUT :sendToLedger call is CRITICAL — without it, the voucher stays as temp and postings are invisible to the scoring system