AnyTax ELSTER Import API

The ELSTER Import API API from AnyTax — 4 operation(s) for elster import api.

GitHub OpenAPI

Operations 5

GET /api/v1/vast/{filingUUID}/authorizations Get the user’s ELSTER access status #
POST /api/v1/vast/{filingUUID}/authorizations Request access to the user’s ELSTER data #
POST /api/v1/vast/{filingUUID}/import Import the wage tax certificates from ELSTER #
POST /api/v1/vast/authorizations/{id}/activate Approve an open request with the activation code from the letter #
DELETE /api/v1/vast/authorizations/{id} Remove access to the user’s ELSTER data #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/anytax:anytax-elster-import-api-api"
All apis
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.

Get an API 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 Specification

anytax-elster-import-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Anytax ELSTER Import API
  contact: {}
  version: '1.0'
  description: 'Operations tagged ELSTER Import API across 3 of this provider''s published API definitions: anytax-openapi.json, anytax-openapi.json, anytax-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: ELSTER Import API
paths:
  /api/v1/vast/{filingUUID}/authorizations:
    get:
      description: 'Returns the status of the access to the user’s ELSTER data and the known tax ID and date of birth (from the filing, else the account settings). An open request is re-checked with ELSTER at most once a minute. `enabled: false` means ELSTER import is not offered.


        **Responses**


        | Status | Meaning |

        | ------ | ------- |

        | `200` | — |

        | `404` | Filing not found or does not belong to user |'
      operationId: VastApiController_getStatus
      parameters:
      - name: filingUUID
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - meta
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/VastStatusDto'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
        '404':
          description: Filing not found or does not belong to user
      security:
      - bearer: []
      summary: Get the user’s ELSTER access status
      tags:
      - ELSTER Import API
      x-anytax-docs-enriched: true
    post:
      description: 'Records the user’s consent and asks ELSTER for access to their data for all tax years, valid for 10 years unless removed. An open or approved access that already exists for the tax ID is returned instead of a new request; `replace: true` cancels the pending request first. The user then approves it in Mein ELSTER or with the activation code that arrives by post. `taxId` and `dateOfBirth` are saved to the account settings and the filing where they differ.


        **Request body**


        | Field | Type | Required | Constraints |

        | ----- | ---- | -------- | ----------- |

        | `consent` | boolean | Yes | The user consents to AnyTax retrieving their ELSTER data. Must be true. |

        | `taxId` | string | Yes | The user’s tax ID (IdNr). Saved to the account settings and the filing where it differs. |

        | `dateOfBirth` | string | Yes | The user’s date of birth. Saved to the account settings and the filing where it differs. |

        | `replace` | boolean | No | Cancel the pending request first and send a new one ("request again"). |


        **Responses**


        | Status | Meaning |

        | ------ | ------- |

        | `201` | — |

        | `400` | Invalid tax ID or date of birth, or no consent |

        | `409` | `ELSTER_REQUEST_LIMIT`: access for this tax ID was already requested today (ELSTER accepts one request per day). |

        | `422` | ELSTER rejected the request. Error code: `ELSTER_REQUEST_REJECTED`; `details` carries `elsterCode` and `elsterText` |

        | `429` | More than 5 ELSTER calls (request, activate, import, remove) per user and minute |

        | `503` | ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE` |'
      operationId: VastApiController_request
      parameters:
      - name: filingUUID
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestVastAuthorizationDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - meta
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/VastAuthorizationDto'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
        '400':
          description: Invalid tax ID or date of birth, or no consent
        '409':
          description: '`ELSTER_REQUEST_LIMIT`: access for this tax ID was already requested today (ELSTER accepts one request per day).'
        '422':
          description: 'ELSTER rejected the request. Error code: `ELSTER_REQUEST_REJECTED`; `details` carries `elsterCode` and `elsterText`'
        '429':
          description: More than 5 ELSTER calls (request, activate, import, remove) per user and minute
        '503':
          description: 'ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE`'
      security:
      - bearer: []
      summary: Request access to the user’s ELSTER data
      tags:
      - ELSTER Import API
      x-anytax-docs-enriched: true
  /api/v1/vast/{filingUUID}/import:
    post:
      description: 'Imports every wage tax certificate (Lohnsteuerbescheinigung) ELSTER holds for the filing’s tax year (2024 or 2025), one certificate per employer, as unconfirmed values the user then confirms. Certificates the user entered are kept (`existingCertificates` counts them); importing again replaces the unconfirmed imported ones. Requires approved access. Receipts appear at ELSTER at the earliest the day after approval.


        **Responses**


        | Status | Meaning |

        | ------ | ------- |

        | `201` | — |

        | `400` | Tax year not supported |

        | `409` | ELSTER access is not approved, or the filing is in review or submitted |

        | `422` | ELSTER rejected the request. Error code: `ELSTER_REQUEST_REJECTED`; `details` carries `elsterCode` and `elsterText` |

        | `429` | More than 5 ELSTER calls (request, activate, import, remove) per user and minute |

        | `503` | ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE` |'
      operationId: VastApiController_importWageCertificates
      parameters:
      - name: filingUUID
        required: true
        in: path
        schema:
          type: string
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - meta
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/VastImportResultDto'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
        '400':
          description: Tax year not supported
        '409':
          description: ELSTER access is not approved, or the filing is in review or submitted
        '422':
          description: 'ELSTER rejected the request. Error code: `ELSTER_REQUEST_REJECTED`; `details` carries `elsterCode` and `elsterText`'
        '429':
          description: More than 5 ELSTER calls (request, activate, import, remove) per user and minute
        '503':
          description: 'ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE`'
      security:
      - bearer: []
      summary: Import the wage tax certificates from ELSTER
      tags:
      - ELSTER Import API
      x-anytax-docs-enriched: true
  /api/v1/vast/authorizations/{id}/activate:
    post:
      description: 'Five wrong codes cancel the request at ELSTER; a new request is then needed.


        **Request body**


        | Field | Type | Required | Constraints |

        | ----- | ---- | -------- | ----------- |

        | `code` | string | Yes | Activation code from the tax office letter |


        **Responses**


        | Status | Meaning |

        | ------ | ------- |

        | `201` | — |

        | `409` | The request is not open |

        | `422` | ELSTER rejected the request. Error code: `ELSTER_REQUEST_REJECTED`; `details` carries `elsterCode` and `elsterText` |

        | `429` | More than 5 ELSTER calls (request, activate, import, remove) per user and minute |

        | `503` | ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE` |'
      operationId: VastApiController_activate
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateVastAuthorizationDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - meta
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/VastAuthorizationDto'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
        '409':
          description: The request is not open
        '422':
          description: 'ELSTER rejected the request. Error code: `ELSTER_REQUEST_REJECTED`; `details` carries `elsterCode` and `elsterText`'
        '429':
          description: More than 5 ELSTER calls (request, activate, import, remove) per user and minute
        '503':
          description: 'ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE`'
      security:
      - bearer: []
      summary: Approve an open request with the activation code from the letter
      tags:
      - ELSTER Import API
      x-anytax-docs-enriched: true
  /api/v1/vast/authorizations/{id}:
    delete:
      description: 'Withdraws an open or approved access. Values already imported stay in the filing.


        **Responses**


        | Status | Meaning |

        | ------ | ------- |

        | `200` | — |

        | `409` | Access is not active |

        | `429` | More than 5 ELSTER calls (request, activate, import, remove) per user and minute |

        | `503` | ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE` |'
      operationId: VastApiController_revoke
      parameters:
      - name: id
        required: true
        in: path
        schema:
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                - success
                - data
                - meta
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/VastAuthorizationDto'
                  meta:
                    $ref: '#/components/schemas/ApiMeta'
        '409':
          description: Access is not active
        '429':
          description: More than 5 ELSTER calls (request, activate, import, remove) per user and minute
        '503':
          description: 'ELSTER import is turned off or ELSTER is unreachable. Error code: `ELSTER_UNAVAILABLE`'
      security:
      - bearer: []
      summary: Remove access to the user’s ELSTER data
      tags:
      - ELSTER Import API
      x-anytax-docs-enriched: true
components:
  schemas:
    VastAuthorizationDto:
      type: object
      properties:
        id:
          type: number
        status:
          type: string
          enum:
          - open
          - approved
          - rejected
          - expired
          - revoked
          - ignored
          - obsolete
        requestedAt:
          format: date-time
          type: string
          description: When the user requested access
        approvableUntil:
          format: date-time
          type: string
          description: Last day the request can be approved (status open)
        validUntil:
          format: date-time
          type: string
          description: Last day access is valid
      required:
      - id
      - status
      - requestedAt
    ActivateVastAuthorizationDto:
      type: object
      properties:
        code:
          type: string
          description: Activation code from the tax office letter
          example: AB12-CD34-EF56
      required:
      - code
    RequestVastAuthorizationDto:
      type: object
      properties:
        consent:
          type: boolean
          description: The user consents to AnyTax retrieving their ELSTER data. Must be true.
        taxId:
          type: string
          description: The user’s tax ID (IdNr). Saved to the account settings and the filing where it differs.
          example: 04452397687
        dateOfBirth:
          type: string
          description: The user’s date of birth. Saved to the account settings and the filing where it differs.
          example: '1990-04-23'
        replace:
          type: boolean
          description: Cancel the pending request first and send a new one ("request again").
      required:
      - consent
      - taxId
      - dateOfBirth
    VastImportResultDto:
      type: object
      properties:
        imported:
          type: number
          description: Wage tax certificates written to the filing
        existingCertificates:
          type: number
          description: Certificates the user entered by hand (possible duplicates)
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/VastImportWarningDto'
      required:
      - imported
      - existingCertificates
      - warnings
    ApiMeta:
      type: object
      required:
      - timestamp
      properties:
        timestamp:
          type: string
          format: date-time
          example: '2025-01-19T10:30:00.000Z'
        responseTime:
          type: number
          example: 42
    VastImportWarningDto:
      type: object
      properties:
        employer:
          type: string
          description: Employer named on the certificate, when known
        code:
          type: string
          enum:
          - unreadable
          - unsupportedVersion
          - otherTaxId
          - otherYear
          - alreadyImported
          - taxClassMissing
          - multiplePensions
          - multiYearPensionNotImported
          description: 'unreadable / unsupportedVersion / otherTaxId / otherYear: not imported. alreadyImported: imported earlier and confirmed by the user, so left as it is. taxClassMissing: imported without a tax class. multiplePensions: imported without the pension lines (8, 29–32). multiYearPensionNotImported (2024): imported without the non-reduced multi-year pension payments.'
      required:
      - code
    VastStatusDto:
      type: object
      properties:
        enabled:
          type: boolean
          description: False when ELSTER import is not offered in this environment
        available:
          type: boolean
          description: False when ELSTER could not be reached for a status check
        taxId:
          type: string
          description: Known tax ID (filing, else account settings), to pre-fill the request form
        dateOfBirth:
          type: string
          description: Known date of birth (YYYY-MM-DD, filing, else account settings), to pre-fill the request form
        authorization:
          allOf:
          - $ref: '#/components/schemas/VastAuthorizationDto'
      required:
      - enabled
      - available
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for programmatic authentication
x-refined-from:
- anytax-openapi.json
- anytax-openapi.json
- anytax-openapi.yml
x-tagGroups:
- name: Partner platform
  tags:
  - Partner platform
  - Filing Eligibility Check
- name: User Management
  tags:
  - Auth API
  - User API
- name: Tax Services
  tags:
  - Filing API
  - Scenario API
  - Question API
  - Answer API
  - Navigation API
  - Wage Tax API
  - Tax Saving Tip API
  - ELSTER Import API