Payroll: run, payslips, journal import
wagesPayroll for UK, German and Austrian companies, as the Payroll page does it. Read: action=employees (the employees with tax code, NI letter, pay frequency and pay), runs (the runs with their totals and whether the journal is posted), payslips (run_id: each employee's gross, tax, NI, net), calculate (frequency monthly or weekly, pay_date, pay: {employee ref: gross} for this run only): the payslips worked out, nothing kept. Write, released as the owner's switches say (release): action=run with the same fields proposes the run; on release the run is kept with its payslips and its journal posted (wages and employer NI as costs, PAYE and NI to HMRC, net pay owed). action=journal with run_id puts the journal of a run made on the page forward. action=import: a payroll provider's journal (Xero, BrightPay, Sage, QuickBooks, Moneysoft) from csv (the file's text), rows (objects) or document_id (an uploaded CSV or Excel), with pay_date (left out: the file's own date column), reference and provider: either a journal (BrightPay's generic payroll journal with Nominal code, Description, Debit, Credit; QuickBooks' Journal Date, Account Name, Debits, Credits; Xero's AccountCode with one signed Amount; accounts by code, exact name, or mapped by accounts {their code: this chart's code}) or a payroll summary with a column per figure (Gross pay, PAYE, Employee NI, Employer NI, Employee pension, Employer pension, Student loan, Postgraduate loan, Net pay; a row per employee), posted as one journal against accounts {gross, employer_nic, employer_pension, hmrc, pension, net, other_deductions} (left out: 7000, 7020, 7030, 2210, 2230, 2220, 2220). preview=true with import shows the journal and posts nothing. Once posted, the bank line of the net pay and the HMRC payment (one run or one tax month) are recognised against it on the open list. action=staffology (round 725; the owner connects Staffology once on the Payroll page) with fields {what runs|preview|take|connection, tax_year (Year2026 is 6 April 2026 to 5 April 2027), pay_period (Monthly, Weekly, Fortnightly, FourWeekly), period_number}: the pay runs of the tax year with whether each is in the books, one run's journal, or that journal proposed. Round 634, the rest of PAYE (frequency also fortnightly or four_weekly; weeks 53, 54 and 56 on a Week 1 basis): action=employer with fields {paye_ref, ao_ref} sets the employer references from HMRC's letter (no fields: reads them). action=employee with ref and fields {forename, surname, nino, birth_date, gender, start_date, leaving_date, tax_code, week1, ni_letter, frequency, pay, student_loan_plan, postgraduate_loan, director_since, director_until (the day the directorship ended; kept, so the Employment Allowance test reads each payday as it was) and director_nic (AN annual earnings period, AL alternative arrangements), pension {status enrolled|opted_in|joined|opted_out|postponed|ceased, since, info_given, opted_out_on, postponed_to, employee_pct, employer_pct}, absences [{kind SSP|SMP|SAP|SPP|ShPP|SPBP|SNCP, start, end, awe, expected_week, qualifying_days [mon..sun]}], benefits [{kind car|fuel|van|medical|other, description, cash_equivalent, from, to, make, first_registered, co2, fuel, car_id, price}], previous {pay, tax}} adds or changes an employee (lists are replaced whole: as action=employees lists them). action=reenrolment: the dates of the three year cycle and who left the scheme; fields {started, done_on} set the dates, {on} says for each person who opted out whether re-enrolling them is optional on that re-enrolment date (SI 2010/772 reg 5C), {ref} puts one person back. action=class_1a: the P11D(b) figure of the year; action=book_class_1a proposes it as one journal. action=absence_change with fields {ref, absence, end or delete}. action=settings with fields {scheme {name, basis ras|nap|sacrifice, employee_pct, employer_pct}, payrolling, small_employer, employment_allowance, levy_allowance, quarterly (PAYE paid by the 22nd after each tax quarter), enrol_directors (every director assessed for automatic enrolment like a worker)} (no fields: read them). action=hmrc_month with tax_month (1 to 12): what to pay HMRC for the month and by when (PAYE, NICs, loans, statutory pay recovered, Employment Allowance, Apprenticeship Levy). action=eps_file with tax_month and fields {employment_allowance true|false (the claim for the year), no_payment_from, no_payment_to (no pay in a stretch), final true (the last EPS of the tax year)}, as the web's EPS; the claim sets the payroll settings, so runs, Pay HMRC and the EPS say the same. action=book_allowance: the Employment Allowance of runs made before the claim, proposed as one journal. action=fps_file with run_id (fields {final: true} on the last FPS of the year), action=nvr (the NI number check): the XML to HMRC's schema. action=pension_file with run_id, kind contributions|joiners (provider nest|peoples|now|papdis, left out: the scheme's; papdis: the PAPDIS 1.1 file other providers take, contributions only): the provider's own CSV of the run (NEST's contribution schedule or enrolment file, The People's Pension's contributions or maintenance file, the pension data file of NOW Pensions), with who joined, opted out, left or changed details, what is missing and the download link; the employee data is under untrusted. Round 950: action=p11d: the P11D of each employee, the P11D(b) (Class 1A) and the EXB return checked against HMRC's 2026-27 schema, with download links (not sent); action=employee fields {p11d: [{section A to N but F, G, I, description, cost, made_good, cash_equivalent, tax_year (2026-27 if left out), class_1a, max_outstanding ...}]} for what is not payrolled; action=pension_letter with reference (payroll ID), kind enrolment|postponement|join or left out: the letter the worker needs as a PDF link. action=rti_check with kind fps (run_id, fields {final, til: Test in Live}) or eps (tax_month, fields as eps_file): the GovTalk message HMRC's gateway takes, with its IRmark, checked against HMRC's schema, envelope schema and business rules for 2026 to 2027; not sent (sending from Octobooks opens once HMRC lists Octobooks as PAYE software); passed false names each employee detail to add (fixes: address, starter). Round 829: action=employee fields also {address {lines [up to 4], postcode} (the FPS needs two lines for a new starter), starter A|B|C (the starter declaration; with no P45 of this tax year in previous it sets the tax code as HMRC says: A 1257L, B 1257L Week 1/Month 1, C BR), bank {name, sort_code, account}, pay_basis period|annual|hourly with annual_salary or hourly_rate and hours_per_week (sets pay a period), department, archived_on}; absences of kind SSP take contractual stops (SSP replaces pay for the sick days) | full (SSP counted inside full pay) | on_top; a car benefit with price, co2, fuel F|D|A (electric_range for 1 to 50 g/km, rde2, contribution, private_payment) and no cash_equivalent is worked out from HMRC's 2026 to 2027 table, pro rata from its from day. calculate and run take fields {extras: {ref: {overtime, bonus, commission, unpaid, deduction, deduction_text}}}: this run's lines. One run per pay date and frequency: action=bank_file with run_id: the net pay bank payment CSV (payee by name) and who is not in it for want of bank details; fields {format: bacs18, account (bank account code), sun (Service User Number, kept for the next files; Payroll settings, Bacs on the web)} gives the Bacs Standard 18 file in its place; action=undo_run with run_id (and reason) undoes the latest run of a frequency while HMRC has not got its FPS (its journal declined or reversed), then run again. action=employee_archive with ref (fields {undo}) and action=employee_remove with ref (an employee with no pay run). action=pay_items lists the earnings and deduction types; fields {name, kind earning|deduction, taxable, before_tax, account} adds one (with code: changes it, active false: off); a run takes them as fields {extras {REF {CODE: amount}}}, each posted to its account. action=pay_schedules: pay day rule and next pay date per frequency; fields {frequency, rule last_working_day|last_day|day, day, weekday 0-6, first} sets one. action=holiday with ref: entitlement (5.6 weeks, 28 days at most), taken, remaining; fields {add {start, end, days, note, hours}}, {remove: id}, {worked [{period_end, hours}]} (an irregular hours worker's hours a pay period, 12.07% accrue, reg 15B) or {days_per_week, entitlement, year_start MM-DD, carried (this year, replaces the worked out carry), carry_max (days an agreement carries into the next year by itself, reg 13A(7); the rest lapses), irregular}. action=payslip_template: the letterhead and a preview link. action=director_salary with ref: a sole director's salary at the secondary threshold, lower earnings limit or primary threshold with the year's tax, NI and cost; fields {salary: ST|LEL|PT} sets it. action=p60 with ref: the P60 of the year (a PDF link). action=notices with xml (a file of HMRC's notices: P6, P9, SL1, SL2, PGL1, PGL2, NOT, NVR, generic) reads them against HMRC's schemas and applies them (preview=true reads only); action=notice with ref and fields {form P6|P9|SL1|SL2|PGL1|PGL2, tax_code, week1, effective_date, previous_pay, previous_tax, plan} applies one typed in from HMRC's letter. A GERMAN company (Lohn, round 668): action=months (the payroll months booked and what each owes); action=book with month (YYYY-MM), pay_date and rows (one object per employee: name, krankenkasse, church ev|rk, director, minijob, gross, lohnsteuer, soli, kirchensteuer, pauschal_lst, kv_an, rv_an, av_an, pv_an, kv_ag, rv_ag, av_ag, pv_ag, u1, u2, u3, pauschsteuer (Minijob 2 %), deductions, net) or csv / document_id (a Lohnjournal from DATEV Lohn, Lexware or the Octobooks template; or the payroll bureau's Lohnjournal PDF, read against its own totals, its month unless given): each employee is checked to add up and the month is proposed as one journal on the company's SKR03 or SKR04 accounts (preview=true shows it only); action=pay with month (or the Anmeldungszeitraum for kind lst), kind net|lst|sv, kasse (for sv) and pay_date (the payment day): the payment from the bank proposed; action=anmeldung with period (2026-10, 2026-Q4 or 2026): the Kennzahlen of the Lohnsteuer-Anmeldung 2026 from the posted months, for the company to file through ELSTER (nothing is sent); action=period with fields {period: month|quarter|year} sets the Anmeldungszeitraum (section 41a EStG); action=lohnsteuer with fields {gross, tax_class, child_allowances, church, church_rate, kvz, childless, children_under_25, private_kv, private_kv_premium, not_in_rv, saxony, allowance, days (part month), other_pay (sonstiger Bezug), year_pay}: Lohnsteuer and Soli by the BMF Programmablaufplan 2026. Round 677, Octobooks works the month out itself: action=employees (master data, Kassen, settings); action=employee with ref (Personalnummer) and fields {name, birth_date, email (the payslip mail), language, entry_date, leave_date, gross, tax_class, factor, child_allowances, church, krankenkasse, beitragsgruppen (KV RV AV PV, e.g. 1111, 6100), parent, children_under_25, minijob, rv_free, director, sv_free, private_kv, private_kv_premium, trainee (Auszubildende/r: no Midijob; up to 325 euros a month the employer pays all contributions, § 20 Abs. 3 SGB IV), allowance, items [{text, amount, tax, sv, in_kind (a Sachbezug: in the gross, off the net payout, not paid in cash)} or {preset, p}: preset firmenwagen p {list_price, km, drive verbrenner|elektro|hybrid, acquired (for elektro and hybrid), contribution (Nutzungsentgelt a month), own_costs (car costs the employee bears a month, e.g. fuel), payment_once, payment_from YYYY-MM, payment_months (a payment towards the purchase price, spread over the agreed months, else credited until used up), commute_days, home_km, home_trips, home_trips_taxed (family trips home: all count for VAT, those beyond one a week for income tax), vat entgeltlich|gehaltsumwandlung|unentgeltlich|ausland|keine (gehaltsumwandlung with sacrifice, the pay given up a month: VAT on it, at least on the value)}, sachbezug50 p {amount} (free up to 50 euros a month, § 8 Abs. 2 S. 11 EStG), jobticket p {amount} (§ 3 Nr. 15), handy p {amount} (§ 3 Nr. 45), zuschuss_kv and zuschuss_pv p {premium, pay, saxony, no_sick_pay, amount} (half the private premium up to the maximum of § 257 SGB V and § 61 SGB XI, the rest taxed as pay): Octobooks works out the value and what is free], deductions [{text, amount}], ytd_until, ytd_tax_pay, ytd_once_paid, ytd_kv_pay, ytd_rv_pay, ytd_sv_days, prior_pay (the year before Octobooks), py_sv_days, py_kv_pay, py_rv_pay, py_zusatzbeitrag (the year before with this employer, for a one-off paid January to March that the Märzklausel puts into December of that year), steuer_id, sv_nummer} adds or changes one (kind=end: the employee leaves; krankenkasse takes the short names TK, DAK, KKH, hkk, SBK, AOK Bayern ...); action=kasse with kasse and fields {zusatzbeitrag (empty: the GKV-Spitzenverband list), u1, u2 (empty: the Kasse's own 2026 rates where Octobooks has them)}; action=settings with fields {church_rate, saxony, part_method calendar|workdays}; action=run with month and optional fields {once: {Personalnummer: [{text, amount, in_kind}]} one-off payments, part_gross: {Personalnummer: amount}, kug: {Personalnummer: {ist, hours, soll, ls}} a month of Kurzarbeit (ist the salary actually earned; Kurzarbeitergeld by § 105, 106 SGB III and the BA table)} (preview=true: every employee's figures and detail; else proposed as one journal; start and leaving days make part months; 2026 and 2027, other years are refused as not checked; pending lists each 2027 value not yet published, worked out with the 2026 figure); action=payslip with month and ref; action=kug_claim with month (the Kurzarbeitergeld to claim, Kug 107 and 108); action=beitragsnachweis with month (per Krankenkasse, for submission through sv.net; nothing is sent); action=lohnsteuerbescheinigung with ref and month (the year's Zeilen 1 to 27, the Sachbezüge in 3, the Jobticket in 17). An AUSTRIAN company (Lohnverrechnung, round 680): action=settings with fields {land (Wien, Niederösterreich ... or W, N), dz_rate (empty: the WKO rate of the Land), gemeinde, no_dz}; action=employees; action=employee with ref and fields {name, svnr, birth_date, email (the payslip mail), language, entry_date, leave_date, kind angestellter|arbeiter|gesellschafter_gf, gross, sz14_month, sz13_month (the month of the 14th and 13th salary), avab, children, fabo_under18, fabo_over18 (Familienbonus Plus a month), pendlerpauschale (a month), pendler_km, allowance, no_bv, items (as Germany: in_kind, or preset firmenwagen p {cost, co2, year, half, rate, contribution}, oeffi p {amount} (§ 26 Z 5 lit. b EStG), essen p {amount, days, use gaststaette|lebensmittel} (§ 3 Abs. 1 Z 17 EStG), jubilaeum p {amount, month, earlier} (anniversary gift, 186 EUR a year free, § 3 Abs. 1 Z 14 EStG)), deductions, ytd_months, ytd_tax_pay, ytd_sz, ytd_sz_base, holiday_days, holiday_unit arbeitstage|werktage, holiday_year (empty or eintritt), holiday_taken, holiday_old, holiday_round, leave_reason (empty, kuendigung_dg, kuendigung_dn, einvernehmlich, zeitablauf, austritt_unberechtigt, entlassung_verschuldet, tod), abmeldegrund (the ÖGK code 01 to 34, 00), sz_per_year, holiday_piece_13w (Akkord and Prämien of the last 13 full weeks, § 6 Abs. 4 UrlG), holiday_overtime_month (regular overtime a month), holiday_commission_12m (commission of 12 months): the Urlaubsersatzleistung of § 10 UrlG in the month of leaving; apprentice (Lehrling: the reduced SV rates, no Geringfügigkeit); kv_grade and kv_minimum (the Kollektivvertrag minimum a month: a note when the gross is below it); with no_bv in the month of leaving the Abfertigung alt of § 23 AngG, service_from (service counted from, empty: entry_date), abfertigung_base (the monthly pay for it, empty: worked out with the special payments' share)} (kind=end: leaves); action=run with month and optional fields {sz: {Personalnummer: [{text, amount, in_kind}]}} (Sonderzahlungen typed; preview=true: every figure, else put forward as one journal on the EKR accounts); action=months; action=pay with month and kind net|fa|oegk|kommst; action=payslip with month and ref; action=lohnabgaben with month (L, DB, DZ and Kommunalsteuer, for FinanzOnline and the Gemeinde); action=mbgm with month (the Beitragsgrundlagenmeldung figures per employee and Beitragszeitraum for ELDA; nothing is sent); action=abmeldung with month (the leavers' Abmeldung, Urlaubsersatzleistung ab and bis); action=lohnzettel with ref and month (the year's Lohnzettel L16: Kennzahlen 210 to 260 and page 2, for ELDA); action=lohnsteuer with fields {base, children, avab, fabo_under18, fabo_over18, pendler, pendlereuro_km, year 2026 or 2027}: § 66 EStG, the tariff of that year; action=checklist reads the employer checklist for taking on staff (ÖGK, ELDA, BV-Kasse, Kommunalsteuer, FinanzOnline, Lohnkonto, mBGM, L16) with each item's tick, and with ref (an item's key) and fields {done} ticks or unticks it. Round 863: action=works_council (a German or Austrian company) gives the works council kit in German, filled from the company's settings: the § 91 (2) ArbVG notice (Austria) and the works agreement template, with the link to edit and download each on the company's letterhead. Payroll is for pay, tax, social security and booking only: an action that scores, ranks, profiles, compares or monitors staff is refused (rule DS.01). While the owner has not chosen the AI privacy setting of payroll, an answer carries ask_owner_once: put that question to the owner once. Round 907: action=import for a German or Austrian company takes an outside provider's payroll journal (csv, rows or document_id: a DATEV booking batch, Konto/Soll/Haben, or for Austria a row per employee with Brutto ... Netto), pay_date, provider, accounts {provider's code: Octobooks code}; preview=true shows the entry. German run: fields once [{text, amount, kind: abfindung, sv}] (an Abfindung: taxed in full, line 10, no SV unless sv=true: sv=true for claims earned up to the end or a payment while the job goes on); a leaver (leave_date before the month) is paid a one-off after leaving (§ 23a Abs. 2 SGB IV), a Minijob or Midijob too (Midijob: the leaving month worked out again with the one-off); its DEÜV Sondermeldung (Abgabegrund 54) is in the payroll deadlines; employee fields allowance_year (Jahresfreibetrag), leaver_year_pay, no_more_pay. UK: a P9 for the next tax year applies from its 6 April (employees show tax_code_next). Round 942: German items kurzarbeitergeld (Zeile 15 and 15a), dba_frei and ate_frei (16 a, b), dhh_frei (21), zuschuss_bsv (22 b), versorgungsbezug (8, with the Versorgungsfreibetrag); employee fields fr_code (FR1 to FR3: no Lohnsteuer withheld), u_periods (periods without pay, Anzahl U), bsv_an (Versorgungswerk employee share, 23 b), vb_month, vb_special, vb_year (Zeile 29 to 31); a once kind versorgung, versorgung_nachzahlung, sterbegeld or versorgung_mehrjahre (Zeile 8, 9, 32). Austrian items zuschlaege68 (fields amount, ot_amount, night_mostly: Kennzahl 215) and kua (Kurzarbeitsunterstützung); employee fields street, postcode, town, country_code, sex, part_time, fabo_kids (the L 16k children, a line each: family name; given name; VSNR; birth date; ganz or halb; months; country; claimant fb, partner or unterhalt), k6_exempt, ka_sv_base, abf_plan (23_4 or 23a_2) with abf_instalments (the Abfertigung in Teilbeträge, each paid, taxed and booked by the month it is due in); settings elda_serial, address, postcode, town for the ELDA Lohnzettel file (download only). Round 950: Austrian setting aufrollung (§ 77 Abs. 3 EStG: the year's wage tax worked out again in December and on leaving), employee fields krankengeld (the years with ÖGK Krankengeld, e.g. 2026: no Aufrollung in those years) and berufsverband (dues taken off in December).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "wages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | ||
| pay | No | ||
| ref | No | ||
| xml | No | ||
| kind | No | ||
| rows | No | ||
| kasse | No | ||
| month | No | ||
| action | Yes | ||
| fields | No | ||
| period | No | ||
| reason | No | ||
| run_id | No | ||
| company | No | ||
| preview | No | ||
| accounts | No | ||
| pay_date | No | ||
| provider | No | ||
| frequency | No | monthly | |
| reference | No | ||
| tax_month | No | ||
| document_id | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||