Kvickd ROT och RUT API
The ROT och RUT API from Kvickd — 6 operation(s) for rot och rut.
The ROT och RUT API from Kvickd — 6 operation(s) for rot och rut.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/kvickd-com:kvickd-com-rot-och-rut-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Kvickd ROT och RUT API
version: '1'
description: Allt som går att se och göra i Kvickd, som REST-anrop. Varje adress är ett MCP-verktyg med samma namn (operationId), samma behörigheter och samma credits. Se kvickd.com/api.
summary: 'REST API for Kvickd, bookkeeping for Swedish small businesses (AB, enskild firma, handelsbolag): ledger, invoices, VAT, payroll, year-end and annual reports. Every endpoint is also an MCP tool with the same name.'
termsOfService: https://www.kvickd.com/villkor#api
contact:
name: Kvickd
url: https://www.kvickd.com/api
email: hello@kvickd.com
x-logo:
url: https://www.kvickd.com/kvickd-logo.png
altText: Kvickd
servers:
- url: https://api.kvickd.com
security:
- ApiKey: []
- Bearer: []
tags:
- name: ROT och RUT
paths:
/api/v1/companies/{orgnr}/rot-rut/{request_id}/check-file:
post:
operationId: check_rot_rut_request_file
tags:
- ROT och RUT
summary: Kontrollera ROT/RUT-filen
description: 'Kontrollerar att filen till Skatteverket (XML, schema version 6) går att ta fram för en ROT/RUT-begäran och visar en sammanfattning: typ, status, begärt belopp, antal köpare, fakturor och var filen laddas ner. Själva filen innehåller köparnas personnummer och lämnas därför inte ut via AI-kopplingen: användaren laddar ner den i Kvickd under Kundfakturor > ROT/RUT (Ladda ner fil på begäran), importerar den i Skatteverkets e-tjänst Rot och rut och signerar där. Använd efter create_rot_rut_request; markera sedan inlämningen med mark_rot_rut_request_submitted. Ofullständiga uppgifter ger ett fel som säger vad som saknas. Läser bara, ändrar inget; Kvickd skickar ingenting. Scope view. Argument: orgnr, request_id.'
x-kvickd-read-only: true
x-kvickd-mcp-tool: check_rot_rut_request_file
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: false
content:
application/json:
schema:
properties: {}
title: check_rot_rut_request_fileArguments
type: object
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
- name: request_id
in: path
required: true
schema:
title: Request Id
type: integer
/api/v1/companies/{orgnr}/rot-rut:
post:
operationId: create_rot_rut_request
tags:
- ROT och RUT
summary: Skapa ROT/RUT-begäran
description: 'Skapa en begäran om utbetalning till Skatteverket för betalda ROT- eller RUT-fakturor (se att_begara i list_rot_rut). ROT och RUT begärs var för sig, alla fakturor ska vara betalda samma år och en begäran rymmer högst 100 köpare. Skapar ett ärende per köpare med köparens personnummer som användaren lagt in på fakturan i Kvickd (be aldrig om personnummer i chatten; saknas ett ges ett fel med var det läggs in). Inget skickas till Skatteverket: kontrollera filen med check_rot_rut_request_file och låt användaren ladda ner den i Kvickd och lämna den i e-tjänsten Rot och rut. Scope reconcile. Argument: orgnr, type (ROT|RUT), invoice_ids; valfritt name (högst 16 tecken).'
x-kvickd-read-only: false
x-kvickd-mcp-tool: create_rot_rut_request
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
properties:
type:
title: Type
type: string
invoice_ids:
items: {}
title: Invoice Ids
type: array
name:
anyOf:
- type: string
- type: 'null'
default: null
title: Name
required:
- type
- invoice_ids
title: create_rot_rut_requestArguments
type: object
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
get:
operationId: list_rot_rut
tags:
- ROT och RUT
summary: ROT/RUT-läget
description: 'Visar läget för ROT- och RUT-avdrag: fakturor där utbetalning kan begäras nu, fakturor som väntar på kundens betalning, gjorda begäranden till Skatteverket och gällande regler. Använd innan du skapar en begäran med create_rot_rut_request; för filen till Skatteverket, använd check_rot_rut_request_file. Returnerar fakturorna med avdragsbelopp och deadline, begärandena med status (skapad, inskickad eller klar) och belopp, summor i öre, arbetstyper samt procentsatser och tak. Läser bara, ändrar inget. Köparnas personnummer visas bara maskerade (ÅÅÅÅMMDD-XXXX).'
x-kvickd-read-only: true
x-kvickd-mcp-tool: list_rot_rut
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
/api/v1/companies/{orgnr}/rot-rut/{request_id}:
delete:
operationId: delete_rot_rut_request
tags:
- ROT och RUT
summary: Ta bort ROT/RUT-begäran
description: 'Ta bort en ROT/RUT-begäran som inte fått någon utbetalning registrerad. Fakturorna blir valbara för en ny begäran. Scope reconcile. Argument: orgnr, request_id.'
x-kvickd-read-only: false
x-kvickd-mcp-tool: delete_rot_rut_request
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
- name: request_id
in: path
required: true
schema:
title: Request Id
type: integer
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
/api/v1/companies/{orgnr}/rot-rut/{request_id}/submitted:
post:
operationId: mark_rot_rut_request_submitted
tags:
- ROT och RUT
summary: Markera ROT/RUT-begäran inskickad
description: 'Markerar att en ROT/RUT-begäran har lämnats in till Skatteverket, eller tar bort markeringen. Använd efter att användaren själv har laddat ner filen i Kvickd (se check_rot_rut_request_file) och skickat in den; när Skatteverket har betalat ut, använd register_rot_rut_payout. Returnerar begäran med ny status och belopp. Bieffekt: bara en statusmarkering i Kvickd, inget skickas till Skatteverket. Kräver behörigheten reconcile.'
x-kvickd-read-only: false
x-kvickd-mcp-tool: mark_rot_rut_request_submitted
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: false
content:
application/json:
schema:
properties:
submitted:
default: true
description: true för inskickad (standard), false för att ta bort markeringen.
title: Submitted
type: boolean
title: mark_rot_rut_request_submittedArguments
type: object
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
- name: request_id
in: path
required: true
schema:
description: Begärans id (heltal), t.ex. 3. Hämta med list_rot_rut.
title: Request Id
type: integer
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
/api/v1/companies/{orgnr}/rot-rut/{request_id}/payout:
post:
operationId: register_rot_rut_payout
tags:
- ROT och RUT
summary: Bokför ROT/RUT-utbetalning
description: 'Registrera Skatteverkets utbetalning för en ROT/RUT-begäran. KODEN postar: D likvidkonto / K 1513 för det utbetalda. Nekade Skatteverket hela eller delar av ett ärende, ange beviljat belopp i approved ([{item_id, approved_ore}]); skillnaden flyttas till kundens fordran (D 1510 / K 1513) och fakturan blir delbetald så att kunden kan faktureras resten. Utelämnade ärenden räknas som helt beviljade. Kräver scope book; bokföringstaket får inte överstigas. Argument: orgnr, request_id, pay_date (YYYY-MM-DD); valfritt approved, bank_account (likvidkonto 1900-1999 eller skattekontot 1630, default 1930).'
x-kvickd-read-only: false
x-kvickd-mcp-tool: register_rot_rut_payout
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: true
content:
application/json:
schema:
properties:
pay_date:
title: Pay Date
type: string
approved:
anyOf:
- items: {}
type: array
- type: 'null'
default: null
title: Approved
bank_account:
anyOf:
- type: integer
- type: 'null'
default: null
title: Bank Account
required:
- pay_date
title: register_rot_rut_payoutArguments
type: object
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
- name: request_id
in: path
required: true
schema:
title: Request Id
type: integer
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
/api/v1/companies/{orgnr}/rot-rut/{request_id}/payout/reverse:
post:
operationId: reverse_rot_rut_payout
tags:
- ROT och RUT
summary: Backa ROT/RUT-utbetalning
description: 'Backa en registrerad ROT/RUT-utbetalning (postar ett omvänt verifikat) så att Skatteverkets beslut kan registreras om. Går inte om kunden redan betalat ett nekat belopp. KODEN postar. Scope book. Argument: orgnr, request_id.'
x-kvickd-read-only: false
x-kvickd-mcp-tool: reverse_rot_rut_payout
responses:
'200':
description: Verktygets svar
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'400':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Fel
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBody:
required: false
content:
application/json:
schema:
properties: {}
title: reverse_rot_rut_payoutArguments
type: object
parameters:
- name: orgnr
in: path
required: true
schema:
description: Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
title: Orgnr
type: string
- name: request_id
in: path
required: true
schema:
title: Request Id
type: integer
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 255
description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
components:
schemas:
Result:
type: object
properties:
data: {}
Error:
type: object
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
request_id:
type: string
securitySchemes:
ApiKey:
type: apiKey
in: header
name: X-API-Key
Bearer:
type: http
scheme: bearer
description: 'Samma API-nyckel som Authorization: Bearer kvickd_key_...'
externalDocs:
description: API-dokumentation
url: https://www.kvickd.com/api